cmd.ExecuteNonQuery();
How do I get a real SQL? cmd.CommandText get "INSERT INTO table (id,name)
VALUES (@id,@name)",
I hope to have "INSERT INTO table (id,name) VALUES (1,'benson')"
You must know that SQL engine will execute parameterized query in a
different way, it does not expand the parameter to a whole SQL query then
execute it, but the engine will deal with each argument with the type it
defined as.
So parameterized queries do not have a direct method to change into a
query text, because it does not need to.
"benson.wong" <tinybe...@hotmail.com> д����Ϣ
news:EA6DCC3C-3525-4626...@microsoft.com...