silentthread2k
asked on
How can I specify the size of a stored procedure parameter and also the direction
How can I specify the size of a stored procedure parameter and also the direction.
I'm having problems doing this......
C# sudo code...
command.CommandType = CommandType.StoredProcedur e;
SqlParameter sparam = new SqlParameter("@invar",SqlD bType.Int, intput?
I'm having problems doing this......
C# sudo code...
command.CommandType = CommandType.StoredProcedur
SqlParameter sparam = new SqlParameter("@invar",SqlD
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
To specify size:
SqlParameter sparam = new SqlParameter("@invar", SqlDbType.VarChar, 2)
SqlParameter sparam = new SqlParameter("@invar", SqlDbType.VarChar, 2)
sparam.Size = 2;
SqlParameter sparam = new SqlParameter("@invar",SqlD
sparam.Direction = ParameterDirection.Input;
//ParameterDirection has the following values avaliable: Input, InputOutput, Output and ReturnValue