Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 7th, 2006, 01:58 AM
Registered User
 
Join Date: Jun 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Database storing entries in GMT Time

Hi,

I am storing the events from a couple of servers in the SQL Database and the SQL Database stores the data in the GMT Time. I have checked the servers and all the servers are in the local time(+5:30). When I use the SQL Query to check the time, the entries are being stored in the GMT Time rather than the local time which is creating a lot of problems for me. For some strange reasons, some of the entries show the right local time as well. Kindly advice how to resolve this problem.

Thanks a lot in advance.

 
Old June 7th, 2006, 01:50 PM
Authorized User
 
Join Date: Mar 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi !
Tell us which sql function you use -
(1) getutcdate() or
(2) getdate()

If you are using getutcdate() then, that's not the problem. This is meant to return 'Universal Time Coordinate or GMT'.
But, getdate() definitely returns local date time. If it is not so, tell us about the query you use.

- Som Dutt







Similar Threads
Thread Thread Starter Forum Replies Last Post
GMT(Time Zone) Help Mukesh Dubey ASP.NET 2.0 Professional 1 May 7th, 2008 09:18 PM
Script to print out database entries... Teessider_2000 Beginning PHP 0 June 29th, 2007 02:58 PM
how to dispaly GMT time in my web site al-hijjawi ASP.NET 1.0 and 1.1 Basics 3 August 23rd, 2006 07:54 AM
To get the gmt time using Crystal reports pallavi BOOK: Professional Crystal Reports for VS.NET 0 August 24th, 2004 06:10 AM
Forms and Database Entries hcweb Classic ASP Basics 3 June 4th, 2004 10:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.