[dba-SQLServer] Parse name field

John W. Colby jwcolby at colbyconsulting.com
Fri Oct 8 10:15:09 CDT 2004


Yep, not as trivial as it first appears.

John W. Colby
www.ColbyConsulting.com 

Contribute your unused CPU cycles to a good cause:
http://folding.stanford.edu/

-----Original Message-----
From: dba-sqlserver-bounces at databaseadvisors.com
[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Elam,
Debbie
Sent: Friday, October 08, 2004 11:01 AM
To: 'dba-sqlserver at databaseadvisors.com'
Subject: RE: [dba-SQLServer] Parse name field


The biggest crimp I can see is people with spaces in their last name.  I
have seen the last name de la Rosa.  That is only one example.

Debbie

-----Original Message-----
From: Arthur Fuller [mailto:artful at rogers.com] 
Sent: Friday, October 08, 2004 9:46 AM
To: dba-sqlserver at databaseadvisors.com
Subject: Re: [dba-SQLServer] Parse name field


John W. Colby wrote:

>Does anyone have a SP (or whatever) that can parse a single field with
first
>/ middle / last name into separate fields?
>
>John W. Colby
>www.ColbyConsulting.com
>
>
>_______________________________________________
>dba-SQLServer mailing list
>dba-SQLServer at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
>http://www.databaseadvisors.com
>
>
>  
>
This wouldn't take long to write, but first let's get the requirements 
straight....

Assume the delimiter is a space?
Assume that if there is only one space, then there is no middle name? Assume
that if there are more than two spaces, the person has two middle 
names?

Yay or nay?

A.
_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com
- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject
to the Attorney-Client Privilege, (2) an attorney work product, or (3)
strictly confidential. If you are not the intended recipient of this
message, you may not disclose, print, copy or disseminate this information.
If you have received this in error, please reply and notify the sender
(only) and delete the message. Unauthorized interception of this e-mail is a
violation of federal criminal law. 
This communication does not reflect an intention by the sender or the
sender's client or principal to conduct a transaction or make any agreement
by electronic means.  Nothing contained in this message or in any attachment
shall satisfy the requirements for a writing, and nothing contained herein
shall constitute a contract or electronic signature under the Electronic
Signatures in Global and National Commerce Act, any version of the Uniform
Electronic Transactions Act or any other statute governing electronic
transactions. _______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com







More information about the dba-SQLServer mailing list