date format - How to set dateformat to mdy in SQL Server 2005? -


i using sql server 2005. when execute set dateformat mdy, date format specific session. when disconnect management studio , connect not take format.

but want set permanently. how can it?

i don't think can. per msdn:

this setting used in interpretation of character strings converted date values. not affect display of date values.

the setting of set dateformat set @ execute or run time , not @ parse time.

the way change permanently alter sys.syslanguages table, , aren't allowed alter system tables that. best bet create custom date parsing function sets dateformat , returns appropriate string value, you'd still need call function every date. set default language "british english" instead of "english"?


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -