Click here to Skip to main content
16,005,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading from a text file and then storing into the database Pin
mhmo28-May-05 19:14
mhmo28-May-05 19:14 
GeneralRe: Reading from a text file and then storing into the database Pin
Robert Rohde28-May-05 20:31
Robert Rohde28-May-05 20:31 
GeneralRe: Reading from a text file and then storing into the database Pin
Uri Lavi28-May-05 10:04
Uri Lavi28-May-05 10:04 
GeneralRe: Reading from a text file and then storing into the database Pin
mhmo28-May-05 21:07
mhmo28-May-05 21:07 
GeneralRe: Reading from a text file and then storing into the database Pin
Uri Lavi28-May-05 23:09
Uri Lavi28-May-05 23:09 
GeneralURGENT URGENT Pin
falandas28-May-05 2:46
falandas28-May-05 2:46 
GeneralRe: URGENT URGENT Pin
WillemM28-May-05 5:20
WillemM28-May-05 5:20 
GeneralRe: URGENT URGENT Pin
Christian Graus28-May-05 11:52
protectorChristian Graus28-May-05 11:52 
Generalenum overloading Pin
hasansheik28-May-05 2:28
hasansheik28-May-05 2:28 
GeneralRe: enum overloading Pin
Robert Rohde28-May-05 3:17
Robert Rohde28-May-05 3:17 
GeneralRe: enum overloading Pin
S. Senthil Kumar28-May-05 19:03
S. Senthil Kumar28-May-05 19:03 
QuestionSql or Xml ? Pin
MoustafaS28-May-05 2:27
MoustafaS28-May-05 2:27 
AnswerRe: Sql or Xml ? Pin
Robert Rohde28-May-05 3:27
Robert Rohde28-May-05 3:27 
GeneralRe: Sql or Xml ? Pin
MoustafaS28-May-05 3:57
MoustafaS28-May-05 3:57 
GeneralDataGrid DoubleClick Event Pin
Afief28-May-05 2:26
Afief28-May-05 2:26 
GeneralRe: DataGrid DoubleClick Event Pin
hasansheik28-May-05 2:31
hasansheik28-May-05 2:31 
GeneralRe: DataGrid DoubleClick Event Pin
Afief28-May-05 2:58
Afief28-May-05 2:58 
QuestionHow can write sync sensittivity to live video Pin
Member 110343128-May-05 1:05
Member 110343128-May-05 1:05 
GeneralDial Up program Pin
ksanju100028-May-05 0:50
ksanju100028-May-05 0:50 
Generalhelp me about insert Pin
albCode28-May-05 0:35
albCode28-May-05 0:35 
GeneralRe: help me about insert Pin
Christian Graus28-May-05 0:54
protectorChristian Graus28-May-05 0:54 
GeneralRe: help me about insert Pin
cjengler28-May-05 1:44
cjengler28-May-05 1:44 
seferi wrote:
string ins = "INSERT INTO tabela(Column1,Column2,Column3,Columns4)VALUES ("+
"'"+ this.txtColumn1.Text + "'" + ","+
"'" + this.txtColumn2.Text + "'" + "," +
"'" + this.txtColumn3.Text + "'" + "," +
"'" + this.txtColumns4.Text + ")";


Your first problem comes after your this.txtColumns4.Text. You forgot the ending "'".

Like I said, that is your first problem and actually your smallest. Your biggest problem is that you are open for Sql Injection errors. You should really be using paramterized queries to prevent this.
Please see http://www.codeproject.com/useritems/SqlWrapper.asp[this]
Generalwindows programming Pin
nume27-May-05 23:58
nume27-May-05 23:58 
GeneralRe: windows programming Pin
MoustafaS28-May-05 0:20
MoustafaS28-May-05 0:20 
GeneralRe: windows programming Pin
nume28-May-05 0:32
nume28-May-05 0:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.