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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE Db and SQL Server

Status
Not open for further replies.

hanglam

Programmer
Dec 11, 2002
143
US
hi.

I'm trying to connect to SQL Server 2000 in Visual Basic by using a OLE DB Connection.

I supply the login credentials by using the following line of code:

Report.Database.LogOnServer "SQLOLEDB.DLL", "ServerName",
"Database", "user", "password"

I'm pretty sure SQLOLEDB.DLL is the dll for the SQL SErver OLE Connection.

But everytime I run my Visual Basic application, I get the following error :

"Fail to load database Information.
Details: The database DLL crdb_sqloledb.dll could not be loaded"

Can anyone tell me if I'm doing the connection right ? or is there something I'm missing ?

Thanks,

Hang
 
sorry, it is SQLOLEDB.DLL . I don't know why a smily face came up in post.

Thanks,
Hang
 
it is SQLOLEDB.DLL , I forgot to turn off the smiley face

Thanks,
Hang
 
synapsevampire, thank you fro the repply.
Is there a way to set up the connection from Crystal Report in Visual Basic to a SQL Server without having to use the DataEnvironment object in Visual Basic ?

Thanks,
Hang
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top