In SQL Server 2005+, puoi utilizzare
UPDATE TOP (1) ....
Il vantaggio di questo rispetto a SET ROWCOUNT è che tutti i trigger non saranno soggetti a un ROWCOUNT limite, che è quasi certamente una buona cosa.
In SQL Server 2005+, puoi utilizzare
UPDATE TOP (1) ....
Il vantaggio di questo rispetto a SET ROWCOUNT è che tutti i trigger non saranno soggetti a un ROWCOUNT limite, che è quasi certamente una buona cosa.