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
 General SQL Server Forums
 New to SQL Server Programming
 update first row only

Author  Topic 

luke nukem
Starting Member

5 Posts

Posted - 2007-08-06 : 05:07:35
is there any way to update only the first row that is returned by the set of conditions specified in its where clause?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-06 : 06:26:34

SET ROWCOUNT 1
Your update
SET ROWCOUNT 0

Can you give us more details on why you want to update only one row?


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -