从ms sql服务器获取插入响应回前端vb.net [英] get insert response from ms sql server back to front end vb.net

查看:68
本文介绍了从ms sql服务器获取插入响应回前端vb.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的前端使用DataAdapter更新插入记录.
后端使用存储过程检查表中是否存在该存储过程,如果不存在,则这些记录将插入到表中.
但是,当我从DataAdapter.Update获取记录数时,它返回更新的记录数,而不是插入表中的记录数.

问题:如何获取插入表中的记录数?

My front end uses DataAdapter to update insert records.
The back end uses stored procedure to check if that exists in the table or not, if not, those records will insert to the table.
But when I get the number of records from DataAdapter.Update, it returns the number it updated, not the number of records inserted into the table.

Question: How do I get the number of records inserted into the table?

推荐答案

如何使用DataSet.GetChanges(DataRowState.Added) [

这篇关于从ms sql服务器获取插入响应回前端vb.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆