Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data storage and reading problems #33

Closed
mmcgzs opened this issue Jul 13, 2011 · 1 comment
Closed

Data storage and reading problems #33

mmcgzs opened this issue Jul 13, 2011 · 1 comment

Comments

@mmcgzs
Copy link

mmcgzs commented Jul 13, 2011

I use varchar (max) to save a text (UTF-8), the length is 14,000 bytes or so, when read with tiny_tds only read 4096 bytes.
Try to use text or nvarchar (max) or ntext these types, can not read the full content.
Want to know what the problem is caused, how to solve?

Here is test code:
client = TinyTds:: Client.new (: username => 'gim',: password => '123qwe !@#',: host => '192 .168.2.74 ',: database =>' bbs')
r = client.execute ("select * from replies where id = 1078")
r.first ["content"]. size

@metaskills
Copy link
Contributor

Remember, there is a TEXTSIZE setting in SQL Server that limits for memory performance. You should check it out. A default is assigned to all client connections. Flavor to your needs.

http://msdn.microsoft.com/en-us/library/aa259190(v=sql.80).aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants