Solved

Find the space character in a string

Posted on 2009-07-09
1
463 Views
Last Modified: 2012-05-07
How can I find the space character in a string ?
I tried this statement, but I always get 0 regadles of the value of myfield:
Select CHARINDEX(myfield,' ')
From mytable

Thanks,
0
Comment
Question by:marper
1 Comment
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 50 total points
ID: 24818606
Select CHARINDEX(' ', myfield)
From mytable
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now