Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

sql service broker Expand / Collapse
Author
Message
Posted Sunday, May 5, 2013 9:13 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 21, 2014 5:38 AM
Points: 4, Visits: 204
Hi
Need help on getting code and info on
service broker (for sql server 2005 only)
for auditing DML commands.
Respond if any.
Thanks
Post #1449518
Posted Sunday, May 5, 2013 1:46 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 11:22 AM
Points: 223, Visits: 1,731
Why the service broker?
You should use DML Triggers http://msdn.microsoft.com/en-us/library/ms191524%28v=sql.105%29.aspx
Post #1449543
Posted Monday, May 6, 2013 7:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 21, 2014 5:38 AM
Points: 4, Visits: 204
thanks...yaa but i need to use service broker for DML auditing. is it feasible in sql 2005?
Post #1449709
Posted Monday, May 6, 2013 7:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 21, 2014 5:38 AM
Points: 4, Visits: 204
thanks...yaa but i need to use service broker for DML auditing. is it feasible in sql 2005? i cant use triggers.
Post #1449711
Posted Monday, May 6, 2013 10:32 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 11:22 AM
Points: 223, Visits: 1,731
No, service broker is for asynchronous processing. But you probably could put a message to the SB from DML trigger or an audit SP.
What do you want to achieve?
Post #1449793
Posted Monday, May 6, 2013 10:40 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Yesterday @ 6:48 PM
Points: 20,734, Visits: 32,499
Is there a reason you can't use database triggers to capture/audit DML actions?



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1449797
Posted Sunday, June 2, 2013 11:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, September 21, 2014 5:38 AM
Points: 4, Visits: 204
hi.. i used c2 audit mode n why i shud use triggers as i dont need data but only audit log of that...also trigger is hampering perf ...so suggest cn i use ser broker code without using triggers?
Post #1459078
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse