Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL server - switch to local time (do not use UTC)

Posted on 2010-08-18
1
Medium Priority
?
539 Views
Last Modified: 2012-05-10
I am developing a web project that uses ASP.NET, C#.
We use membership feature for user maintenance.
membership tables seem to store all UTC datetime.
Is there a switch or a property somewhere that will make SQL server to use local server time.
0
Comment
Question by:vu3lmg
1 Comment
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 2000 total points
ID: 33466417
SQL server keeps track of both local and UTC time.  It is up to the data consumer (the application) to interpret UTC as local time.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Introduction: When running hybrid database environments, you often need to query some data from a remote db of any type, while being connected to your MS SQL Server database. Problems start when you try to combine that with some "user input" pass…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

927 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