SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 charindex on ntext data type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ducletan
Starting Member

Vietnam
25 Posts

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

thank

Edited by - ducletan on 05/25/2012 03:05:09

visakh16
Very Important crosS Applying yaK Herder

India
48076 Posts

Posted - 05/25/2012 :  10:04:08  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000