如何将数据表从c#.net发送到sqlserver 2008? [英] How to send the Datatable from c#.net to sqlserver 2008?
问题描述
大家好,
我在C#.net的Session中有Table.
而且我想将所有数据从会话表插入Sqlserver 2008表.
我不知道如何插入来自C#.net前端或其他任何行的几行.
假设我在会话表中有30行,这意味着如何将其发送到sqlserver 2008和
如何从c#.net将会话表发送到sqlserver 2008?
如何将所有行插入到存储在会话表中的表中?
请帮我解决这个问题.
非常感谢.
Hi to Everybody,
I have Table in Session at C#.net.
And i want to insert all the data from session table to Sqlserver 2008 table.
I dont know how to insert the couple of rows while that come from the front end that is C#.net or whatever it may be.
Suppose i have 30 rows in a session table means how can i send that to sqlserver 2008 and
How can i send the session table to sqlserver 2008 from c#.net?
how can i insert all the rows into table as it is stored in the session table?
Please help me to solve this problem.
Thanks a lot.
推荐答案
我如何发送会话表从C#.net到sqlserver 2008?
How can i send the session table to sqlserver 2008 from c#.net?
可能SqlDataAdapter
是您要寻找的类.
Probably SqlDataAdapter
is the class you are lokking for.
这篇关于如何将数据表从c#.net发送到sqlserver 2008?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!