473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DBLink to a SQL server

Hi,

is there a way in DB2 to have a db link to a remote table in SQL Server
2000 and be able to insert data in that table?
I have 2 systems that need to access the same information almost real
time (one app uses SQL Server and the other uses DB2) so immediately
after a user enters information in DB2, I would like the data to be
pushed real time into the SQL Server 2000 tables. I thought the easiest
way is to have a DBLink to those SQL tables and insert the data inside
DB2 if it is possible!

Any help or suggestions on a solution would be greately appreciated.
Sam

Aug 16 '06 #1
2 4985
Yes in DB2 UDB you can use

INFORMATION INTEGRATOR/FEDERATED DATABASES to accomplish this

1. Create wrapper

I think for SQL Server u have to use something like this

CREATE WRAPPER odbc LIBRARY 'db2rcodbc.dll'

check the CREATE WRAPPER statement for further details.

2. Create Server

3. Create usermappings

4. Create Nicknames

cheers...
Shashi Mannepalli

sa***********@gmail.com wrote:
Hi,

is there a way in DB2 to have a db link to a remote table in SQL Server
2000 and be able to insert data in that table?
I have 2 systems that need to access the same information almost real
time (one app uses SQL Server and the other uses DB2) so immediately
after a user enters information in DB2, I would like the data to be
pushed real time into the SQL Server 2000 tables. I thought the easiest
way is to have a DBLink to those SQL tables and insert the data inside
DB2 if it is possible!

Any help or suggestions on a solution would be greately appreciated.
Sam
Aug 16 '06 #2
Once you set this setup.....u can use REPLICATION to accomplish the one
u are mentioning....

Shashi Mannepalli
Shashi Mannepalli wrote:
Yes in DB2 UDB you can use

INFORMATION INTEGRATOR/FEDERATED DATABASES to accomplish this

1. Create wrapper

I think for SQL Server u have to use something like this

CREATE WRAPPER odbc LIBRARY 'db2rcodbc.dll'

check the CREATE WRAPPER statement for further details.

2. Create Server

3. Create usermappings

4. Create Nicknames

cheers...
Shashi Mannepalli

sa***********@gmail.com wrote:
Hi,

is there a way in DB2 to have a db link to a remote table in SQL Server
2000 and be able to insert data in that table?
I have 2 systems that need to access the same information almost real
time (one app uses SQL Server and the other uses DB2) so immediately
after a user enters information in DB2, I would like the data to be
pushed real time into the SQL Server 2000 tables. I thought the easiest
way is to have a DBLink to those SQL tables and insert the data inside
DB2 if it is possible!

Any help or suggestions on a solution would be greately appreciated.
Sam
Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Clive Page | last post by:
What I'd like to do is use dblink to extract a few rows from a remote database and manipulate these within a function in pl/pgsql. Something like this: CREATE OR REPLACE FUNCTION find() RETURNS...
1
by: Brian Maguire | last post by:
What's the best way to create a connection with dblink with persisted connections for web applications? For example: I want to have a view that links to a table in another pg database so I...
1
by: Oleg Lebedev | last post by:
Is there a way to rollback a dblink transaction? Say, I delete some data from the remote database, but I don't want this to be visible untill the data is inserted in the current database. And if...
2
by: Mark Gibson | last post by:
Hello, I've been experimenting with dblink recently, and have encountered some limitations I'd like to discuss. I've been trying to create views of remote tables, like so: CREATE VIEW stuff...
2
by: Sam Masiello | last post by:
Hello all! I am rather stuck and am hoping someone can help. I am working on a project where users need to be able to send one query which will hit databases on multiple hosts (the database...
1
by: Kreißl, Karsten | last post by:
Hello, we want use dblink to connect several databases in a client/server environment. Connection from local users to the remote databases should be possible only for privileged users. We tried a...
2
by: Jim Worke | last post by:
Hi list, My boss would like to convert from MySQL to PostgreSQL, but there are a few things that hold us back. We'd like to have the databases in several physical servers, with referential...
3
by: stephcsh | last post by:
Hi, I wanted to copy a data from table1 in db1 to table2 in db2, which has the same structure, with the PosgreSQL dblink funtion. The fields for both the tables are: id, first_name, last_name. ...
1
by: dsslim | last post by:
Hi, Oracle instance A has a dblink to DB2 DB. Oracle instance B, which resides on the another machine wants to access the DB2 via Oracle instance A's dblink. Possible ? TIA !
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.