| | |
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
| Thread Tools | Search this Thread |
Tag cloud for c#, sql, uploadatextfile
.net 2008 access ajax array asp asp.net automation c# c++ chat check client combobox connect connection count cursor data database datetime dbsize developer development dialog drawing dropdown editor enabled excel expression file form game gdi+ httpwebrequest index instance java javascript jsp linux list listbox login math messenger microsoft mono ms msdn mysql news number office operator oracle password photoshop php picturebox pointer post programming qt query read redirect remote remoting report resource resourcefile richtextbox robot saving security server software sql sql-server sqlserver string stringformatting tables text textbox timer treeview update upload uploadatextfile vb.net video view vista webbrowser winforms wpf xml






