Is there a way to get the affected row count, when updating through an connection server?
I'm using MSSQL connected to MySQL with ODBC.
UPDATE OPENQUERY (MyConnection, 'UPDATE recordid, status FROM table WHERE status=0') SET status=1
linked-serversql serverupdate
Is there a way to get the affected row count, when updating through an connection server?
I'm using MSSQL connected to MySQL with ODBC.
UPDATE OPENQUERY (MyConnection, 'UPDATE recordid, status FROM table WHERE status=0') SET status=1
Best Answer
Use a modified Linked Server Naming Convention Instead with @@rowcount
Note:
Follow these steps to get Microsoft SQL Server linked server naming convention to work with MySQL:
https://stackoverflow.com/questions/31968343/select-from-mysql-linked-server-using-sql-server-without-openquery