Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS SQL Unable to retrieve recordset 1

Status
Not open for further replies.

44nato44

Programmer
Dec 12, 2008
115
NL
Hi
I am able to connect to the db, but unable to retrieve a recordset.

Does anybody has one that for sure works ?

Cheers

<!-- #Include File="adovbs.inc" -->
<%


set adoconn = server.createobject("adodb.connection")
set adoRec = server.createobject("adodb.connection")
adoconn.open = "Provider = sqloledb; Data Source = MYSRV; Initial Catalog = TestDB; User Id = Test.User1; Password = Entity48;"


adoRec.Open "SELECT Name FROM tblName", adoconn, adOpenKeySet,adLockOptimistic,adCmdText


adoconn.Close
Set adoconn = Nothing

%>
 
Maybe....

Code:
set adoconn = server.createobject("adodb.connection")
set adoRec = server.createobject("adodb.[!]RecordSet[/!]")

-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Thanks gmmastros,

I had a feeling I had stired blind on it all. :eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top