Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 MSSQL 2008 R2 Time field

Author  Topic 

EugeneLim11
Posting Yak Master

167 Posts

Posted - 2010-09-30 : 03:12:42
Hi

Please may I check with you what is the datatype in C# that correspond to TIME field in MSSQL 2008?

For instance, in C# the datatype is string and it correspond to varchar, nvarchar or text fields in MSSQL 2008.

Is it DateTime?

Regards,

Eugene

lazycoder
Starting Member

12 Posts

Posted - 2010-09-30 : 04:13:52
It is TimeSpan. For complete list, go here http://msdn.microsoft.com/en-us/library/ms131092.aspx
Go to Top of Page

EugeneLim11
Posting Yak Master

167 Posts

Posted - 2010-09-30 : 04:56:04
Thank you :)

check out my blog at http://www.aquariumlore.blogspot.com
Go to Top of Page
   

- Advertisement -