Click here to Skip to main content
15,911,132 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
cmd.Parameters.Add("@es", SqlDbType.Money).Value = Convert.ToInt32(TextBox3.Text);


in database i have column with type money
i want to send the value as parameter to stored procedure what should i write insted of toint32 please tell
Posted

1 solution

See this chart please: Mapping CLR Parameter Data[^]. The chart says to map SqlDbType.Money to either Decimal[^] or Nullable<Decimal>.

Regards,

Manfred
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900