There are many ways to do that; it depends which version of SQL Server you are using.
Here are few
-
Audit trail with shadow table and trigger Here is the link
-
Also you can consider to use SQL Server 2008 Audit feature Here is the link
More Related Contents:
- Local and global temporary tables in SQL Server
- Get first day of week in SQL Server
- What is the significance of 1/1/1753 in SQL Server?
- Cannot truncate table because it is being referenced by a FOREIGN KEY constraint?
- How to delete large data of table in SQL without log?
- Insert Update trigger how to determine if insert or update
- SQL Server: UPDATE a table by using ORDER BY
- EF5: Cannot attach the file ‘{0}’ as database ‘{1}’
- Do I really need to use “SET XACT_ABORT ON”?
- What is a Trusted Connection?
- Understanding SQL Server LOCKS on SELECT queries
- Do while loop in SQL Server 2008
- Connecting to MS SQL Server with Windows Authentication using Python?
- Using COALESCE function to make values separated with commas
- How to find the port for MS SQL Server 2008?
- Assign result of dynamic sql to variable
- How do I create a multiple-table check constraint?
- Stored Procedure and Permissions – Is EXECUTE enough?
- Stored procedure – return identity as output parameter or scalar
- SQL Server Group by Count of DateTime Per Hour?
- How to import a DBF file in SQL Server
- SQL Server Dependencies
- SQL Server: Filter output of sp_who2
- How can I insert binary file data into a binary SQL field using a simple insert statement?
- Why do I get the error “Xml data type is not supported in distributed queries” when querying a linked server for non-xml data?
- Cannot find either column “dbo” or the user-defined function or aggregate “dbo.Splitfn”, or the name is ambiguous
- Date range overlapping check constraint
- Conditional JOIN Statement SQL Server
- How do you deal with blank spaces in column names in SQL Server?
- ODBC Call Failed with stored procedure – Pass through query