The time now is 07/24/08 - 11:12
Log in: Username: Password:
Search forums for:
  
 
H-Desk.com Forum Index

H-Desk.com - PC Security matters - Protect your PC privacy


Upload .csv via SQL server


H-Desk.com Forum Index -> Web Server Administration & Database Management

Post new topic   Reply to topic
Author Message
franciskus



Joined: 27 Mar 2006
Posts: 213



PostPosted: 07/11/07 - 05:44    Post subject: Reply with quote

I have an ASP.net application and need to upload .csv files to SQL server. These files will consist of some data collected from visitors and then transported to SQL server table for permanent storing. My last experiment has showed me that manipulating .csv files can be very slow. Can you recommend me some way of uploading .csv files to SQL Server?
Back to top
allan



Joined: 06 Mar 2006
Posts: 194



PostPosted: 08/02/07 - 22:00    Post subject: Reply with quote

You can try few things regarding this problem. If your .csv files are stored somewhere and filled with information about different visitors and then, after some time, are uploaded to SQL server you can loop through .csv file and insert row by row in SQL server table. This is not the fastest way possible but it is safe one because if something fails it will fail on only one entry and not on the whole file. Other way is to use BULK INSERT from Microsoft web site, but this only works if .csv file and SQL server are on the same machine.
Back to top
Display posts from previous:   
Post new topic   Reply to topic All times are GMT

H-Desk.com Forum Index -> Web Server Administration & Database Management

Page 1 of 1

Related topics:
Website FTP uploading issue
please help me to upload a website
Illegally Downloading and Uploading
iPod nano/ uploading to it
Cannot upload photos to personal Webspace
Bank's hacked server supports phish attack
DNS servers do hackers' dirty work
Outlook 2002 - Yahoo SMTP server
Server 2003 Internet problem
Cannot Ghost from Windows Server 2003