G
Guest
Hi,
SqlCommand cmd = new SqlCommand("my_storedprocedure",con);
cmd.CommandType = CommandType.StoredProcedure;
The error is : type or namespace name 'CommandType' could not be found(are
you missing a using directive or an assembly reference)
I have included the following namespaces
using System.Data.SqlClient;
and the method 'CommandType 'is defined in this class only, but still i
could not get it right.
Suggest some other work arounds, or get it right.
Please advise
SqlCommand cmd = new SqlCommand("my_storedprocedure",con);
cmd.CommandType = CommandType.StoredProcedure;
The error is : type or namespace name 'CommandType' could not be found(are
you missing a using directive or an assembly reference)
I have included the following namespaces
using System.Data.SqlClient;
and the method 'CommandType 'is defined in this class only, but still i
could not get it right.
Suggest some other work arounds, or get it right.
Please advise