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

DSN connection

Status
Not open for further replies.

zakd

Programmer
Dec 11, 2001
21
0
0
GR
.
.
.
Dim data As OleDbConnection
data = New OleDbConnection( "DSN=database" )
data.Open()
.
.
.
Why i get an error message when i'm trying to connect a database with DSN name??
The error message says that i don't specify provider (sqlolebd)...
 
.NET now uses either:

OLEDB

-or-

Native providers

ODBC is now gone. So, check out this site:

to get what you need to connect. And store your connection strings in your web.config files so you get the portability that a DSN also provides for you.

:)
paul
penny1.gif
penny1.gif
 
I've done the connection with connection string.

I read about ASP.NET & DSN connection in a book that's why i suprised when i saw the results!
Sometimes books make mistakes..

Anyway thanks for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top