Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
T-SQL replacement for 'AT()'
Message
 
 
To
26/11/2012 15:09:04
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01558109
Message ID:
01558110
Views:
70
This message has been marked as the solution to the initial question of the thread.
>Hi All
>
>I'm looking for a T-SQL replacement for the VFP AT() function.
>
>I'm passing the where clause to a stored procedure and need the equivalent of
>
>
>** SrchWord is entered by user
>** Script is a field within the table
>WhrClause = "AT(Lower(SrchWord), Script) > 0"
>
>
>thanks

Take a look at CHARINDEX and PATINDEX functions in BOL.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform