Well it certainly doesn't have a CreateObject method ;-)...
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Quote:
> ADOObj is the connection object variable.
> Thanks
> > What's AODObj supposed to be ???
> > Depending on the host for the script (the 1st works anywhere):
> > Set cmd = CreateObject("ADODB.Command")
> > Set cmd = Server.CreateObject("ADODB.Command")
> > Set cmd = WScript.CreateObject("ADODB.Command")
> > --
> > Michael Harris
> > Microsoft.MVP.Scripting
> > --
> > Please do not email questions - post them to the newsgroup instead.
> > --
> > > I can't seem to set a command object variable in VBScript. The
followinf
> > > code works in Visual Basic but not in script.
> > > Set cmd = AODObj.CreateObject("ADODB.Command")
> > > How do I do this in script.