Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

pure date and oure time data type in SQL 2008

 
   Database Forums (Home) -> Programming RSS
Next:  .htaccess vs PHP header(location:)  
Author Message
iccsi

External


Since: Oct 07, 2011
Posts: 3



(Msg. 1) Posted: Wed Oct 12, 2011 12:06 pm
Post subject: pure date and oure time data type in SQL 2008
Archived from groups: microsoft>public>sqlserver>programming (more info?)

I heard that SQL server 2008 has pure date or pure time data type.
I tried to create a table, but I do not see date or time in the
dropdown.
I checked online help document it says

CREATE TABLE Table1 ( Column1 date )

If SQL Server 2008 can create pure date column using SQL then it
should appear on the dropdown.


Please let me know if I am wrong,

Your help is great appreciated,


iccsi

 >> Stay informed about: pure date and oure time data type in SQL 2008 
Back to top
Login to vote
Henk van den Berg

External


Since: Oct 07, 2011
Posts: 3



(Msg. 2) Posted: Wed Oct 12, 2011 9:25 pm
Post subject: Re: pure date and oure time data type in SQL 2008 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

iccsi schreef op 12-10-2011 21:06:
> I heard that SQL server 2008 has pure date or pure time data type.
> I tried to create a table, but I do not see date or time in the
> dropdown.
> I checked online help document it says
>
> CREATE TABLE Table1 ( Column1 date )
>
> If SQL Server 2008 can create pure date column using SQL then it
> should appear on the dropdown.
>
>
> Please let me know if I am wrong,
>
> Your help is great appreciated,
>
>
> iccsi
Date appears in the dropdown as the 5th entry from the top in my
installation.
Time(7) appears in the dropdown as the 9th entry from the bottom.

(Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (Intel X86) Mar 29 2009
10:27:29 Copyright (c) 1988-2008 Microsoft Corporation Enterprise
Edition on Windows NT 5.2 <X86> (Build 3790: Service Pack 2) )

Best,
Henk

 >> Stay informed about: pure date and oure time data type in SQL 2008 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Date Only Data Type - I would like to have a field in a table that is a Date only data type instead of the datetime. Could someone offer any advice on this in SQL Server 2005. Thanks

Q: GETDATE(), storing date only in smalldatetime type - Hi! I have a field declared in my table as a smalldatetime. I would like to insert only the date from the GETDATE function. I Am totaly confused on this... I have checked out convert, cast etc but it doesnt make me any the wiser. Regards Martin

Date time conversion - I have this query that runs that gives me the entry time, exit time and hours between them. Runs great. As you can see, the hours come out as 8.21, .88333 etc. So if my time was 8.5, I would like to see 8 hours 30 minutes. Is there a format that..

Date time trouble in JTDS. - Hi all, I have data in the table myTable like following: myTable_oid, myTable_Time 1, 2005-10-21 10:58:34.531 And I want to perform the SQL query in java code using JTDS, like: SELECT myTable_oid, myTable_Time FROM MyTable WHERE....

data type lengths - Ok so nvarchar and varchar are unicode and ansi... well all the books I read say that you specify the length in number of bytes... so nvarchar takes 2 bytes per char... varchar takes 1.... well they claim these are you you represent a 10 char in each ...
   Database Forums (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]