Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Audit Script


Audit Script

Author
Message
imraanm
imraanm
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 6
Im new at sql...
We have a sql server 2000. SQL Profiler is not running on this server.
I need to info on/audit all scripts that were run (successfull or not) that was run for last month (august 2010)on all databases... Somebody/Anybody please assist.
parthi-1705
parthi-1705
Say Hey Kid
Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)

Group: General Forum Members
Points: 694 Visits: 2196
imraanm (9/23/2010)
Im new at sql...
We have a sql server 2000. SQL Profiler is not running on this server.
I need to info on/audit all scripts that were run (successfull or not) that was run for last month (august 2010)on all databases... Somebody/Anybody please assist.



What were in that script which you have run last month(Aug 2010).

If you have run any sps,table,view,trigger etc.. script you can use the following query to get

Select * from sysobjects where month(crdate)=8 and YEAR(crdate)=2010

If you have inserted any datas in the tables it is not possible unless you have datetime column in the table you inserted.

Thanks
Parthi

Thanks
Parthi
imraanm
imraanm
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 6
Parthi hi,

THank you for the reply. I have tried the script, and still not luck. Doesn't display the desired info.

Perhaps if you have a script to audit all the log_in to that database for August 2010, from there i can maybe 'dig' for more data?
parthi-1705
parthi-1705
Say Hey Kid
Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)Say Hey Kid (694 reputation)

Group: General Forum Members
Points: 694 Visits: 2196
imraanm (9/27/2010)
Parthi hi,

THank you for the reply. I have tried the script, and still not luck. Doesn't display the desired info.

Perhaps if you have a script to audit all the log_in to that database for August 2010, from there i can maybe 'dig' for more data?


Doesn't display the desired info. What is the desire info ?
What do u need actually briefly explain.

I think u have to use 3rd party tool like Red Gate to know what datas are begin inserted in the DB.

Thanks
Parthi
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search