Home All Groups Group Topic Archive Search About
Author
17 Aug 2006 7:35 PM
Vanessa
everyone,
Is there is a INSTR built-in function at triggers? I tried to compare if a
variable contains "FED".  I tried

If INSTR (@myvar, 'FED') > 0

but it said 'instr' is not a recognize functions.  Please help!

Author
17 Aug 2006 7:37 PM
Hari Prasad
Hi,

See CHARINDEX and PATINDEX in books online. INSTR is the similar function
available in Oracle.

Thanks
Hari
SQL Server MVP

Show quote
"Vanessa" wrote:

> everyone,
> Is there is a INSTR built-in function at triggers? I tried to compare if a
> variable contains "FED".  I tried
>
> If INSTR (@myvar, 'FED') > 0
>
> but it said 'instr' is not a recognize functions.  Please help!
Author
17 Aug 2006 9:50 PM
Vanessa
Thanks! It works!

Show quote
"Hari Prasad" wrote:

> Hi,
>
> See CHARINDEX and PATINDEX in books online. INSTR is the similar function
> available in Oracle.
>
> Thanks
> Hari
> SQL Server MVP
>
> "Vanessa" wrote:
>
> > everyone,
> > Is there is a INSTR built-in function at triggers? I tried to compare if a
> > variable contains "FED".  I tried
> >
> > If INSTR (@myvar, 'FED') > 0
> >
> > but it said 'instr' is not a recognize functions.  Please help!

AddThis Social Bookmark Button