| | |
Upload txt data to MS SQL Database (Using C# and ASP.NET)
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
Your SQL Table Must have a Identity Column first change the Defination of your table to this
C# Syntax (Toggle Plain Text)
CREATE TABLE mytable ( id INT IDENTITY(1,1) PRIMARY KEY not null, Fname text, Surname text, Tel text, Salary DECIMAL(18,2) );
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
K I tried to do it like this but it still isn't working. here is the error i get:
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 5 (Salary).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 2, column 5 (Salary).
And this is what i'm uploading:
0123313470|Hein|Oosthuyzen|15489.62
0126547896|Johan|du Toit|13240.27
0124784532|Nico|Fourie|14500.20
0123546987|Shaun|Venter|16320.12
0124872134|Burnabe|Jordaan|12480.80
NOTE: I moved the Tel to infront of the Fname column!
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 5 (Salary).
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 2, column 5 (Salary).
And this is what i'm uploading:
0123313470|Hein|Oosthuyzen|15489.62
0126547896|Johan|du Toit|13240.27
0124784532|Nico|Fourie|14500.20
0123546987|Shaun|Venter|16320.12
0124872134|Burnabe|Jordaan|12480.80
NOTE: I moved the Tel to infront of the Fname column!
Last edited by phoenix_dwarf; Oct 5th, 2009 at 11:44 am.
Mark the Post as Resovled and give Reputation if i deserve it
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."
![]() |
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
Views: 2865 | Replies: 26
| Thread Tools | Search this Thread |
Tag cloud for c#, sql, uploadatextfile
.net 2d access ajax analyst array asp asp.net association associations c# c++ chat collections combobox connection contorl cs4 data database datetime dba developer development disabled drawing dropdown editor embedded excel file form formatting gdi+ geometry http httpwebrequest index java javascript label linux lisp list listbox login math messagebox microsoft ms msdn mysql news number office open operator oracle packaging panel password photoshop php picturebox post programmer programming query read remote remoting report resource result richtextbox saving security serialization server sharepoint smoobjects software sql sql-server sqlserver string table tables textbox treeview validation vb.net video view vista visual-studio web webbrowser winforms wpf






