I need to execute an UPDATE query against SQL Server up to 7000 times and I wanted to use the SQLPREPARE command to speed things up. The problem is I need to know how many rows were affected by each update. Is there away to get this information?
I can not use "SELECT @@ROWCOUNT AS affectedRows" with this connection as it will affect the SQL Prep command and I can not use another connection to get this info.
Should I just create a stored procedure?
Any help would be appreciated.
I can not use "SELECT @@ROWCOUNT AS affectedRows" with this connection as it will affect the SQL Prep command and I can not use another connection to get this info.
Should I just create a stored procedure?
Any help would be appreciated.