select cast(substring([Enquiry id],12,len([Enquiry Id])) as int) from tablename
"Enquiry id:"
select REPLACE('Enquiry Id:2234','Enquiry Id:','')
select CAST(REPLACE('Enquiry Id:2234','Enquiry Id:','') as int)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)