Question : Sage Line 100 database connection

Hi,

I need to set up an ODBC connection to a sage line100 database, so as I can interact with it through ASP.  I have been told it is possable, but I have no idea what the connection string should be, and am finding it difficult to find any information on this.

If anybody has done this before, or has any ideas on how it can be achieved, please could you point me in the right direction

Thanks in advance

Paul

Answer : Sage Line 100 database connection

It was an odd format, I had to point the driver at a funny file (forget which, sorry)

Within he ODBC panel, click the DRIVERS tab and scan down the list to see which one was developed by "The Sage Group Plc" (or anything close) - This is the driver you need to use to interact with the Sage DB.  This should identify the db driver that Sage uses.

Once you know the driver name, I find the easiest way to get a connection string (I saw this method used elseware on this site)

1) Create a text file (right click in explorer and select New->Text File
2) Rename the text file to PaulCampbell.UDL
3) Double click the file
4) Click on [Use Connection string], click on BUILD next to it
5) Click on machine datasource, click on New
6) Click on System Data Source, Click next, select the sage driver, click done, fill in details of your sage db location
7) Click ok, ok, enter username/password, select initial catalog and test!

You won't believe this.. but, after the connection works, rename the file PaulCampbell.UDL to PaulCampbell.txt, you will find the exact connection string you need to use to access it.

Best Regards

Nick
Random Solutions  
 
programming4us programming4us