How can i change the default DateTime Value in SQL Server. when i query using DBCC USEROPTIONS, it showing DataTime value as 'mdy'. now i want change it to 'dmy'. Is this possible
This won't change the SQL Server default but you can accomplish the formatting in your select statement.
SELECT CONVERT(varchar,<your date field>,103) AS <your date field> FROM <your table>
The 103 tells SQL Server to format the output to dd/mm/yyyy. There are a number of formatting options you can use. Look in SQL Server Books Online for the CONVERT function.
Default DateTime value in SQL server
SunHunter
This won't change the SQL Server default but you can accomplish the formatting in your select statement.
SELECT CONVERT(varchar,<your date field>,103) AS <your date field>
FROM <your table>
The 103 tells SQL Server to format the output to dd/mm/yyyy. There are a number of formatting options you can use. Look in SQL Server Books Online for the CONVERT function.