Skip to content
Advertisement

My script has no effects in more than 3 rows

The script works fine when it has 2 rows. Stop reading from 3.

This is MSSQL Server 2005. Try anyway without any result.

There is no error message. But if I have more than 10 rows, it doesn’t affect the row that should affect.

Advertisement

Answer

Given the new information in your comment you should simplify this to an update statement. There is no need for variables, IF statements etc.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement