A
Ashish
its on .net 2.0
I am calling a stored procedure which returns value SCOPE_INDENTITY() ,
when i try to convert the result from object to int, it throws a type
conversion error...
after some hit and trials i figured out that the returned type is
actually decimal ..,
hence
int i = (int) DataStore.ExecuteScalar(.....) , throws an error
while
decimal d = (decimal) DataStore.ExecuteScalar(.....) , works fine ....
is this consistent, is there a ADO.Net conversion map somewhere for SQL
Server ?
regards
-ashish
I am calling a stored procedure which returns value SCOPE_INDENTITY() ,
when i try to convert the result from object to int, it throws a type
conversion error...
after some hit and trials i figured out that the returned type is
actually decimal ..,
hence
int i = (int) DataStore.ExecuteScalar(.....) , throws an error
while
decimal d = (decimal) DataStore.ExecuteScalar(.....) , works fine ....
is this consistent, is there a ADO.Net conversion map somewhere for SQL
Server ?
regards
-ashish