C#/SQL - What's wrong with SqlDbType.Xml in procedures?
问题 I've asked few people why using xml as a parameter in stored procedure doesn't work and everyone said , that's just the way it is. I can't belive that. command.Parameters.Add("@xmldoc", SqlDbType.Xml); That's where compiler returns error and I can't use NVarChar beacouse it's limiteed to 4k sings. XML would be perfect as it can be 2gigs big. How come other SqlDbTypes work well and this one retruns error ? * Error: Specified argument was out of the range of valid values. Parameter name: