Solved

SmallDateTime storing midnight (12:00 AM) problem

Posted on 2004-03-30
5
296 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 200 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

734 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