Solved

Datetime format changed

Posted on 2013-06-20
4
292 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

911 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now