Click here to Skip to main content
15,895,370 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to distinguish between remotely and not remotely created objects Pin
Arjan Einbu20-Jan-05 2:32
Arjan Einbu20-Jan-05 2:32 
GeneralFileInfo Class Pin
Gavin Jeffrey19-Jan-05 21:54
Gavin Jeffrey19-Jan-05 21:54 
GeneralRe: FileInfo Class Pin
Mike Dimmick20-Jan-05 2:31
Mike Dimmick20-Jan-05 2:31 
GeneralOutLook and WebService Pin
WDI19-Jan-05 21:25
WDI19-Jan-05 21:25 
GeneralRe: OutLook and WebService Pin
Esmo200020-Jan-05 5:22
Esmo200020-Jan-05 5:22 
GeneralDrawing Curves in C# !! Pin
ElJerry19-Jan-05 21:06
ElJerry19-Jan-05 21:06 
GeneralRe: Drawing Curves in C# !! Pin
Heath Stewart20-Jan-05 6:48
protectorHeath Stewart20-Jan-05 6:48 
General[C# / SQL] cmd.ExecuteNonQuery() problem Pin
Rafferty Uy19-Jan-05 19:13
Rafferty Uy19-Jan-05 19:13 
Hello there,

With this code:

<br />
...<br />
<br />
cmd = new SqlCommand( "insertData", conn );<br />
cmd.CommandType = CommandType.StoredProcedure;<br />
cmd.Parameters.Add( "@Name", strName );<br />
cmd.Parameters.Add( "@Data", stream.GetBuffer() ); //image datatype<br />
<br />
int nResult = cmd.ExecuteNonQuery();<br />
<br />
return nResult;<br />


What will the value of nResult be if the insert operation is successful? It should be at greater '>' than 0 right?

This is weird because I'm getting a value that is not > 0, but as I checked the LastUpdate field in my database, the value is correct (which I assume it means that the data was inserted successfully). And yet, as I looked up MSDN, it should return a value of > 0.

What could be the problem?

Thanks,
~Rafferty
GeneralRe: [C# / SQL] cmd.ExecuteNonQuery() problem Pin
leppie19-Jan-05 19:56
leppie19-Jan-05 19:56 
Generalpls correct the error in this part of the program Pin
dhol19-Jan-05 17:07
dhol19-Jan-05 17:07 
GeneralRe: pls correct the error in this part of the program Pin
David Levitt (Myrddin)21-Jan-05 13:18
David Levitt (Myrddin)21-Jan-05 13:18 
Questionhow to remove an EventHandler? Pin
zecodela19-Jan-05 15:53
zecodela19-Jan-05 15:53 
AnswerRe: how to remove an EventHandler? Pin
Robert Rohde19-Jan-05 19:32
Robert Rohde19-Jan-05 19:32 
GeneralFew menu extension (WinForms) Pin
TheDen19-Jan-05 15:20
TheDen19-Jan-05 15:20 
GeneralRe: Few menu extension (WinForms) Pin
Dave Kreskowiak20-Jan-05 3:53
mveDave Kreskowiak20-Jan-05 3:53 
GeneralRe: Few menu extension (WinForms) Pin
Charlie Williams20-Jan-05 5:54
Charlie Williams20-Jan-05 5:54 
GeneralExposing data to WMI Pin
ilkovm19-Jan-05 13:41
ilkovm19-Jan-05 13:41 
GeneralRe: Exposing data to WMI Pin
Heath Stewart20-Jan-05 6:25
protectorHeath Stewart20-Jan-05 6:25 
GeneralRe: Exposing data to WMI Pin
ilkovm20-Jan-05 12:44
ilkovm20-Jan-05 12:44 
QuestionHow can i handle my project in windows event Pin
m.rastgar19-Jan-05 11:36
m.rastgar19-Jan-05 11:36 
AnswerRe: How can i handle my project in windows event Pin
Heath Stewart20-Jan-05 6:09
protectorHeath Stewart20-Jan-05 6:09 
GeneralControl development Pin
PaleyX19-Jan-05 11:30
PaleyX19-Jan-05 11:30 
GeneralRe: Control development Pin
Robert Rohde19-Jan-05 19:36
Robert Rohde19-Jan-05 19:36 
GeneralRe: Control development Pin
PaleyX19-Jan-05 22:02
PaleyX19-Jan-05 22:02 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 6:03
protectorHeath Stewart20-Jan-05 6:03 

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.