Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 2464 | Views in the last 30 days: 7
 
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

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones