PDA

Click to See Complete Forum and Search --> : can I use a DSN to connect in asp.net


soskinny
Jul 16th, 2004, 04:29 PM
Is this still supported? If so, what is the syntax?

hellswraith
Jul 16th, 2004, 11:30 PM
Found this on the net:

' VB.NET
Imports System.Data.Odbc
...
Dim oODBCConnection As OdbcConnection
Dim sConnString As String = "Dsn=myDsn;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"
oODBCConnection = New Odbc.OdbcConnection(sConnString)
oODBCConnection.Open()

soskinny
Jul 17th, 2004, 07:31 AM
Hellswraith

-yet again-

Thank You.

My goal is to answer one of your questions someday. If my boss knew that someone called "Hellswraith" was collaborating on my projects he would probably lose his mind.

-Ian

hellswraith
Jul 17th, 2004, 01:02 PM
lol, it was more or less a Diablo user name when I was playing that, now it has stuck... Doesn't mean I am a bad guy...lol. Glad to help.