Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 17:02
professionalAgent__00713-May-15 17:02 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 18:01
Norris Chappell13-May-15 18:01 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 18:11
professionalAgent__00713-May-15 18:11 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 18:21
Norris Chappell13-May-15 18:21 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 18:35
professionalAgent__00713-May-15 18:35 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 19:10
Norris Chappell13-May-15 19:10 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 19:25
Norris Chappell13-May-15 19:25 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 19:26
professionalAgent__00713-May-15 19:26 
Norris Chappell wrote:
Should I I removed this too? cmd.Parameters.Clear();
Since you are not inside a loop anymore, you may want to remove that line. But that won't matter much as the SqlCommand is going to be disposed anyway (at the end of the using block).

Also, since you are not using the foreach anymore, you may want to remove its "{ }" braces as well, as they are forming an unnecessary code-block at the moment.
You have just been Sharapova'd.

GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 19:53
Norris Chappell13-May-15 19:53 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 20:05
professionalAgent__00713-May-15 20:05 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:11
Norris Chappell13-May-15 20:11 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 20:20
professionalAgent__00713-May-15 20:20 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:24
Norris Chappell13-May-15 20:24 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:30
Norris Chappell13-May-15 20:30 
GeneralRe: Update in C# using SQL Server Database. Pin
Agent__00713-May-15 20:43
professionalAgent__00713-May-15 20:43 
GeneralRe: Update in C# using SQL Server Database. Pin
Norris Chappell13-May-15 20:50
Norris Chappell13-May-15 20:50 
NewsRe: Update in C# using SQL Server Database. Pin
Norris Chappell15-May-15 13:39
Norris Chappell15-May-15 13:39 
Questionhow work class scheduling system by C# Pin
Member 116782469-May-15 19:54
Member 116782469-May-15 19:54 
AnswerRe: how work class scheduling system by C# Pin
OriginalGriff9-May-15 19:58
mveOriginalGriff9-May-15 19:58 
AnswerRe: how work class scheduling system by C# Pin
Afzaal Ahmad Zeeshan10-May-15 10:33
professionalAfzaal Ahmad Zeeshan10-May-15 10:33 
QuestionMethod Overload Troubles? Pin
Marcel Cartier9-May-15 16:42
Marcel Cartier9-May-15 16:42 
AnswerRe: Method Overload Troubles? Pin
OriginalGriff9-May-15 19:57
mveOriginalGriff9-May-15 19:57 
Questionwebbrowser auto tab click Pin
esancakdar8-May-15 2:17
esancakdar8-May-15 2:17 
AnswerRe: webbrowser auto tab click Pin
Dave Kreskowiak8-May-15 3:49
mveDave Kreskowiak8-May-15 3:49 
AnswerRe: webbrowser auto tab click Pin
Dr Gadgit10-May-15 4:29
Dr Gadgit10-May-15 4:29 

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.