Connection String Help

Posted on 2006-04-05
Last Modified: 2012-06-27

I would like to link my application to SAGE Payroll and have read from the web that I can use an odbc connection to link to the SAGE Payrol database.

Does anyone know what this connection string is and/or how I find out what the connection string is?

Question by:narmi2
    LVL 75

    Accepted Solution

    Hi narmi2,


    Set rs=server.createobject("adodb.recordset")
    Set cn = Server.CreateObject("adodb.Connection")  
    On error resume next
    Connect = "DSN=" & DSN
    cn.Open Connect, UID, PWD  

    LVL 1

    Assisted Solution


    If Payroll is installed then it will create an ODBC connection called Payroll32.  Line 50 is the Sage accounts package.  


    LVL 65

    Assisted Solution

    Do you have the ODBC drivers? By what Petermcg001 is saying, it should be there

    Depending on what u use, (I dont know whats available), u could try this site, which has lots of different connection types. There is also a general DSN for ODBC connection string, that may work for you.

    LVL 11

    Assisted Solution

    You can access a very handy connection string builder like so:

    1. Create a new, blank text file (.txt file extension).

    2. Rename the file extension to .udl  (universal data link)

    3. Double-click the .udl file.

    4. A connection string builder is displayed. Select your driver from the list, then move through the other tabs until you have configured the connection. There is a Test button to test it.

    5. Close the dialog, the connection string is written to the file.

    6. Rename back to .txt and you'll be able to see the string in Notepad.

    This builder is for OLEDB drivers but there's an ODBC compatibility driver that might do the trick.

    -- Craig
    LVL 1

    Author Comment

    Thanks for the info!

    The sage software is on a computer in accounts.  I am unable to find the odbc driver on my computer!

    How do I get it on my computer without installing sage on my computer.

    I want to be able to link to sage from my computer.

    LVL 65

    Assisted Solution

    check the sage website, see if they have it for download
    it may be in a developer edition pack, perhaps u need to buy it.

    Im assuming SAGe has its own ODBC driver since all the backend DB's Ive connected to have their own
    unless they make use of another one

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Introduction After workin in a plethora of programming languages like C, Pro*C, ESQL/C, C++, VC++, VB, Java, HTML,JavaScipt etc, technologies and frameworks like JSP, Servlets, Struts, Spring, IBatis etc and databases like MS Access, SQLServer, Inf…
    Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 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

    13 Experts available now in Live!

    Get 1:1 Help Now