?
Solved

SmallDateTime storing midnight (12:00 AM) problem

Posted on 2004-03-30
5
Medium Priority
?
303 Views
Last Modified: 2012-06-27
I'm storing a series of records in an SQL 2000 database and I'm having trouble with storing midnight, 12:00 AM.  I'm passing in '12:00:00 AM' but for some reason it doesn't show up in the database.
0
Comment
Question by:stretch73
[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
  • 3
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 10713485
>>but for some reason it doesn't show up in the database<<
I think you mean it is not displayed in Enterprise Manager.  It is in the database.
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 800 total points
ID: 10713506
And I should have added, that if you go to Query Analyzer and do a select it will display as (for example)
2004-03-30 00:00:00
0
 

Author Comment

by:stretch73
ID: 10713508
It may be in the database, and not showing up in Enterprise Manager, but it's not coming back when I pull a recordset either.  
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 10714492
>>it's not coming back when I pull a recordset either. <<
In Query Analyzer?  Show your code.
0
 

Author Comment

by:stretch73
ID: 10715117
There was a delay on the postings, you were right it's in there it just doesn't display.  Thanks for the help, this was driving me nuts.

N
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
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.
Suggested Courses

777 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