?
Solved

Connecting to Sybase from VB Application

Posted on 2001-06-12
2
Medium Priority
?
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
mpaul4u earned 90 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

771 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