Possible Duplicate:
How to execute an UPDATE only if one row would be affected?
I have an update query in SQL Server 2005
update custom_graphics_files
set actual_file_Name = @CorrectName
where actual_file_Name = @FileName
Now if there are more than one actual_file_name
, I want to skip the update query,