Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 charindex on ntext data type

Author  Topic 

ducletan
Starting Member

25 Posts

Posted - 2012-05-25 : 03:02:32
help me code like charindex()
(CHARINDEX(): when i give a string(ntext) (DATALENGTH(ntext)/2) > 4000 then the charindex returns 0)

thank

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-05-25 : 10:04:08
this is as per definition
see the link
http://msdn.microsoft.com/en-us/library/ms186323.aspx

it clearly suggests


expressionToFind

Is a character expression that contains the sequence to be found. expressionToFind is limited to 8000 characters.


Also see

http://www.bennadel.com/blog/966-SQL-CHARINDEX-Has-Data-Size-Limitations.htm


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -