in reply to Re^2: OT?>> DBD::ODBC::st execute failed: NULL textptr passed to UpdateText function-- why??
in thread OT?>> DBD::ODBC::st execute failed: NULL textptr passed to UpdateText function-- why??
Perhaps ODBC statements use UPDATETEXT rather than a conventional update statement. I realise it's late in the day to be suggesting this, but do you have to use ODBC rather than OLEDB?CREATE TABLE [test_text] ( [id] [int] IDENTITY (1, 1) NOT NULL , [vc] [varchar] (50) COLLATE Latin1_General_CI_AS NULL , [txt] [text] COLLATE Latin1_General_CI_AS NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO insert test_text (vc) select 'hello, number 1' go insert test_text (vc) select 'hello, number 2' go update test_text set txt = '12325rfegsfdgervsdfgvsdfgvfdsgv' where id = 1 go DECLARE @ptrval binary(16) SELECT @ptrval = TEXTPTR(tt.txt) FROM test_text tt WHERE tt.id = 1 UPDATETEXT test_text.txt @ptrval 16 1 'b' GO DECLARE @ptrval binary(16) SELECT @ptrval = TEXTPTR(tt.txt) FROM test_text tt WHERE tt.id = 2 UPDATETEXT test_text.txt @ptrval 16 1 'b' GO
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: OT?>> DBD::ODBC::st execute failed: NULL textptr passed to UpdateText function-- why??
by JupiterCrash (Monk) on Jun 06, 2005 at 20:38 UTC |