SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 DTS updating a table from one database to another?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 04/26/2004 :  11:31:35  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
Marcellus writes "I have been attempting to use DTS to update a database (A) table (AT) from another database (B) table (BT). The two tables need to sync only 3 columns and all rows. I can easily pull the information from database A but the updating of B has been problematic it just doesnt appear to work at. I am currently knee deep in SQL books to figure if I can do this or not. Any help be extremely grateful.

I think I am missing a key point using data driven query it pulls the data I connect the fields I want updated wrote and update query below and still nothing?

query for update under QUeries -> update:

UPDATE dbo.ZMPC_SN_LINK
SET ZMATNR = ?, ZSERNUM_U
= ?, ZSERNUM_HDWID = ?"

tkizer
Almighty SQL Goddess

USA
37276 Posts

Posted - 04/26/2004 :  12:41:40  Show Profile  Visit tkizer's Homepage  Reply with Quote
Could you show us the table definition? Could you also show us some sample data and what you are trying to do. Once we have that, we'll be able to help you out.

You don't need DTS for this also. If this needs to be scheduled, just setup a job to run the UPDATE statement.

Tara
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000