Solved

Connecting to Sybase from VB Application

Posted on 2001-06-12
2
165 Views
Last Modified: 2012-05-04
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
Comment
Question by:jyothinag
2 Comments
 

Accepted Solution

by:
mpaul4u earned 30 total points
ID: 6184713
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
 

Author Comment

by:jyothinag
ID: 6186784
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now