in my classic asp website, there is an objCMD variable being set to the value of Server.CreateObject("ADODB.Command"). i think that objCMD should be turned into a SqlCommand .NET object, but i need confirmation first. i’m still not sure what Server.CreateObject("ADODB.Command") is doing.
can someone explain Server.CreateObject() to me?
Server.CreateObjectcreates a COM object from the named identifier, for use within asp.The passed in string will identify what COM object needs to be created for use by asp (such as
Msxml.DOMDocumentfor the XML parser, or an ADODB database command object, as in your example).As you have guessed, the equivalent of
ADODB.Commandin .NET is theSqlCommandobject.