Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: Implementing Application Object Pin
Mark Churchill10-Sep-08 16:18
Mark Churchill10-Sep-08 16:18 
QuestionOutput video to VGA? Pin
DarthDie10-Sep-08 13:56
DarthDie10-Sep-08 13:56 
AnswerRe: Output video to VGA? Pin
Mark Salsbery10-Sep-08 16:14
Mark Salsbery10-Sep-08 16:14 
Questiondatagridview - quick question Pin
nelsonpaixao10-Sep-08 12:46
nelsonpaixao10-Sep-08 12:46 
AnswerRe: datagridview - quick question Pin
Mbah Dhaim10-Sep-08 13:14
Mbah Dhaim10-Sep-08 13:14 
QuestionHide/Unhide calendar in a gridview c# Pin
DanielHH10-Sep-08 11:29
DanielHH10-Sep-08 11:29 
AnswerRe: Hide/Unhide calendar in a gridview c# Pin
leppie10-Sep-08 21:56
leppie10-Sep-08 21:56 
QuestionSqlCommand : executed SQL statement Pin
dlarkin7710-Sep-08 9:22
dlarkin7710-Sep-08 9:22 
Hi,

Suppose I have a SqlCommand as follows:
SqlCommand cmd = new SqlCommand();
cmd.Connection = <my connection="">;
cmd.CommandText = "Insert Into MyTable (Name, Surname) Values (@Name, @Value)";
cmd.Parameters.AddWithValue("@Name", "David");
cmd.Parameters.AddWithValue("@Surname", "Larkin");
cmd.ExecuteNonQuery();</my>

This will end up with the following SQL being executed : "Insert Into MyTable (Name, Surname) Values ('David', 'Larkin')"

Is there any way to actually see the SQL that gets executed? Something like cmd.ExecutedStatement or similar?

Thanks,

dlarkin77
AnswerRe: SqlCommand : executed SQL statement Pin
Giorgi Dalakishvili10-Sep-08 9:46
mentorGiorgi Dalakishvili10-Sep-08 9:46 
AnswerRe: SqlCommand : executed SQL statement Pin
Pete O'Hanlon10-Sep-08 9:49
mvePete O'Hanlon10-Sep-08 9:49 
AnswerRe: SqlCommand : executed SQL statement Pin
dlarkin7710-Sep-08 9:51
dlarkin7710-Sep-08 9:51 
AnswerRe: SqlCommand : executed SQL statement Pin
Wendelius10-Sep-08 10:37
mentorWendelius10-Sep-08 10:37 
Questiongenerics with nullable value Pin
md_refay10-Sep-08 8:50
md_refay10-Sep-08 8:50 
AnswerRe: generics with nullable value Pin
Pete O'Hanlon10-Sep-08 9:02
mvePete O'Hanlon10-Sep-08 9:02 
GeneralRe: generics with nullable value Pin
User 665810-Sep-08 9:07
User 665810-Sep-08 9:07 
AnswerRe: generics with nullable value Pin
Guffa10-Sep-08 11:13
Guffa10-Sep-08 11:13 
Questionlocalization and Globalization but in other way Pin
rahuladya10-Sep-08 7:55
rahuladya10-Sep-08 7:55 
AnswerRe: localization and Globalization but in other way Pin
User 665810-Sep-08 8:09
User 665810-Sep-08 8:09 
GeneralRe: localization and Globalization but in other way Pin
rahuladya10-Sep-08 8:25
rahuladya10-Sep-08 8:25 
GeneralRe: localization and Globalization but in other way Pin
User 665810-Sep-08 8:30
User 665810-Sep-08 8:30 
GeneralRe: localization and Globalization but in other way Pin
Pete O'Hanlon10-Sep-08 9:05
mvePete O'Hanlon10-Sep-08 9:05 
GeneralRe: localization and Globalization but in other way Pin
rahuladya10-Sep-08 9:37
rahuladya10-Sep-08 9:37 
QuestioncryptoAPI for Assymetric type Pin
Suresh Ramasamy10-Sep-08 7:32
Suresh Ramasamy10-Sep-08 7:32 
AnswerRe: cryptoAPI for Assymetric type Pin
led mike10-Sep-08 11:09
led mike10-Sep-08 11:09 
QuestionRemoting : Server calling another [modified] Pin
MrEyes10-Sep-08 6:52
MrEyes10-Sep-08 6:52 

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.