Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime values
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01521321
Message ID:
01521322
Vues:
37
>Hi
>
>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

CAST(REPLACE(REPLACE(REPLACE(convert(CHAR(19),GETDATE(),126 ),'-',''),'T',''),':','') AS CHAR(14))

MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform