Click here to Skip to main content
15,896,111 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Wayne Gaylard8-Sep-11 22:27
professionalWayne Gaylard8-Sep-11 22:27 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Mycroft Holmes8-Sep-11 23:15
professionalMycroft Holmes8-Sep-11 23:15 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
David Skelly9-Sep-11 1:41
David Skelly9-Sep-11 1:41 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Jörgen Andersson9-Sep-11 5:09
professionalJörgen Andersson9-Sep-11 5:09 
GeneralRe: SQL Server Time data type and negative TimeSpan values? Pin
Corporal Agarn9-Sep-11 6:19
professionalCorporal Agarn9-Sep-11 6:19 
JokeRe: SQL Server Time data type and negative TimeSpan values? Pin
Chris Meech9-Sep-11 7:40
Chris Meech9-Sep-11 7:40 
GeneralRe: SQL Server Time data type and negative TimeSpan values? Pin
Jörgen Andersson9-Sep-11 8:29
professionalJörgen Andersson9-Sep-11 8:29 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
jschell9-Sep-11 7:16
jschell9-Sep-11 7:16 
kbalias wrote:
I get the TimeSpan value by subtracting the official working hours and the actual working hours.


Which would seem to me that you would need to store the "official working hours" as well. Given that then there is no point in storing the difference for the second value. Instead you just store the "actual working hours". If you need the difference then the caller subtracts the two.

If you want the difference anyways then store it as seconds. That insures enough precision and is probably a more business friendly value than Ticks.
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Jörgen Andersson9-Sep-11 8:18
professionalJörgen Andersson9-Sep-11 8:18 
GeneralRe: SQL Server Time data type and negative TimeSpan values? Pin
Wendelius9-Sep-11 11:18
mentorWendelius9-Sep-11 11:18 
AnswerRe: SQL Server Time data type and negative TimeSpan values? Pin
Wendelius9-Sep-11 11:17
mentorWendelius9-Sep-11 11:17 
QuestionSQL Paging Pin
benams7-Sep-11 0:14
benams7-Sep-11 0:14 
AnswerRe: SQL Paging Pin
Wendelius7-Sep-11 0:36
mentorWendelius7-Sep-11 0:36 
AnswerRe: SQL Paging Pin
jschell7-Sep-11 8:49
jschell7-Sep-11 8:49 
AnswerRe: SQL Paging Pin
Mycroft Holmes7-Sep-11 12:50
professionalMycroft Holmes7-Sep-11 12:50 
GeneralRe: SQL Paging Pin
David Skelly7-Sep-11 22:24
David Skelly7-Sep-11 22:24 
QuestionSQL server and multi core cpu utilization Pin
Mehdi Gholam6-Sep-11 18:12
Mehdi Gholam6-Sep-11 18:12 
AnswerRe: SQL server and multi core cpu utilization Pin
Wendelius6-Sep-11 19:50
mentorWendelius6-Sep-11 19:50 
GeneralRe: SQL server and multi core cpu utilization Pin
Mehdi Gholam6-Sep-11 21:23
Mehdi Gholam6-Sep-11 21:23 
GeneralRe: SQL server and multi core cpu utilization Pin
Wendelius6-Sep-11 21:57
mentorWendelius6-Sep-11 21:57 
AnswerRe: SQL server and multi core cpu utilization Pin
jschell7-Sep-11 8:50
jschell7-Sep-11 8:50 
GeneralRe: SQL server and multi core cpu utilization Pin
Mehdi Gholam7-Sep-11 9:12
Mehdi Gholam7-Sep-11 9:12 
GeneralRe: SQL server and multi core cpu utilization Pin
jschell8-Sep-11 8:33
jschell8-Sep-11 8:33 
QuestionPicture's in the database? Pin
David C# Hobbyist.6-Sep-11 11:55
professionalDavid C# Hobbyist.6-Sep-11 11:55 
AnswerRe: Picture's in the database? Pin
Mycroft Holmes6-Sep-11 12:39
professionalMycroft Holmes6-Sep-11 12:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.