After Migration from Gupta 3.1 to Team Developer 6.0, we have trouble with inserting binary data in Sql Server IMAGE columns. The allowed size is now limited to 400 kb. In the previous version, it was not a problem to insert bigger blobs (>1 MB). [For this reason, i think it cannot be a Unicode issue].
NB: The problem concerns only Team Developer ODBC Driver. Microsoft Native Sql Server ODBC Driver has no trouble to put data bigger then 400 Kb in the DB.
I have tried to play with DBP_LONGBUFFER setting in sql.ini (from nothing to 30000000) and with corresponding dynamic setting in the code. And also with -SalSetBufferSize(nSize, nSize+2, nSize*2, nSize*2+2),
-SalFileOpen (...|OF_UTF16),
-Buffer as Binary or Long String
and all meaningfull combinations of this things.
But all this seems to be not a right approach.
Any suggestions?
Code: Select all
[b]Logfile:[/b]
[code]8/2/12 09:38:57 2> [set database parameter] param = 5112 value = 4531452
8/2/12 09:38:57 2> [SQLFreeStmt] 31914112, 2
8/2/12 09:38:57 2> [SQLFreeStmt] 31914112, 3
8/2/12 09:38:57 2> [compile] UPDATE XXX.DATEI SET XXX.DATEI.DATEN = :1
8/2/12 09:38:57 2> WHERE XXX.DATEI.DATEI_ID = :2
8/2/12 09:38:57 2> [SQLFreeStmt] 31914112, 0
8/2/12 09:38:57 2> [SQLPrepare] 31914112, 142744800, -3
8/2/12 09:38:57 2> [write long]
8/2/12 09:38:57 2> write block [0-5979]
8/2/12 09:38:57 2> 7B5
8/2/12 09:46:15 2> [write long]
8/2/12 09:46:15 2> write block [1509972-1510483]
8/2/12 09:46:15 2> 313
...
8/2/12 09:46:15 2> 313
8/2/12 09:46:15 2> 383
8/2/12 09:46:15 2> 363
[end long]
8/2/12 09:46:15 2> [SQLExecute] 31914112
8/2/12 09:46:15 2> [SQLParamData] 31914112
8/2/12 09:46:15 2> [SQLPutData] 31914112 , 229310496 , 65534
8/2/12 09:46:15 2> [error] = Microsoft SQL Server:182[Microsoft][ODBC SQL S
8/2/12 09:46:15 2> erver Driver][SQL Server]Für READTEXT oder WRITETEXT mÃ
8/2/12 09:46:15 2> ¼ssen Tabellen- und Spaltennamen bereitgestellt werden.[
8/2/12 09:46:15 2> Microsoft][
8/2/12 09:46:15 2> [ERROR] 20035 Microsoft SQL Server:182[Microsoft][ODBC S
8/2/12 09:46:15 2> QL Server Driver][SQL Server]Für READTEXT oder WRITETEX
8/2/12 09:46:15 2> T müssen Tabellen- und Spaltennamen bereitgestellt werd
8/2/12 09:46:15 2> en.[Microsoft]
Thank you in advance