SELECT CONVERT(varchar(20), getdate(), 112) + REPLACE(CONVERT(varchar(20), getdate(), 108), ':', '')
>
>I'm processing some csv files and I want to move the processed file to another location and rename it with a datetime string
>
>yyymmddhhmmss
>
>anyone know the easiest way to return that string from GETDATE()
>
>Thanks
>
>Nick
--sb--