Re: Managing ntext, text with a long text data



igorsl (igorsl@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx) writes:
> I have a problem to insert(update) a long text (more than 64K) into
> SQL 2000 (datatype - 'text'). It cuts the data and insert only 64K.
> MSDN says: "When the ntext, text, and image data values get larger,
> however, they must be handled on a block-by-block basis. Both
> Transact-
> SQL and the database APIs contain functions that allow applications to
> work with ntext, text, and image data block by block." Could somebody
> give me an example how to do this, please.

I believe this limitation is in the client API rather than in T-SQL
itself. (Altough inserting a 1MB value through a plain INSERT is not
that performant.) Which API are you using?


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

.



Relevant Pages

  • Re: Trigger special tables
    ... To be more precise (my question about text, ntext, image): ... Can be done something within SQL server, ... > INSERTED and DELETED are only availible in the scope of the trigger. ... >> that it's not possible to read text, ntext and image data from these ...
    (microsoft.public.sqlserver.programming)
  • In SQL Server 2005 you can use OPENROWSET with the SINGLE_BLOB ** does not work for me on 2008
    ... Plamen Ratchev wrote: ... In SQL Server 2005 you can use OPENROWSET with the SINGLE_BLOB option, ... INSERT INTO Foobar ... Newbie - Store jpg file in Image Data Type Field ...
    (microsoft.public.sqlserver.server)
  • Re: Character Problems
    ... There is no need to use the Full-Text Indexing Wizard as you can use T-SQL ... reference your database and table and then change the nText column to use ... >> using nvarchar, nchar, or nText; or using the Turkish collation. ... >> Looking for a SQL Server replication book? ...
    (microsoft.public.sqlserver.fulltext)
  • In SQL Server 2005 you can use OPENROWSET with the SINGLE_BLOB..cant get to work in sql2008
    ... Plamen Ratchev wrote: ... In SQL Server 2005 you can use OPENROWSET with the SINGLE_BLOB option, ... INSERT INTO Foobar ... Newbie - Store jpg file in Image Data Type Field ...
    (microsoft.public.sqlserver.server)
  • Re: Underutilized Hardware on a SQL Server
    ... your comment regarding LOB data and MTL allocations actually isn't ... If you need all of the data from an NTEXT ... Schema locks make me think recompiles; ... Microsoft Sql Server Storage Engine, ...
    (microsoft.public.sqlserver.server)