SQL: If Exists Update Else Insert
http://blogs.msdn.com/b/miah/archive/2008/02/17/sql-if-exists-update-else-insert.aspx
The above way is to get one record in. Iterate through a result set in order to do this operation for multiple rows.
How to iterate through a result set by using Transact-SQL in SQL Server
http://support.microsoft.com/kb/111401
The above way is to get one record in. Iterate through a result set in order to do this operation for multiple rows.
How to iterate through a result set by using Transact-SQL in SQL Server
http://support.microsoft.com/kb/111401
Comments
Post a Comment