Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
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 
I create one appl. in C# and now i wanna insert string-text from textboxes to datagrid but it shows me one error. here is the code which i did write: The code is for InsertButton.I am not using storedProcedure.




string ins = "INSERT INTO tabela(Column1,Column2,Column3,Columns4)VALUES ("+
"'"+ this.txtColumn1.Text + "'" + ","+
"'" + this.txtColumn2.Text + "'" + "," +
"'" + this.txtColumn3.Text + "'" + "," +
"'" + this.txtColumns4.Text + ")";

SqlConnection stringuu = new SqlConnection( "workstation id=mypc;packet size=4096;integrated security=SSPI;data source=mydatabase;persist security info=False;initial catalog=");

SqlDataAdapter daa = new SqlDataAdapter();

DataSet dss = new DataSet();

daa.Fill(dss,"table");
SqlCommand inscomm= new SqlCommand(shtoje,stringuu);

stringuu.Open();
inscomm.ExecuteNonQuery();
stringuu.Close();




can somebody tell me where is mistake???


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 
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 
GeneralRe: windows programming Pin
MoustafaS28-May-05 0:34
MoustafaS28-May-05 0:34 
GeneralRe: windows programming Pin
nume28-May-05 1:20
nume28-May-05 1:20 

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.