var connection = new ActiveXObject("ADODB.Connection") code example
Example: new activexobject( adodb.connection ) javascript
var ConnString = "Data Source='10.195.12.20\UAT;Initial Catalog=EmployeeDetails;User ID=Test;Password=Test@123;Provider=SQLOLEDB;";