Solved

Connecting to Sybase from VB Application

Posted on 2001-06-12
2
173 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 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
MS Access - Capture pressed key onclick 4 46
vb6 connector to SQL Server 2 42
RUNRMTCMD from AS/400 13 122
Export PDF Form fields to Access  or Excel  in Tab order 16 126
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

738 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