Comments (2)
From SQLBindParameter:
If the SQL data type passed in is a character type, ColumnSize is the size in characters (not bytes). If the length of the data string in bytes is greater than 8000, ColumnSize should be set to SQL_SS_LENGTH_UNLIMITED, indicating that there is no limit to the size of the SQL type.
For instance, if the SQL data type is SQL_WVARCHAR, ColumnSize should not be greater than 4000. If the actual data length is greater than 4000, then ColumnSize should be set to SQL_SS_LENGTH_UNLIMITED so that nvarchar(max) will be used by driver.
The SQL_SS_LENGTH_UNLIMITED
is not standard ODBC. If you want this feature, add the SQLServer-specific session feature like eg. multiActiveResultset
:
poco/Data/ODBC/src/SessionImpl.cpp
Lines 134 to 138 in e868ecb
and send pull request.
from poco.
See also DataFormat:
SQL Server Native Client uses SQL_SS_LENGTH_UNLIMITED to denote that the size of a column is greater than 8,000 bytes for large object (LOB) types. Beginning with SQL Server 2008, the same value is used for CLR UDTs when their size is greater than 8,000 bytes.
The SQL Server Native Client (often abbreviated SNAC) has been removed from SQL Server 2022 (16.x) and SQL Server Management Studio 19 (SSMS). The SQL Server Native Client (SQLNCLI or SQLNCLI11) and the legacy Microsoft OLE DB Provider for SQL Server (SQLOLEDB) are not recommended for new application development.
from poco.
Related Issues (20)
- github check job on macOS: testEncryptDecryptGCM occasionally fails
- 0 (or NULL) for null pointer shall be replaced with nullptr HOT 2
- Use clang-tidy in project HOT 5
- is ExpireCache thread safe?
- Reorganise source code of external libraries (pre-requisite for #4354) HOT 1
- Contributing our Fast Infoset library
- Documentation: API Thread Safety
- Binary JSON Formats Support in JSON Library
- HTTPSClientSessionTest in NetSSL_Win failing in 1.12.5p2-release
- `Poco::Data::Statement`: unified '?' placeholder support
- `Session::open()` has no timeout parameter
- enable `SQLite` `FTS5` (full text search)
- fix Oracle failing ODBC tests
- Can we silence NoCertificateException in NetSSL_Win Net::Context::certificate when mustFindCertificate is false? HOT 2
- PollSet wrong clear behavior HOT 1
- UUID parser silently ignores too long strings HOT 5
- Add experimental features
- [Data] Unconditionally includes of SQLParser.h HOT 9
- Async socket servers HOT 3
- Add `.md` extension to CHANGELOG HOT 1
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 poco.