SQL Server - DML Commands auditing against user database objects.

Asked By prathap chowdary on 22-Jun-12 08:27 AM
Earn up to 30 extra points for answering this tough question.
Hi,

This is Prathap...... Actually client requirement is
 '' They need auditing DML commands against user database objects."

here i am facing problem ..because our all production servers running with SQL Server 2008 standard edition.
so , in standard editions Auditing feature not supported.

And i have tried through SQL server profilers.......in profiler counters...there is Objects folder is there....in that there options is there : objects:created, objects:Altered, objects:Deleted.
so profilers giving spid's for the above profilers options.......

but how to find out sql query's for that particular spid's..........
in the above scenarion i have tried with below query :

select

* from sys.dm_exec_sessions as s

inner join sys.dm_exec_requests as req on s.session_id=req.session_id

cross apply sys.dm_exec_sql_text(req.sql_handle)

where



s.session_id=61



In the above query also have a problem......because if i am running 2 querys with this session id : 61 .....i am not getting all sql text for that spid.

Please any one help me........is there any another scenario's..........

Note : We are using SQL Server 2008 standard edition.

Regards,
Prathap.
Robbe Morris replied to prathap chowdary on 22-Jun-12 02:09 PM
I think you are after this sort of technique:

http://schottsql.blogspot.com/2010/02/ddl-schema-change-auditing-on-sql.html
help
Can you suggest me what tutorials or links or ebooks we have to reffer to improve knowledge on sql server as a 1+year experinced person. what i have to reffer as a 1+ experinced and sp generates record set or output parameter. SP can be used for ddl and dml statement while udf cannot be used for the same. What is the cursor in SQL server? Cursors are used to hold the data temporarily for processing for some logic. It
Can anyone say me something about DML with Example in Sql Server hi, DML DML is abbreviation of Data Manipulation Language . It is used to retrieve, store, modify, delete, insert
explain the differences between oracle and sql server SQL Server is MicroSoft Product Oracle is Multinational Company am not asking about the companies, sql server
Does anyone know of an integrated change management solution for Sql Server? SQL Server does a crappy job of tracking changes. It doesn't even give you the last
Hi all, Can anyone tell me if SQL Server had row level locking prior to SQL Server 7.0? I seem to remember that
Hi there, If I wanted to see how many transactions take place on an SQL Server on a daily basis, what would be the best way to go about this. Thanks for your help Francis SQL Server Discussions SQL Server (1) Statistics (1) Server.Databases (1) Perf.Monitor (1) ApexSQL (1) HiMy
I have run into ! = in some old problematic stored procedures I am reviewing and I do not remember ever seeing it before. Is it still used? Using SQL Server 2005. Nancy L SQL Server Programming Discussions SQL Server 2000 (1) SQL Server 2005 (1) Informix (1) Oracle (1) Stored procedure (1) INNER JOIN
Hi All, I need to convert Oracle SQL to SQL Server script. Does anybody know turtoials, web links or good tools to convert ORACLE to
what is the difference between sql server and oracle? Get the ppt of difference between sql and oracle http: / / nocoug.org / download / 2004-05 / BegSQL.ppt Hi, The difference between SQl Server and Oracle are as follows:- Oracle : • a better transaction system • packages • Cursor For Loops
Why_can’t_recursive_queries_contain. . .? SQL Server hi I hope I didn = 92t put too many questions 1) Why can = 92t recursive queries also be unioned together with UNION operator ( instead they must use UNION ALL )? thanx SQL Server Programming Discussions SQL Server 2008 (1) SQL Server 2005 (1) SQL Server 2000 (1) SQL Server (1) Oracle (1) Ruby (1) MichaelcoAToptonlineDOTnet (1