阅读背景:

从SqlDataReader读取字符串时内存不足

来源:互联网 

I'm running into the strangest thing that I can't figure out. I have a SQL table with a bunch of reports stored in an ntext field. When I copied and pasted the value of one of them into notepad and saved it (used Visual Studio to grab the value from a smaller report in a differente row), the raw txt file was about 5Mb. When I try to get this same data using SqlDataReader and convert it to a string, I get an out of memory exception. Here is how I am trying to do it:I'm running into the strangest thing that I can




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: