Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
jetcity73
Starting Member
2 Posts |
Posted - 2005-12-08 : 23:49:25
|
I need to export a file to synchronize data with an external SQL server.But the data in the table is rarely changed.Is there a way to export a file only when update within the table is detected?Thanks. |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2005-12-09 : 00:34:09
|
quote: I need to export a file
you mean export a table to a file ? You can use DTS or BCP to export a table to a file.quote: Is there a way to export a file only when update within the table is detected?
You can execute the DTS or BCP in your table's update trigger. Or alternatively keep a last update date & time or flag (update the flag using update trigger) and schedule a job via Enterprise Manager to check for the flag and call DTS / BCP to export to file.-----------------[KH]Guys, where are we right now ? |
 |
|
afrika
Master Smack Fu Yak Hacker
2706 Posts |
Posted - 2005-12-09 : 04:00:39
|
quote: Originally posted by khtanquote: Is there a way to export a file only when update within the table is detected?
You can execute the DTS or BCP in your table's update trigger. Or alternatively keep a last update date & time or flag (update the flag using update trigger) and schedule a job via Enterprise Manager to check for the flag and call DTS / BCP to export to file.
thats the way to go |
 |
|
|
|
|