Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
srinivasa reddy...
(25)
Babu Akkandi
(16)
Shashi
(16)
Last 7 Days
Appukuttan
(620)
Babu Akkandi
(453)
Tejinder Singh ...
(275)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
How to find Index of white spaces in SQL Server
Posted Date: 17 May 2008
Resource Type:
Code Snippets
Category:
SQL
Author:
mani kumar.k.m
Member Level:
Gold
Rating:
Points
: 10
To find Index of white spaces in SQL Server in Temp Table
declare @qry varchar(100), @StLoc int
select @StLoc = 1
select @qry = 'Test sql query for the users 1234 5678 90 '
create table #Table(val int)
while @StLoc <= len(@Qry) begin
set @StLoc = charindex(' ',@qry,@StLoc)
insert into #Table values (@StLoc)
set @StLoc = @StLoc+1
end
select * from #Table
drop table #Table
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
How to get the name of the local server in SQL.
Previous Resource:
What is the STUFF Function ?
Return to Discussion Resource Index
Post New Resource
Category:
SQL
Post resources and
earn money
!
Related Resources
List all the tables from the database
Exception handing (TRY/CATCH) in SQL SERVER 2005
How to get month name from a date in SQL Server
SQL Date Time important functions
Remove the duplicate entries using cursor
dotNet Slackers
BizTalk Adaptors
Web Design
Contact Us
Privacy Policy
Terms Of Use