Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Function To Retrieve Last Index

By Prasad Bhogadi,

This Function Enables the user to retrieve the Last Index of the character/string in a predetermined string.
Eg
If you want search for the Last Occurance of 'SQL' in
'SQL SERVER2000 USES ANSI SQL' then
SELECT dbo.LastIndexOf('SQL SERVER2000 USES ANSI SQL','SQL')
will return
26.

Tested Only in SQL SERVER2000



Total article views: 2572 | Views in the last 30 days: 3
 
Related Articles
FORUM

SQL Server2000

how i can find total no. of days in month in SQL Server2000? Please see thread http://www.sqlserverc...

FORUM

Find Orphan Logins in SQL Server2000

Comments posted to this topic are about the item [B]Find Orphan Logins in SQL Server2000[/B]

FORUM

Sql Server2000 Service Packs

I just installed SQL Server2000 Developer Edition ("Release A" on the CD). In the box is a CD for S...

FORUM

port forwarding for SQL server2000?

I hope this is the right section for this question? I'm still fairly new to SQL server, I've a pc at...

FORUM

Sql Server2000 is Slow Help !

Hi, In My company using sql server2000 for ERP product. Crystal also using in the same database. A...

Tags
t-sql    
 
Contribute