| | |
Upload txt data to MS SQL Database (Using C# and ASP.NET)
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2009
Posts: 40
Reputation:
Solved Threads: 0
Hi, it's me agian... I was asked to do reasearch on how to upload a txt file's data into a MS SQL Database (corresponding columns etc.) I've searched a bit on the internet but don't find what i'm looking for... I just want to ask does anyone have an idea of where i can go and look for information on this. (I'm still very new to C# and ASP.NET programming) (It's so that i can present this topic in class and implement it in my class project) I would really appreciate any suggestions, and i thank you in advance!
I think you didnt Search enough, look at this
http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text-or-csv-file-data-into-sql-server.html
http://nathanbuggia.com/post/Import-a-CSV-File-into-SQL-Server-BULK-INSERT.aspx
http://blogs.techrepublic.com.com/datacenter/?p=317
Kind Regards
Vuyiswa Maseko
http://sqlserver2000.databases.aspfaq.com/how-do-i-load-text-or-csv-file-data-into-sql-server.html
http://nathanbuggia.com/post/Import-a-CSV-File-into-SQL-Server-BULK-INSERT.aspx
http://blogs.techrepublic.com.com/datacenter/?p=317
Kind Regards
Vuyiswa Maseko
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
Am glad you got your Solution . Mark your Post as Resolved
Kind Regards
Vuyiswa Maseko
Kind Regards
Vuyiswa Maseko
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
•
•
Join Date: May 2009
Posts: 40
Reputation:
Solved Threads: 0
Oky i've got it partially working now. My only question now is will i be able to have a autonumber column aswell in the database table so that the autonumber keeps on adding numbers as i upload my data into the table? (i hope so but i know that it will most probably only work with an insert statement? right or wrong?)
I saw that to skip the first row you can simply say FIRSTROW = 2 and so i tried FIRSTCOLUMN = 2 but doesn't work. Here is my code:
I saw that to skip the first row you can simply say FIRSTROW = 2 and so i tried FIRSTCOLUMN = 2 but doesn't work. Here is my code:
C# Syntax (Toggle Plain Text)
BULK INSERT dbo.testTBLUpload FROM 'C:\Users\GOgGA\Desktop\upload1.txt' WITH ( FIRSTROW = 2, FIELDTERMINATOR = '|', ROWTERMINATOR = '\n' )
![]() |
Similar Threads
- How to connect MSAccess database in ASP.NET (C#)
- add nodes and subnodes to a treeview from sql database by coding in asp.net 2.0 (ASP.NET)
- retrieve data from SQL database into a combobox (Visual Basic 4 / 5 / 6)
- Upload/download file from to SQL Database (C#)
- Upload/download file from to SQL Database (ASP.NET)
- Enable only one user to edit a row in SQL server database using C#, asp.net win apps (ASP.NET)
- need help with sql database in asp.net using VB (ASP.NET)
- How to connect sql database in asp.net using VB? (ASP.NET)
- tool for converting java/sql codes to asp.net/sqol2000 (Java)
Other Threads in the C# Forum
- Previous Thread: sending mail
- Next Thread: C#.net Modifying XML Attribute
| Thread Tools | Search this Thread |
.net access activedirectory ajax algorithm analyst array asp asp.net c# c++ check client combobox concurrency connection contorl cs4 data database datetime dba dbconnection developer development directrobot disabled drawing dropdown editor eventhandlers excel extensions file form formatting http httpwebrequest index java label linux lisp list listbox login marshalbyrefobject messagebox microsoft ms msdn mysql news number office oracle packaging panel path photoshop php platform play post print programmer programming query remote remoting report reporting resource result richtextbox security server sharepoint smoobjects software sql sql-server sqlserver statistics stream table tcpclientchannel textbox usercontrol validation vb.net video vista visual visual-studio warehouse web whileloop winforms wpf






