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!

Sybase and VB.Net

Status
Not open for further replies.

ptmcs

Technical User
Oct 1, 2004
38
GB
Hi Folks,

The whole world of linking Sybase to VB.Net seems a complete mess.

Does anybody know of a good website / guide for setting up a link from VB.Net to Sybase ?
 
Yes, setting up a link from VB.Net to Sybase,

I'd love a simple example program if possible!
 
Well, I do it this way:
Code:
Imports System.Data.Odbc

Public DataConn As OdbcConnection

Function FConnect() as Boolean
   DataConn = New OdbcConnection
   DataConn.ConnectionString = "DSN=MyDSN;UID=dba;PWD=sql;DatabaseName=MyDB;EngineName=MyServer;AutoStop=No;Integrated=No;"
   Try
      DataConn.Open()
      Return True
   Catch
      'Do err handling
   End Try   
End Sub

Alse, please check the VBNet Forum in how to secure the UID and PWD parameters. Another usefull site is
Hope this helps.
mansii
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top