The following Visual Basic code uses the connection objects to initiate an OLE DB connection to Adaptive Server:
’ Declare the connection object Dim myConn as New ADODB.Connection myConn.Provider = "ASEOLEDB" myConn.ConnectionString ="Data Source=MANGO:5000; User ID=sa" myConn.Open