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!

What's wrong with this?

Status
Not open for further replies.

Ladyhawk

Programmer
Jan 22, 2002
534
AU
What's wrong with this? I get a message saying that the data source name not found and not default driver not specified.

Dim x As New rdoConnection
Dim y As rdoQuery
x.Connect = "PROVIDER=SQLOLEDB;" & _
"DSN=LocalServer;DATABASE=viewer;" & _
"UID=sa;PWD=;"

x.EstablishConnection

Set y = x.CreateQuery("Query1", "SELECT * FROM GraphBenefitVsCost")

y.CursorType = rdOpenKeyset
y.LockType = rdConcurRowver
x.Query1
Set MSRDC1.Resultset = x.LastQueryResults
Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Do you have a DSN named Local Server.
If not add one. depending on what operating system you are running this involves different steps. Let me know if you need more information.
 
Yes there is a dsn called LocalServer. It is automatically created by SQL Server. Ladyhawk. [idea]
** ASP/VB/Java Programmer **
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top