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 2005 Forums
 Transact-SQL (2005)
 How to Get Index of Nvarchar field

Author  Topic 

prasadsql
Starting Member

6 Posts

Posted - 2010-01-12 : 00:56:40
hi,

How to get index of particular number or character
from sql query,what is syntax for it.

eg. my databse field is NvarChar (Parent_Id)
Parent_Id=11200000000

how to get index of 0 in above example
if any one know, reply me soon

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-01-12 : 00:58:23
don't quite understand. Can explain with more details


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-01-12 : 01:01:22
quote:
Originally posted by prasadsql

hi,

How to get index of particular number or character
from sql query,what is syntax for it.

eg. my databse field is NvarChar (Parent_Id)
Parent_Id=11200000000

how to get index of 0 in above example
if any one know, reply me soon


duplicate

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=138190

use charindex as suggested
Go to Top of Page
   

- Advertisement -