Unable to load huge data onto Field in Sql Server

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Nagac
Premium Member
Premium Member
Posts: 127
Joined: Tue Mar 29, 2011 11:39 am
Location: India

Unable to load huge data onto Field in Sql Server

Post by Nagac »

Hi,

I am trying to load flat file on to Sql Server table. There is one field which has huge data its almost 2000000 bytes. I am extracting this using "LongNVarchar" data type in Datastage and loading into "ntext" datatype column in Sql Server. I am getting below error when i execute
ODBC_Connector_22,0: ODBC function "SQLPutData()" reported: SQLSTATE = 22001: Native Error Code = 0: Msg = [Microsoft][ODBC SQL Server Driver]String data, right truncation
ODBC function "SQLPutData()" reported: SQLSTATE = HY000: Native Error Code = 0: Msg = [Microsoft][ODBC SQL Server Driver]Warning: Partial insert/update. The insert/update of a text or image column(s) did not succeed. (CC_OdbcLobSupport::writeLobData, file CC_OdbcLobSupport.cpp, line 167)
ODBC function "SQLEndTran(SQL_ROLLBACK)" reported: SQLSTATE = 42000: Native Error Code = 4,022: Msg = [Microsoft][ODBC SQL Server Driver][SQL Server]Bulk load data was expected but not sent. The batch will be terminated.
ODBC function "SQLEndTran(SQL_ROLLBACK)" reported: SQLSTATE = 01000: Native Error Code = 3,621: Msg = [Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated. (CC_OdbcConnection::rollback, file CC_OdbcConnection.cpp, line 1,237)
As far as i know ntext can hold upto 1GB of data.

Can someone advise on this please
Post Reply