Guest_imported
New member
- Jan 1, 1970
- 0
I recently read a book that said to run an SQL statement use:
set Con=Server.CreateObject("ADODB.Connection"
Con.Open "DSN=AccessDSN"
set Rst=Server.CreateObject("ADODB.Recordset"
Rst.Open sqlStatement, Con
This seemed logical and made a lot of sense to me, but then it would not work in my code until I used:
set Con=Server.CreateObject("ADODB.Connection"
Con.Open "DSN=AccessDSN"
set Rst=Con.Execute(sqlStatement)
What is the difference?
And this may be related, I get an error when I use:
set Rst=Nothing
set Con=Nothing
I am concerned because I don't want the recordsets to eat up my memory.
set Con=Server.CreateObject("ADODB.Connection"
Con.Open "DSN=AccessDSN"
set Rst=Server.CreateObject("ADODB.Recordset"
Rst.Open sqlStatement, Con
This seemed logical and made a lot of sense to me, but then it would not work in my code until I used:
set Con=Server.CreateObject("ADODB.Connection"
Con.Open "DSN=AccessDSN"
set Rst=Con.Execute(sqlStatement)
What is the difference?
And this may be related, I get an error when I use:
set Rst=Nothing
set Con=Nothing
I am concerned because I don't want the recordsets to eat up my memory.