• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 199
  • Last Modified:

Connecting to Sybase from VB Application

Hi,

I am trying to connect to sybase database version 10 from a VB Application.The driver specification is as follows:
"CR Sybase System 10".I need to know the exact code for this as i am integrating with a sybase database for the first time!.

Any help on this is highly appreciated,
0
jyothinag
Asked:
jyothinag
1 Solution
 
mpaul4uCommented:
1) open aado object instance
2)open recorddet and pass query
that is all
make sure 32 bit odbc settting has sybase driver installed
This method uses dnn less connection using oledb
you can connect with dsn data source name as well
Code:-
*****With out dn**
dim rs as adodbc.recordset
dim con as adodbc.connection

Set Con =Server.CreateObject( "ADODB.Connection" )
Con.Open  "DRIVER={Sybase 'System11};SRVR=SYBFAO_EQI;DB=databsename;UID=sa;PWD=password"

Set RS = Con.Execute (MySQL)
with dsn
**
Con.Open "DSN=MyDSN;UID=sa;PWD=password"  'System DSN
0
 
jyothinagAuthor Commented:
Thanks for the help offered.I shall try the same and get back to you if in case i have any further doubts.

Thanks once again and Have A Nice Day!

Jyothi
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now