I'm using ADO .NET and MS SQL Server 2008.
I have a connection object to a server and a command:
SqlConnection conn = /* my connection*/;
string cmd = "some_sql_command";
I want to check if SQL Server can execute cmd
. I don't want to execute cmd
, but I want to know If SQL Server can execute it.
cmd
can be any single SQL statement, it's not a procedure, transaction or multiple commands etc..