If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Connection Through vb6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-03, 10:36
jmlim jmlim is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
Question Connection Through vb6

GoodDay Everybody,

Please help me with the following question. I have read questions regarding this issue, but still don't know how to connect !

I have written a VB6 application to retrieve/update Sybase data. When I installed it in my client's PC it doesn't recognise the DSN that I pointed to.

I have tried to Install the Open Client thing, and have tested OK with isql. But still when I run my app., it doesn't work !? I think I did have my dsedit

I supposed I have to run something (which I dunno what) to trigger the DSN on.

I have also downloaded the Direct Connection, but don't know how to use it ? Have tried installed it, but still doesn't work !?
Reply With Quote
  #2 (permalink)  
Old 01-06-03, 17:46
willy_and_the_ci willy_and_the_ci is offline
Registered User
 
Join Date: Feb 2002
Location: Willy is on vacation
Posts: 1,208
Hiya jmlim,

Here are few samples for connection strings to ASE

Using OLE DB Provider for ASE 12/12.5:
oConn.Open "Provider=Sybase ASE OLE DB Provider;" & _
"Data source=myASEServer"

Using ODBC:
oConn.Open "Driver={SYBASE ASE ODBC Driver};" & _
"Srvr=myServerName;" & _
"Uid=myUsername;" & _
"Pwd=myPassword"

Cheers
Willy

Last edited by willy_and_the_ci; 01-06-03 at 17:52.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On