views:

53

answers:

4

I am working on an Access adp that has its data stored in sql-server. I have a sql statement that inserts the date part of a dateTime object into a datetime field of a table.

INSERT INTO...DateValue(myDateTimeVariable) 

What is the time defaulted to?
(I am hoping that it defaults to 12:00 AM)

+1  A: 

It defaults to 12:00 AM.

cleek
+4  A: 

Yes, it defaults to 12:00 AM.

As you could have seen with a simple test.

Andomar
+1  A: 
select * from [table where you inserted to] 
where key = [key you used to inserted to]
Hassan Syed
Can you explain what issue in the original question your pseudo-SQL is designed to address?
David-W-Fenton
To quote Andomar "As you could have seen with a simple test."
Hassan Syed
Sorry, but I still don't get how your pseudo-SQL reveals that. And it's not technically an answer to the question.
David-W-Fenton
Just downvote me and get it over with.
Hassan Syed
I'd rather not downvote a useful answer. At this point I can't see it as useful, so I wouldn't downvote it just because I don't get it. I only downvote when I know the answer is wrong or misleading. If I don't know for sure, I'll leave it alone.
David-W-Fenton
+1  A: 

You are correct. 12:00 AM

Doug Stalter