I need to connect a simple AngularJS application to a local MS Access database stored in the same folder as the app. Due to firewall restrictions, I cannot use npm and modules such as express. I am hoping to directly connect to the db using ADO and ASP.NET.
I have looked into ADO but due to my lack of background ASP.NET & db knowledge, I have gotten stuck. Take for example the following code:
function AddRecord() {
var adoConn = new ActiveXObject("ADODB.Connection");
var adoRS = new ActiveXObject("ADODB.Recordset");
adoConn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='/\dbName.mdb'");
adoRS.Open("Select * From tblName", adoConn, 1, 3);
adoRS.AddNew;
adoRS.Fields("FieldName").value = "Quentin";
adoRS.Update;
adoRS.Close();
adoConn.Close();
}
This was taken from another StackOverflow question. I have no idea where to put this code, but here is a Plunkr with my existing code. As you can see, its a very simple app. Could anyone give me some direction as to what to do?