What is the difference between declaring a connection through an object tag and Server.CreateObject

When using classic ASP, what is the difference between declaring a connection through an object tag:

<object RUNAT="Server" ID="cn" PROGID="ADODB.Connection"></object> 

and declaring the connection through a call to Server.CreateObject ():

 set cn = Server.CreateObject("ADODB.Connection") 

Or is there any difference? Performance, memory, etc.

+4
source share
1 answer

An object's method should work better because the object is first created when you start using it.

I found several articles, maybe they give you some idea:

http://www.aspmessageboard.com/showthread.php?t=6775

http://www.asp101.com/tips/index.asp?id=4

+1
source

All Articles