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
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL