Connection String Help

Posted on 2006-04-05
Medium Priority
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

Aneesh Retnakaran earned 600 total points
ID: 16379573
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  


Assisted Solution

Petermcg001 earned 400 total points
ID: 16379693

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


LVL 65

Assisted Solution

rockiroads earned 600 total points
ID: 16379723
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, http://www.connectionstrings.com which has lots of different connection types. There is also a general DSN for ODBC connection string, that may work for you.

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

LVL 11

Assisted Solution

by:Craig Yellick
Craig Yellick earned 400 total points
ID: 16380075
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

Author Comment

ID: 16380376
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

rockiroads earned 600 total points
ID: 16381178
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

755 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