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 2000 Forums
 SQL Server Development (2000)
 InStr in SQL Server?

Author  Topic 

carioca
Starting Member

6 Posts

Posted - 2005-01-17 : 08:17:40
Hi,

How can I make a query that gets the ID from a table
'contacts' where the name of a contact in that record is part of my
evaluation? So a query that returns a record id from
the table contacts where the name in the db is 'peter'
and my search key is 'peterson'. so in fact this would
be a reversed LIKE. I can't find a InStr function like in
VB.

Thanx!

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-01-17 : 09:37:17
look up charindex or patindex in BOL.

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -