Connecting to MSSQL


I have to make an ionic application that is in constant connection with a Microsoft SQL database. For this application I need to make a login page that checks user accounts with the database. They’ve told me not to use a backend so they gave me access to their network via vpn. Is there someone that can help me to get this login page working?

This is my login.html

<ion-view title="Ticketing" hide-back-button="true" id="page1" style="background-color:#FFFFFF;" class=" ">
    <ion-content padding="true" class="has-header">
        <form id="ticketing-form3" class="list ">
            <label class="item item-input item-stacked-label " id="ticketing-input1" name="username">
                <span class="input-label">Enter username</span>
                <input type="text" placeholder="Username">
            <label class="item item-input item-stacked-label " id="ticketing-input2" name="password">
                <span class="input-label">Enter password</span>
                <input type="password" placeholder="Password">
        <a ui-sref="ticketing2" id="ticketing-button4" style="font-size:20px;" class=" button button-positive  button-block ">Login</a>

The controller of this page is empty.

Thanks in advance!