Buy Questpond's video subscriptions on
huge discount
.
Online: 3100
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
ASP.NET
>
Loading ...
how to insert data from datatable to database with single insert statement
Posted by
Mrutyunjay51
under
ASP.NET
on 5/22/2011 |
Points: 10
| Views : 11020 | Status :
[Member]
| Replies : 3
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
how to insert data from datatable to database with single insert statement
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Raja
on: 5/22/2011
[Member]
Starter
|
Points: 25
0
Hi Mrutyunjay51,
Read this article
http://www.itfunda.com/how-to-insert-records-into-the-database/Free/126
.
Thanks
Regards,
Raja, USA
Mrutyunjay51
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Mcadeepuraj
on: 5/23/2011
[Member]
Starter
|
Points: 25
0
you can use bulkcopy insert
e.g
Dim sqlbulkSubt As New SqlBulkCopy(con)
sqlbulkSubt.DestinationTableName = "your Database table name"
sqlbulkSubt.ColumnMappings.Add("Column_Source", "Column_destination")
sqlbulkSubt.ColumnMappings.Add("Column_Source", "Column_destination")
sqlbulkCert.WriteToServer(Your Source table name)
Deepak Kumar
Mrutyunjay51
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Posted by:
Lakhwinder.ghuman
on: 5/23/2011
[Member]
Starter
|
Points: 25
0
Hi
You can use SqlBulkCopy ti insert data from datatable to database.
Best Regards
Lakhwinder Ghuman
Mrutyunjay51
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to get the exact property name while getting error
(0)
PDB file is not showing Line Number in dot net application hosted on server
(0)
Both Strings morethan 5 letters in length end of the words one vowel and one consonent is different
(0)
how to check Any adjacent letters transposed between two strings(ex: JOHN, JHON)
(1)
can't receive data after success login ?
(1)
Implement Multi-Tenant in Azure Logic Apps
(0)
Why ASP.Net Core 7.0 Web API showing as Connection refused?
(0)
Iterating over columns of dataframe and print as rows in Python Django
(0)
More ...