Comments (8)
It works on Windows with the Microsoft ODBC driver and is part of the SQL
Server unit tests. On Linux you would be using FreeTDS I assume. I believe
that's where our difference lies.
Can you generate an ODBC trace on Linux?
Original comment by mkleehammer
on 29 Jul 2011 at 1:12
- Changed state: Investigating
from pyodbc.
I'm getting the same 4096 limit for text fields via FreeTDS on ubuntu 10.04. I
get the full result in tsql, but it is truncated in pyodbc. I have attacted an
ODBC trace.
Original comment by [email protected]
on 3 Aug 2011 at 7:04
Attachments:
from pyodbc.
I found a way to fix it with free tds in your select statement you
must add the following to it:
SET TEXTSIZE 2147483647
so for instance it would look like: cursor.execute("SET TEXTSIZE
2147483647 select * from blah")
Original comment by [email protected]
on 4 Aug 2011 at 11:47
from pyodbc.
I found a way to fix it with free tds in your select statement you
must add the following to it:
SET TEXTSIZE 2147483647
so for instance it would look like: cursor.execute("SET TEXTSIZE
2147483647 select * from blah")
Original comment by [email protected]
on 4 Aug 2011 at 11:47
from pyodbc.
the FREETDS configuration has a set maximum on the returned size of a blob you
can change this in the conf file but it's easier to do what's stated above
Original comment by [email protected]
on 4 Aug 2011 at 11:48
from pyodbc.
Looks like that worked. Thanks. I also found this stackoverflow explanation:
http://stackoverflow.com/questions/1060035/using-pyodbc-on-ubuntu-to-insert-a-im
age-field-on-sql-server/1073801#1073801
Original comment by [email protected]
on 4 Aug 2011 at 1:49
from pyodbc.
It looks like I am also able to fix it by switching TDSVER to 8.0 like so:
os.environ['TDSVER'] = '8.0'
Original comment by [email protected]
on 4 Aug 2011 at 2:52
from pyodbc.
Original comment by mkleehammer
on 23 Dec 2011 at 8:13
- Changed state: NoFix
from pyodbc.
Related Issues (20)
- Build problem on solaris with Sun compiler HOT 2
- Could not connect to PostgreSQL via ODBC under Windows 7 HOT 4
- VIM R6034 error loading pyodbc HOT 2
- pyodbc-2.1.8.win32-py2.7.exe crashes under UAC with windows 7 HOT 4
- Insert into Nullable DateTimeField failed HOT 2
- Source code has mixed line endings HOT 2
- pyodbc won't import within an embedded python interpreter HOT 12
- BIGINT problem on 32-bit architeture HOT 7
- Error loading pyodbc module: DLL load failed: The specified module could not be found. HOT 2
- Segfault when fetching NVARCHAR(MAX) data over 511 bytes HOT 3
- Wiki documentation is missing! HOT 3
- connecting to sql or sql ce HOT 1
- installation errors as of 2.1.9 update HOT 5
- Can't install win32-py2.6 as of 2.1.9 update as Non-Admin HOT 2
- ppc64 failures inserting and querying values HOT 2
- Installation fails with Python 3.2.1 amd64 HOT 3
- Problem installing pyodbc 2.1.9 on Win 7 64 bit HOT 1
- pyodbc db2 row object not showing colnames as fields HOT 3
- Writing NULL to SQLServer varbinary column via binding fails HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyodbc.