Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to link Sage 50 Accounting database to Microsoft SQL Server 2014?

Posted on 2015-02-16
6
Medium Priority
?
1,989 Views
Last Modified: 2015-02-18
I tried to make an ODBC connection to Sage 50 Accounting using the Pervasive driver. It is successful. When I tried to connect it to the SQL Server using the Linked Server, there are some errors. Wonder if there is another workaround to link Sage 50 to SQL?
0
Comment
Question by:JOYV23
6 Comments
 
LVL 18

Expert Comment

by:mirtheil
ID: 40613200
What errors?
Can you access the data through the Pervasive ODBC interface?
0
 
LVL 28

Expert Comment

by:Bill Bach
ID: 40613234
Many versions of SQL Server are 64-bit -- is yours?  If so, then you need a 64-bit ODBC Driver and 64-bit DSN.  This is ONLY available on PSQLv11 or newer.  Depending on your version of Sage, you may still have PSQLv10, which does NOT have 64-bit ODBC drivers.  In that case, you will need to use either 32-bit ODBC, or wait until Sage gets you up to PSQLv11 or PSQLv12.  

If you do have PSQLv11 already and a 64-bit SQL Server, install the 64-bit PSQL Client onto the SQLServer box, create a 64-bit DSN, and you should be working.
0
 
LVL 10

Expert Comment

by:Bruce Denney
ID: 40613742
Which Sage 50?  UK, US, CAN or rest of the world?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:JOYV23
ID: 40614310
Here's what I did.

1. Open odbcad32.exe ( Created a data source name "BarrFab" under User DSN - selected the Pervasive ODBC Engine Interface driver )
- Supply password - test connection - successfull.

Version of Sage is Sage 50 Accounting 2015 US  and the Pervasive is PSQL 11

2. Open SQL Server Mngmt. Studio 2014 (32 bit) - Selected New Linked Server
Selected provider:  Microsoft OLE DB Provider for ODBC driver
Product Name: BarrFab
Data Source:  BarrFab
Leaved blank for Provider string, location and catalog.

Supply security password. After it gives me an error of :

TITLE: Microsoft SQL Server Management Studio
------------------------------

The linked server has been created but failed a connection test. Do you want to keep the linked server?

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "BARRFAB".
OLE DB provider "MSDASQL" for linked server "BARRFAB" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". (Microsoft SQL Server, Error: 7303)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=12.00.2000&EvtSrc=MSSQLServer&EvtID=7303&LinkId=20476

------------------------------
BUTTONS:

&Yes
&No
------------------------------
0
 
LVL 28

Accepted Solution

by:
Bill Bach earned 2000 total points
ID: 40615272
I believe that SQLServer 2014 is ONLY 64-bit.  Have you installed the 64-bit PSQL Client onto the SQLServer machine ALSO?  (You should install the 32-bit Client AND the 64-bit Client.)  Then, make sure that you set up a 64-bit ODBC DSN -- not a 32-bit.  This should work, then.
0
 

Author Closing Comment

by:JOYV23
ID: 40617664
Thank you BillBach  :)
That solves the problem.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

885 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