Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you ever get this error message trying to build a SqlMetaData object:
- The dbType NVarChar is invalid for this constructor.
- The dbType VarChar is invalid for this constructor.
- and you have something that looks like:
- new SqlMetaData("SomeColumnName", SqlDbType.NVarChar)
- For data type `int` this is ok, but NVarChar and VarChar require an extra parameter
- new SqlMetaData("SomeColumnName", SqlDbType.NVarChar, 50)
- w00t.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement