SELECT SUBSTRING(COLUMNNAME,0,CHARINDEX(' ',COLUMNNAME)) FROM TABLENAME
SELECT LEFT(columnname,PATINDEX('%[^a-z]%', columnname+'a')-1) FROM tablename
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)