Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 7th, 2006, 01:58 AM
Registered User
 
Join Date: Jun 2006
Location: bangalore, karnataka, India.
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.

Reply With Quote
  #2 (permalink)  
Old June 7th, 2006, 01:50 PM
Authorized User
 
Join Date: Mar 2006
Location: , , .
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


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.