.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

how to insert bulk records in mysql databse

Posted By: Pratima B     Posted Date: March 23, 2010    Points:2   Category :ASP.Net
hi,

how to insert bulk records in mysql databse from asp.net. i am inserting 2000 records in my sql database. Is there any alternative to that?

Responses
Author: Syed Shakeer Hussain             
Posted Date: March 24, 2010     Points: 5   

Hi Pratima ,
check the following link to insert multiple records from one table to another table at a time(using Single Query)
http://blog.sqlauthority.com/2007/08/15/sql-server-insert-data-from-one-table-to-another-table-insert-into-select-select-into-table/

Author: Lalij Mer             
Posted Date: March 25, 2010     Points: 5   

Try this link:

http://www.experts-exchange.com/Database/Miscellaneous/Q_23376626.html

Please Check my answer if you help....
Thank You...

Lalit.
Author: Ashutosh Jha             
Posted Date: December 30, 2013     Points: 20   

Hi,

store all the data in a csv file(.csv extension) and than use below code. this is a working code. i have used it.

bulk 
insert tblname
from 'C:\filename.csv'
with
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
go


Regards,
Ashutosh Jha
ashutosh741@gmail.com

http://www.tricksroad.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend