dbTalk Databases Forums  

Help w/ connection string

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss Help w/ connection string in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
BCS
 
Posts: n/a

Default Help w/ connection string - 04-11-2006 , 06:23 PM






I'm a novice Visual Basic programmer and I need to connect to an
application's database that uses SQL Adaptive Server driver. Below is an
example of code I use to connect to a MS SQLExpress database:

***********************
Sub Open_SQL_Connection()

Dim db_connection As ADODB.Connection

If db_connection Is Nothing Then
Set db_connection = New ADODB.Connection
db_connection.Open "Provider='SQLOLEDB';Data
Source='MyMachineName\SQLEXPRESS';" & _
"Initial Catalog='Timeclock';Integrated Security='SSPI';"
End If

End Sub
***********************

Can someone give me the equivalent for SQL Adaptive Server? The database I'm
connecting to is "ss.db" and the full path is "C:\TPC\ss.db". If needed, the
tables I'm connecting to are "posj_event" and "posj_raw_journal".

Thank you,

Barry



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.