Possible Duplicate:
sql to pick apart a string of a persons name and output the initials
In MS-SQL Server, there is a way to get the first letter of each word in a string? For example:
Name:
Michael Joseph Jackson
Query:
SELECT name, [function] as initial FROM Customers
Result:
MJJ
This function will shield your results against multiple sequential spaces in the source string:
Results: