ADODB.Command creation problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I am trying to create an instance of the ADODB.Command object using
javascript on one of my webpages.

var oCon;
var oCmd

oCon = new ActiveXObject("ADODB.Connection");
oCmd = new ActiveXObject("ADODB.Command");

The oCon creates succesfully, the oCmd returns an unable to create object
error.

For info, I have MDAC 2.7 installed.

Thanks for any help.
 
Already do with the line:

oCon.ConnectionString="PROVIDER=SQLOLEDB; Data Source=<myserver>;
UID=<myid>; Password=<mypassword>; Initial Catalog=DS32_IRL";
 
Back
Top