To know database changes ---
SELECT *
FROM
sys.dm_db_index_usage_stats AS usage_stats
INNER JOIN
sys.tables AS tables ON tables.object_id = usage_stats.object_id
WHERE
database_id = DB_ID() AND
tables.name in (select name from sys.tables)
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
Comments
Popular posts from this blog
To send automatic email window services http://www.intstrings.com/ramivemula/articles/sending-automated-emails-asynchronously-using-a-c-windows-service-in-conjunction-with-database-email-records-part-ii/
Difference Between @@identity , scope_identity() and ident_Current('tablename'):- SELECT @@IDENTITY @@IDENTITY is limited to the current session, it is not limited to the current scope. SELECT SCOPE_IDENTITY() SELECT IDENT_CURRENT(‘tablename’) IDENT_CURRENT is not limited by scope and session; it is limited to a specified table.
Comments
Post a Comment