473,385 Members | 1,730 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to check the last modifys in database


Hi everybody,

Is there way to check what were the last modifys to specified database??

I mean the last insertion, deletion ........... .. and in which tables.
Thanks for advance

--
"Imagination is more important than knolwege" (Albert Einshtein)
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...neral/200507/1
Jul 24 '05 #1
6 1281
hi

you can check in the SQL Profiler.

best Regards,
Chandra
http://groups.msn.com/SQLResource/
http://chanduas.blogspot.com/
---------------------------------------

*** Sent via Developersdex http://www.developersdex.com ***
Jul 24 '05 #2
akej via SQLMonster.com (fo***@SQLMonster.com) writes:
Is there way to check what were the last modifys to specified database??

I mean the last insertion, deletion ........... .. and in which tables.


No, there is no built-in support for this. Options to tackle this:

1) Your own autiding code.
2) Use Profiler.
3) Use a third-party product that works from the transaction log,
see www.lumigent.com and www.logpi.com for examples.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 24 '05 #3

Thanks for respone,
2) Use Profiler.

can u plz explain me how to acomplish it using Profiler???

i'm newb and use for profiler only for checking for sp recompilation and so
on.

Thanks for help.

Erland Sommarskog wrote:
Is there way to check what were the last modifys to specified database??

I mean the last insertion, deletion ........... .. and in which tables.


No, there is no built-in support for this. Options to tackle this:

1) Your own autiding code.
2) Use Profiler.
3) Use a third-party product that works from the transaction log,
see www.lumigent.com and www.logpi.com for examples.


--
"Imagination is more important than knolwege" (Albert Einshtein)
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...neral/200507/1
Jul 24 '05 #4
akej via SQLMonster.com (fo***@SQLMonster.com) writes:
2) Use Profiler.

can u plz explain me how to acomplish it using Profiler???

i'm newb and use for profiler only for checking for sp recompilation and
so on.


You would have to catch the SP:StmtCompleted and SQL:StmtCompleted events,
and probably add some filters on it as well. You should trace to a file
or a table rather than to the GUI, so you can load the trace into a table
and analyse it later.

If it sounds messy, it is because it is - messy.

Personally, if I were to implement an auditiing scheme I would into some
3rd party product like Lumigent's Entegra (which works on the transaction
log) or Red Matrix's SQL Audit (which works ny triggers). I would not call
running a constant Profiler trace an adequate auditing solution, because
the information you get is too unstructures. Possibly one could write a
tool that reads the Profiler output and build some useful information
from that. But that is not a minor undertaking.

Profiler could be sufficient if you only need to answer the question
"who did last change X" may be every second month or so, and you are
prepared to spend an hour each time to dig up the answer.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 24 '05 #5

Tnx for replay,

can u plz explain me how to acomplish it using Profiler???
Chandra wrote:
hi

you can check in the SQL Profiler.

best Regards,
Chandra
http://groups.msn.com/SQLResource/
http://chanduas.blogspot.com/
---------------------------------------


--
"Imagination is more important than knolwege" (Albert Einshtein)
Message posted via http://www.sqlmonster.com
Jul 24 '05 #6

ok thanks now it's more clear
Erland Sommarskog wrote:
2) Use Profiler.


can u plz explain me how to acomplish it using Profiler???

i'm newb and use for profiler only for checking for sp recompilation and
so on.


You would have to catch the SP:StmtCompleted and SQL:StmtCompleted events,
and probably add some filters on it as well. You should trace to a file
or a table rather than to the GUI, so you can load the trace into a table
and analyse it later.

If it sounds messy, it is because it is - messy.

Personally, if I were to implement an auditiing scheme I would into some
3rd party product like Lumigent's Entegra (which works on the transaction
log) or Red Matrix's SQL Audit (which works ny triggers). I would not call
running a constant Profiler trace an adequate auditing solution, because
the information you get is too unstructures. Possibly one could write a
tool that reads the Profiler output and build some useful information
from that. But that is not a minor undertaking.

Profiler could be sufficient if you only need to answer the question
"who did last change X" may be every second month or so, and you are
prepared to spend an hour each time to dig up the answer.


--
"Imagination is more important than knolwege" (Albert Einshtein)
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...neral/200507/1
Jul 24 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mark4asp | last post by:
Hello, Is there a simple way to check whether a database driver is available on a remote server? I only have ftp access so I can only run ASP scripts. An ASP application on a host has...
5
by: Mr. B | last post by:
The following code is how I check for duplicates in a List box. This is simple enough as there is only one column of stuff to check. ' Check for Duplicates ' Search listbox (from last to first)...
3
by: Bryan Harrington | last post by:
Hello.. I'm working on a "hybrid" application some classic ASP, and some asp.net. I'm trying to develop a support type page that checks necessary components, database connections etc.. last item is...
2
by: V_S_H_Satish | last post by:
Dear Friends I am working as oracle and ms sql dba from last 4 years. My company recently migrated to DB2 databases. So i am very much new to db2 database Can any one pls provide script to...
5
by: starke1120 | last post by:
Im creating a check in – check out database for RF guns. I have a table that contains models. ID (primary key) Model A table that contains Gun Details ID (primary key) Model_id...
6
by: GarryJones | last post by:
The following function checks to see if a variable read from a mysql database is numeric. The funtion worked until I hit the value 15 303 That is a valid number but because of the space between...
12
by: foolsmart2005 | last post by:
There are 10 webpages on the host, e.g. 001.html, 002.html, 003,html, 004.html, ......010.html I want to check whether the page is the last page. How can I do. In the index.html -Go to last...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
2
by: qwedster | last post by:
Folk! How to programattically check if null value exists in database table (using stored procedure)? I know it's possble in the Query Analyzer (see last SQL query batch statements)? But how...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.