Is there any Way to Excute Sql command other than ExecuteNonQuery() in c#
Well obviously there is also ExecuteReader and ExecuteScaler, but really, what are you trying to accomplish?
In fact, ExecuteNonQuery should NEVER be used to executed a SELECT query.
ExecuteNonQuery should be used for action queries like UPDATE, INSERT, DELETE, etc.
ExecuteReader and ExecuteScaler would be used for a SELECT.
As kmoorman askes, what are you trying to accomplish?
I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here
Got a question on Linux? Visit our Linux sister site.
Modifications Required For VB6 Apps To Work On Vista
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center