I have C# page need to get data from SQL server 2005, the data type of column in my DataBase is bit, when I get it from DataBase, I use Int16 as the type of that variable, but I get error "Specified cast is not valid", what data type should I use for my variable in my C# page after get it form DB?
Thanks,
Match data type between asp.net and sql server?
The C# equivalent to bit is smallint.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment