Solved

SmallDateTime storing midnight (12:00 AM) problem

Posted on 2004-03-30
5
294 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

820 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