473,382 Members | 1,373 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,382 software developers and data experts.

Linking two databases and copying details to third database

Hi ,

there is one table (T1) in database DB1, another table T2 in DB2 , i want to run a query which select data from these two tables and copy/ place this data into third table T3 in DB3.

All Databases are residing in different servers.

i tried sp_addlinkedserver, but unable to solve the problem.

can anybody please tell me the steps to be follow to solve this problem.
Feb 11 '08 #1
5 1106
debasisdas
8,127 Expert 4TB
Did you run the query from DB3 ?
Feb 11 '08 #2
I need to run query in DB3,

linking the two databases(in diff. servers) will only resolve the issue.

if i take another path like
copy the ID, nad other needed data in temporary table in DB2 and then selecting data from the two tables(which now be in same database) can be done .

but it involves copying huge amount of data in live server and then again selecting copying data to third server's database(which is very time consuming)

please guide me as i am novice player in this area.

tnx.
Feb 11 '08 #3
ck9663
2,878 Expert 2GB
If this is a one time thing, just use DTS and transfer all the tables you need from DB1 and DB2 into DB3, then do your query in DB3. If this is more of recurring thing, you're right, you have to link the server. Could you post here what you have done so far?

-- CK
Feb 12 '08 #4
this is gotng to be a regular thing on daily basis.

i tried to link the server , but its not linking.
I tried to link server in Security ->Linked server in enterprise manager.

but its not working , means i can see the servers in the list but i cannot work.( i am lost)

please illustrate the steps and if possible the code used and where to write that code would be very greatful.

please help me as i have just started working in SQL 2000.
Feb 12 '08 #5
ck9663
2,878 Expert 2GB
Have you tried this ?

-- CK
Feb 12 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: tgru | last post by:
Hello, Can anyone tell me how to backup read-only databases? I want to backup the secondary databases in my log shipping pairs. Thanks, TGru *** Sent via Developersdex...
3
by: Ken | last post by:
I have a win 2000 database of autographs and scanned photos. They are in the SAME directory. In the table, my "ImagePath" text field shows JUST the image name (i.e. "blank.jpg"). I have an image...
14
by: diskoduro | last post by:
Hi!! Years ago I built a database to control the production of a little factory. The users wanted to work in a Windows Net workgroup so I created an mdb with all the tables and data an after...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
1
by: Daveyk0 | last post by:
Hello there, I have a front end database that I have recently made very many changes to to allow off-line use. I keep copies of the databases on my hard drive and link to them rather than the...
17
by: Mitas Nikos | last post by:
I am trying to use the library conio2 and though I have managed with a few relatively simple examples when i try to compile a program which conio's function clrscr is not in main() i get an error...
3
by: misscrf | last post by:
In a database, I am creating a new db. From there, I am setting up the tables, so that I can eventually create a front end (usually access, but I may attempt to be brave and lose the shell.) ...
6
by: rcmail14872 | last post by:
I need some advice about an MS Access database which is used to track inventory shipped from the US to Bolivia. In the US, the data is entered on a laptop and the database is stored on the laptop...
7
by: Salad | last post by:
I am converting an application from A97 to A2003. I have 2 tables created by another application as a Foxpro.dbf. The table has no index. The connect string in A97 is FoxPro...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
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...

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.