Connecting to Sybase via ODBC

Posted on 2005-05-12
Last Modified: 2010-05-01

I am trying to do an ODBC connection to a sybase database. The Sybase is setup on site and the BDE administrator shows the DSN and I can do a test connection to it. Unfortunately I have never connected to Sybase before so have been pulling hair out all day. Suffice to say that, after trying I don't know how many attempts with workspaces, connections and other things I am now hanging my head and going to ask if anyone can help me with this.

I have been given the DSN, UID, Password and DB-Servername for the Sybase but I don't know if the reason for me not connecting has to do with me just writing an incorrect connection string or just using the totally wrong tools.

Many thanks,
Question by:icontroldev
    LVL 19

    Assisted Solution

    LVL 29

    Accepted Solution

    Here are a few tutorials for using ADO:

    I would use this connection string if possible:

    If this does not work then use the one above from Shauli.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Introduction This article makes the case for using two modules in your VBA/VB6 applications to provide both case-sensitive and case-insensitive text comparison operations.  Recently, I solved an EE question using the LIKE function.  In order for th…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    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…

    779 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

    9 Experts available now in Live!

    Get 1:1 Help Now