I need to open an access database, who is located in the server, using javascript. I tried with this code:
var connection = new ActiveXObject("ADODB.Connection") ;
var connectionstring="Data Source=<server>;Initial Catalog=<catalog>;User ID=<user>;Password=<password>;Provider=SQLOLEDB";
connection.Open(connectionstring);
var rs = new ActiveXObject("ADODB.Recordset");
rs.Open("SELECT * FROM table", connection);
.... but the debug return this error:
ReferenceError: ActiveXObject is not defined
how I can load the ActiveXObject for ADODB.Connection and define it?