要传递给SQL存储过程的DataGrid数据以及要保存在表中的数据 [英] DataGrid Data To be Passed on to a SQL Stored Proc and the data to be saved in a table

查看:65
本文介绍了要传递给SQL存储过程的DataGrid数据以及要保存在表中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



这就是我正在做的事情,我有一个表单,其中有一些文本框和组合框,来自它们的数据被移动到数据网格和我要做的主要事情是来自datagrid的数据需要传递给SQL存储过程,这将把数据推送到表格。

请让我知道如何轻松或这是实现这一目标的最佳方式。



感谢所有帮助



Farman

Hi There,

This is what I am doing, I have a Form in which I have some textboxes and combo boxes, the data from them is moved to the datagrid and the main thing that I want to do is the data from the datagrid needs to be passed to a SQL stored proc which will push the data to the table.
Please let me know how easily or the best way to accomplish this.

Thanks for all the help

Farman

推荐答案

将值更新为dataTable,然后将数据表传递给存储过程,可以在db端创建TYPE。

简单
update the value to dataTable then pass the datatable to stored procedure for this you may create the TYPE in db side.
its simple


这篇关于要传递给SQL存储过程的DataGrid数据以及要保存在表中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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