Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please tell me the all ways : How i write large amount of excel record in sql server table. my records are upto 90k and some time exceed

Which method i follow that give me best performance. Now i m using sqlbulkcopy.

Also i store that record in xml and then i store it in db so now i wants to optimize my code and also time complexity.

Regards

Murtaza Malik
Posted

1 solution

Do not store the records in XML file as unnecessary XML nodes will make your source file bigger. Rather use a delimited text files (csv, or fixed length etc) to store(export) the data.

You can design a SSIS package to import the records to database. SSIS has various number of controls that will give you more freedom and facilities to do your job in better fashion.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900