Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Older Versions of SQL (v6.5, v6.0, v4.2)
»
Older Versions of SQL (v6.5, v6.0, v4.2)
»
SQL Scripts - How to run and get results
SQL Scripts - How to run and get results
Rate Topic
Display Mode
Topic Options
Author
Message
glee777
glee777
Posted Friday, January 22, 2010 9:14 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, August 20, 2010 12:14 PM
Points: 4,
Visits: 10
Good Morning,
I am very new to SQL. I am trying to run a SQL on a table to see what changes were made to the system.
Can I use one that's on my system in a folder entitled SQL Scripts? or do I need to create one.
I am using MSSQL Server 2000 and I Query Analyzer and received error message, table already created.
I am trying to find if any changes were made to the table. In this instance a Table was deleted and need to know who deleted it.
There is an SQL Files in a Scripts Folder where looks like a query is written that asks it to create a table, but what I am wanting to do is create a log of any changes on that particular table.
Hope this makes sense.
Again, thank you for your help and patience with helping me to understand
How do I get results of the query?
Thank you for your help.
Post #852127
PaulB-TheOneAndOnly
PaulB-TheOneAndOnly
Posted Monday, April 05, 2010 12:15 PM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:03 AM
Points: 2,979,
Visits: 4,389
Are you trying to query a table that got dropped?
By the way, SQL Server does not keeps track of who drops and object but you can be certain was either the owner of the object or somebody with dbo or higher privileges on it.
_____________________________________
Pablo (Paul) Berzukov
Author of
Understanding Database Administration
available at Amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Post #896935
GregoryF
GregoryF
Posted Monday, April 05, 2010 12:26 PM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, April 23, 2013 3:40 AM
Points: 961,
Visits: 794
In short, no, on SQL 2000 you will not be able to tell if/when/who dropped a table. Your only option is to restore the table from a backup...if such a backup exists.
On the very off chance you had C2 auditing enabled, or are running a constant trace for auditing pruposes, you may be able to find out. But it's highly unlikely that either is the case.
/* ----------------------------- */
Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum!
Post #896942
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.