Varshini S
asked on
What is rowversion in SQL Server ? How it is different from MERGE ?
What is rowversion in SQL Server ? How it is different from MERGE ?
We can use MERGE command to update/insert/delete records in source and target table.
Then why we need rowversion ?
We can use MERGE command to update/insert/delete records in source and target table.
Then why we need rowversion ?
Rowversion is a datatype that is used to track changes to records.
ASKER
My question is , if i have a two tables source and target and using merge command will take cAre of update or insert the records in target table. Than why i need to use rowversion?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://msdn.microsoft.com/en-us/library/ms182776.aspx
Row Version is not related to Merge Statement. Merge is a statement can be used to insert, update and delete rows. Example below-
https://technet.microsoft.com/en-us/library/bb522522(v=sql.105).aspx
Hope it helps !!