Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How can I check current date format?

Author  Topic 

chetanb3
Yak Posting Veteran

52 Posts

Posted - 2011-01-25 : 01:09:22
I want to check the date format on my server
and database..I think date format is different on server level and daabse level?
How can i check?

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-25 : 03:41:27
dbcc useroptions

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

chetanb3
Yak Posting Veteran

52 Posts

Posted - 2011-01-25 : 07:03:09
I guess this command will give me server level date setting.. Is is possible ot have different date setting at database level? if yes how can I check current date setting?
Go to Top of Page

jimf
Master Smack Fu Yak Hacker

2875 Posts

Posted - 2011-01-25 : 07:23:09
I don't think you can have the database setting separate. However, someone could change the setting locally in a stored procedure using the SET DATEFORMAT command

Jim

Everyday I learn something that somebody else already knew
Go to Top of Page

chetanb3
Yak Posting Veteran

52 Posts

Posted - 2011-01-25 : 07:51:13
In one of the artical on net i rad that the date setting may vary from user to user..
It means there can be different date format for user A and B

http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/setting-a-standard-dateformat-for-sql-se


Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2011-01-27 : 04:41:21
The current date format is for a session only. As soon as the session is closed it is reset to default setting

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -