Solved

Datetime format changed

Posted on 2013-06-20
4
296 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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

734 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