Solved

How do I set up a linked server to Informix using Transoft ODBC driver?

Posted on 2009-06-30
3
1,238 Views
Last Modified: 2013-12-24
Using SQL 2005.  Have a working System DSN set up using Transoft ODBC driver to an Informix database.  This database is running MISYS (medical practice management software).

I need to set up a linked server from SQL 2005 to this database.  I can't find any documentation on how to do this.  When I use MISYS Query (reporting tool), it uses two levels of authentication to open a catalog.  I have the full path to the catalog, and the user/password for the catalog and the user/pwd for the database.  How do I put these together in an sp_addlinkedserver command to make a working linked server?
0
Comment
Question by:Brett_Gerlach
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
EugeneZ earned 250 total points
ID: 24751180
if you ave a working System DSN set up using Transoft ODBC driver to an Informix database on sql server box:

use ssms or code

use Microsoft OLE DB Provider for ODBC -- ODBC data source
sp_addlinkedserve
http://msdn.microsoft.com/en-us/library/ms190479.aspx

sp_addlinkedserver @server='[your_linkedserver_name]',
@srvproduct='Driver',@provider='MSDASQL', @datasrc='[name of your system DSN]';

set security
sp_addlinkedsrvlogin

http://msdn.microsoft.com/en-us/library/ms189811.aspx
0
 
LVL 42

Expert Comment

by:EugeneZ
ID: 24751188
also check
How to connect SQL Server 7.0 to Informix                                           

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=243&lngWId=5
0
 

Author Closing Comment

by:Brett_Gerlach
ID: 31598610
That worked.  I set the security to logon using the database (not catalog) user and password for Misys Query.  I didn't need the catalog user/password anywhere.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

774 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