Difference between LOB and NTEXT

  • Look up BOL (Books online) - you'll find almost all questions answered there...here's a sampling from BOL..

    ntext
    
    Variable-length Unicode data with a maximum length of 230 - 1 (1,073,741,823) characters. Storage size, in bytes, 
    is two times the number of characters entered. The SQL-92 synonym for ntext is national text.
    
    These functions and statements can be used with ntext, text, or image data.
    
    Functions/Statements 
    DATALENGTH  
    READTEXT 
    PATINDEX 
    SET TEXTSIZE 
    SUBSTRING 
    UPDATETEXT 
    TEXTPTR 
    WRITETEXT 
    TEXTVALID 
    
    If an ntext, text, and image data value is no longer than a Unicode, character, or binary string (4,000 characters, 
    8,000 characters, 8,000 bytes respectively), the value can be referenced in SELECT, UPDATE, and INSERT statements 
    much the same way as the smaller data types. For example, an ntext column with a short value can be referenced in a 
    SELECT statement select list the same way an nvarchar column is referenced. Some restrictions that must be observed, 
    such as not being able to directly reference an ntext, text, or image column in a WHERE clause. These columns can be 
    included in a WHERE clause as parameters of a function that returns another data type (such as ISNULL, SUBSTRING or 
    PATINDEX) or in an IS NULL, IS NOT NULL, or LIKE expression.
    







    **ASCII stupid question, get a stupid ANSI !!!**

Viewing post 1 (of 2 total)

You must be logged in to reply to this topic. Login to reply