Saturday, September 28, 2013

Why does New SqlParameter create convert error sqlboolean to string when there is no string involved!?

Try adding with this syntax instead:



commandParameters.Add("@DefaultLanguage", SqlDbType.Bit, 1).Value = defaultLanguage;





~~Bonnie Berent DeWitt [C# MVP]


http://geek-goddess-bonnie.blogspot.com


No comments:

Post a Comment