Is there any way of counting the number of rows writtend to the database with sqlwrite?

3 ビュー (過去 30 日間)
Jacek Szkutnik
Jacek Szkutnik 2020 年 9 月 25 日
回答済み: Piyush Kumar 2024 年 11 月 19 日
Is there any way of counting the number of rows writtend to SQL Server database with sqlwrite?
I would use @@ROWCOUNT but it has to be run in the same batch.

回答 (1 件)

Piyush Kumar
Piyush Kumar 2024 年 11 月 19 日
Hi,
To get the number of rows written to the SQL server database with sqlwrite, you can use sqlread before and after using sqlwrite statement and take the difference.

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by