SELECT replace(replace(replace(convert(varchar,getdate(),120),'-',''),':',''),' ','')select convert(varchar,getdate(),112)+replace(convert(varchar,getdate(),108),':','')