Solved

Datetime format changed

Posted on 2013-06-20
4
295 Views
Last Modified: 2013-06-23
When I login through windows authenication,it take language as US and when i login through SQL authenication it take as British.

And datetime format got changed.
I want make same for all.How to do it?

I checked by DBCC useroptions
0
Comment
  • 2
4 Comments
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 39263527
Is getting the culture language according the client when you login through windows and the server one when you login through the sql. on this post they tell that the best solution is check on the client side the culture and apply what you need (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21110441.html)

also check this
http://stackoverflow.com/questions/2432185/how-can-i-query-the-database-culture-sql-server-2005
0
 
LVL 5

Author Comment

by:VIVEKANANDHAN_PERIASAMY
ID: 39264082
1.How to make common language setting irrespective to the logins?

2.What determine this setting when i create the logins?

3.Through SQL logins it's british and through Window is US. How to make to it common around the logins?
0
 
LVL 13

Accepted Solution

by:
Jesus Rodriguez earned 500 total points
ID: 39266472
0
 
LVL 1

Expert Comment

by:yechan
ID: 39266710
Have you looked into datetimeoffset?  This gives you an "absolute" time as opposed to local/server time.  Please take a look at the following article.  It might prove to be useful.

http://blogs.msdn.com/b/bartd/archive/2009/03/31/the-death-of-datetime.aspx
0

Featured Post

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question