Hello!
I just want to ask you which is the best way to connect to my DB?
i usually use a DSN connection like this:
---------------
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DSN=RHDSN;"
Set rs = Server.CreateObject("ADODB.Recordset")
SQLStmt = "SELECT * FROM REGISTOS"
rs.Open SQLstmt,Conn,1,2
---------------
i've heard that the OLEDB connections are better. is this true? in what way are they better? which kind of OLEDB connection should i use? Is this the best type of connection or is there another one?
I just want to ask you which is the best way to connect to my DB?
i usually use a DSN connection like this:
---------------
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DSN=RHDSN;"
Set rs = Server.CreateObject("ADODB.Recordset")
SQLStmt = "SELECT * FROM REGISTOS"
rs.Open SQLstmt,Conn,1,2
---------------
i've heard that the OLEDB connections are better. is this true? in what way are they better? which kind of OLEDB connection should i use? Is this the best type of connection or is there another one?
Comment