Solved

SmallDateTime storing midnight (12:00 AM) problem

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

786 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