Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Plz DML Update Query

Author  Topic 

atulsql
Starting Member

2 Posts

Posted - 2012-09-21 : 08:39:28
I Have table comtactdetail n i need list of updated fields only not Unchanged(it may be 1,2..,3.. field) from table when i pass clientID (one field in table)to query

sunitabeck
Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-09-21 : 10:05:19
There isn't enough information in your post for someone to offer you any useful suggestions, Atul. How do you determine if a field has been updated or not?

Can you post some sample data and required output that you are looking for along with the schema for your table? Brett's blog here may help: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-09-21 : 12:37:08
looks like what you're after is a kind of audting scenario

see CDC

http://www.databasejournal.com/features/mssql/implementing-sql-servers-change-data-capture.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -