Forums

ASP

This topic is locked

Batch insert form asp/ms sql

Posted 31 Aug 2011 11:51:28
1
has voted
31 Aug 2011 11:51:28 stephan ludovic posted:
Hi,

I want to insert several records at the same time from a form (asp/Ms SQL)

I have in this form a list of football players and checkboxes in order to choose if they have played or not.

So when form is submitted it have to store in a table, idplayers and idmatch value (hidden form value).

How can i do it?

Please help?

Replies

Replied 16 Sep 2011 09:46:29
16 Sep 2011 09:46:29 Leonardo 1974 replied:
Yes you can, using sqlbulkcopy class you can insert datas from datatable.

please refer: www.dotnetcurry.com ShowArticle.aspx?ID=323

Cegonsoft

Reply to this topic