Python truncate at 255 chars when querying MS SqlServer with FreeTDS

梦想的初衷 提交于 2019-12-01 23:33:17

what is the meaning of the ; @ beginning of line?

It starts a comment. man freetds.conf is your friend. :-)

I can not manage to have more than the first 255 characters.

I suspect you are using protocol version 4.2, because you're using a DSN-less connection and did not mention setting the default. Also because TDS 4.2 limits VARCHAR columns to 255 characters.

You can add the protocol version to your connection string, cf. http://www.freetds.org/userguide/odbcconnattr.htm.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!