Results 1 to 4 of 4

Thread: can I use a DSN to connect in asp.net

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2003
    Location
    NYC
    Posts
    50

    can I use a DSN to connect in asp.net

    Is this still supported? If so, what is the syntax?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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()

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2003
    Location
    NYC
    Posts
    50
    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

  4. #4
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width