Click here to Skip to main content
15,905,877 members
Home / Discussions / C#
   

C#

 
QuestionNeed help Pin
rksreadero19-Oct-10 16:33
rksreadero19-Oct-10 16:33 
AnswerRe: Need help Pin
JF201519-Oct-10 18:15
JF201519-Oct-10 18:15 
AnswerRe: Need help Pin
Abhinav S19-Oct-10 23:18
Abhinav S19-Oct-10 23:18 
GeneralRe: Need help Pin
Nish Nishant20-Oct-10 4:04
sitebuilderNish Nishant20-Oct-10 4:04 
GeneralRe: Need help Pin
Keith Barrow20-Oct-10 7:58
professionalKeith Barrow20-Oct-10 7:58 
AnswerRe: Need help Pin
Ravi Bhavnani20-Oct-10 4:53
professionalRavi Bhavnani20-Oct-10 4:53 
Question{"Restore failed for Server '\\\\.\\pipe\\3F103E6E-3FD4-47\\tsql\\query'. "} Pin
Mohammad Dayyan19-Oct-10 15:25
Mohammad Dayyan19-Oct-10 15:25 
QuestionExecuteNonQuery problem? [modified] Pin
Emmet_Brown19-Oct-10 8:21
Emmet_Brown19-Oct-10 8:21 
Hello everyone


I've generated an SQL statement in my .cs file as

cmd.Connection = conn //this is working, worked before in the same code
cmd.CommandText = "INSERT INTO <table> VALUES ('value1','value2')";
conn.Open
cmd.ExecuteNonQuery
conn.Close

the problem is:

I'm checking the SQL statement in debug, copying the same query on my MySQL QueryBrowser and executing

the same string works in the querybrowser, but in ExecuteNonQuery() doesn't

what can be the problem?

notes:
1-connection is done, checked, and double checked, a few lines earlier, several SELECT statements are
executed and worked
2-connection string is not changed before this code, it was the same before
3-I'm not changing the code while copying to the Querybrowser, taking the text as it is directly from
debug window and pasting it to the SQL browser tool.

any ideas?


<div class="modified">modified on Tuesday, October 19, 2010 2:39 PM</div>
AnswerRe: ExecuteNonQuery problem? Pin
Luc Pattyn19-Oct-10 8:33
sitebuilderLuc Pattyn19-Oct-10 8:33 
AnswerRe: ExecuteNonQuery problem? Pin
Maciej Los19-Oct-10 8:42
mveMaciej Los19-Oct-10 8:42 
GeneralRe: ExecuteNonQuery problem? Pin
Emmet_Brown19-Oct-10 8:47
Emmet_Brown19-Oct-10 8:47 
AnswerRe: ExecuteNonQuery problem? Pin
Maciej Los19-Oct-10 9:12
mveMaciej Los19-Oct-10 9:12 
AnswerSOLVED Pin
Emmet_Brown19-Oct-10 11:04
Emmet_Brown19-Oct-10 11:04 
AnswerRe: ExecuteNonQuery problem? Pin
Pete O'Hanlon19-Oct-10 22:04
mvePete O'Hanlon19-Oct-10 22:04 
QuestionAxWebBrowser object seems to be causing memory leak Pin
HalliHaida19-Oct-10 1:05
HalliHaida19-Oct-10 1:05 
AnswerRe: AxWebBrowser object seems to be causing memory leak PinPopular
Luc Pattyn19-Oct-10 1:39
sitebuilderLuc Pattyn19-Oct-10 1:39 
AnswerRe: AxWebBrowser object seems to be causing memory leak Pin
Pete O'Hanlon19-Oct-10 1:48
mvePete O'Hanlon19-Oct-10 1:48 
GeneralRe: AxWebBrowser object seems to be causing memory leak Pin
HalliHaida25-Oct-10 3:15
HalliHaida25-Oct-10 3:15 
QuestionMessage Removed Pin
18-Oct-10 22:11
Varun Sareen18-Oct-10 22:11 
AnswerRe: KeyValuePair List problem? Pin
OriginalGriff18-Oct-10 22:37
mveOriginalGriff18-Oct-10 22:37 
AnswerRe: KeyValuePair List problem? Pin
johannesnestler19-Oct-10 3:27
johannesnestler19-Oct-10 3:27 
QuestionForm submit to server [modified] Pin
Ajay Kale New18-Oct-10 20:45
Ajay Kale New18-Oct-10 20:45 
AnswerRe: Form submit to server Pin
OriginalGriff18-Oct-10 22:38
mveOriginalGriff18-Oct-10 22:38 
Questionhow to get value from form 1 to form 2 Pin
ash_ng18-Oct-10 17:29
ash_ng18-Oct-10 17:29 
AnswerRe: how to get value from form 1 to form 2 Pin
JF201518-Oct-10 18:07
JF201518-Oct-10 18:07 

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.