Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format in SSMS
Message
 
 
À
19/07/2011 20:10:00
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01518555
Message ID:
01518572
Vues:
43
>>SSMS doesn't have any specific format, but if you want to make sure you always pass valid dates, use ISO date format, e.g.
>>' YYYYMMDD'
>>
>>Check CAST & CONVERT topic in BOL
>>
>>and also
>>The ultimate guide to the datetime datatypes
>
>On the client side, we had to change all script to dd/mm/yyyy.
>
>So, we cannot use the same script. If we cannot find what is the local setting for this, I would have to adjust the generic procedure.

Can you post some code you're using to insert data?

If you're passing dates as dates (as parameters) the code should work without problems.

If you're embedding date strings into the code, then you're open to troubles.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform