Solved

Connecting to Sybase from VB Application

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

728 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