How To Cast SQL Money Field Type To C# Data Type
Given you have a field called customer_salary which is of type money in sql server, to cast and use it in your c# programs, you cast it to decimal.
decimal Price = Convert.ToDecimal(reader.GetValue(1));
Comments
Post a Comment