How can I insert over 8000 bytes into SQL using C#? I have a large amount of text I want to store in a varchar, 8000 bytes seems to be the limit, can I increase this?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
which version of SQL are you using? SQL 2008 supports the varchar(MAX) variable which allows a much larger amount of text.
Update: Sorry, that’s Microsoft SQL 2005 and greater … varchar(MAX) can hold 2GB of data …. you didn’t specify if you’re using MS-SQL so I made an assumption.