D
Dmitri Khanine
Hi All
Trying to retrieve the value of the Sqlcommand' parameter as integer.
Here is how I declare it:
SqlParameter paramId = command.Parameters.Add("@id", SqlDbType.Int);
paramId.Direction = ParameterDirection.InputOutput;
paramId.Value = id;
......
The only method of the SqlParameter available is ToString() so I have
to retrieve it in the following ugly way:
id = Int64.Parse( "0" + paramId.Value.ToString() );
Anyone knows of a prettier way to do it?
Thanks very much!!!
Trying to retrieve the value of the Sqlcommand' parameter as integer.
Here is how I declare it:
SqlParameter paramId = command.Parameters.Add("@id", SqlDbType.Int);
paramId.Direction = ParameterDirection.InputOutput;
paramId.Value = id;
......
The only method of the SqlParameter available is ToString() so I have
to retrieve it in the following ugly way:
id = Int64.Parse( "0" + paramId.Value.ToString() );
Anyone knows of a prettier way to do it?
Thanks very much!!!