Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get INSERT & UPDATE statements??

Status
Not open for further replies.

gvphubli

Programmer
Nov 23, 2002
22
US
Hi guys,
Anybody knows how to get the INSERT, UPDATE & DELETE statements that run on the server. I want to collect all the statements and run them on the other database(replica) on 2 hourly basis. I know there is replication but its difficult to set and manage.

thanks...


Cracky -= Developer/DBA =-
visit :
 
The only possible way would be to set a trace in the profiler (or third party tools) and extract the queries. But it will turn out to be much more complicated than replication.

Consider instead:
- Implement a trigger
- Encapsulate the changes in proc and deny access to anyone else
- Search for 'Replication' in BOL :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top