Nel

Nel

  • NA
  • 716
  • 1.1m

Convert.ToDecimal(command.ExecuteScalar()) returns nothing

Jul 13 2012 7:38 AM
Hi,


Does anybody have an idea why
Convert.ToDecimal(command5.ExecuteScalar())
returns nothing in my C# code?

I have a stored procedure which when tested returns good result, but when I call the procedure from my c# application,
......
.......
decimal saldo=Convert.ToDecimal(command5.ExecuteScalar())

when debugging I can see  that saldo shows no value.
I would appreciate any idea

Answers (7)