
Connecting IDS 7.31 with SQL Server 7
Quote:
> Hello all.
> I need to perform a search in an SQLServer table, wich is referenced
> in another database in IDS 7.31. Its like if you have your customer
> table on SQLServer and orders table in Informix. You must verify if
> the customer exists before you insert a row in the orders table. Im
> thinking about creating a trigger calling a stored procedure that
> calls another SP on SQL Server.
> Is there any way to do this search ??
> The database is under AIX (IBM), and the SQLServer database is under
> NT.
> Any help will be welcome.
> Thanks in advance
> Paulo Amorim
> TS&O Consulting
> Brazil
You can link the Informix server to the SQLServer system if you're running
the job in SQLServer.
Create a system DSN linked to your Informix database.
In SQLServer enterprise manager, go to Security - linked servers, right
click and choose add a new server.
Give the linked server a name - tell it that you want to use an OLE DB
Provider for ODBC Databases - then in the DAta Source item - enter the name
of the DSN you created to link to the
Informix db.
Once you're linked the SQLServer should retrieve a full list of the tables
the login specified in the DSN has access to.
Create a new view in the SQLServer, and drag the tables you need from the
linked server to the view - and there you go. You can use the view in your
sp to do whatever the login you used in the DSN allows you to do.
Afraid I'm new to Informix and as yet have not got the faintest idea how to
do it the other way around
HTH - and good luck.
--
Quote:
> 'One accusation you can't throw at me is that I've always done my best.'
> -
> Alan Shearer