Connection String Help


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?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aneesh RetnakaranDatabase AdministratorCommented:
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  


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

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


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.

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Craig YellickDatabase ArchitectCommented:
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
narmi2Author Commented:
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.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.