Click here to Skip to main content
15,909,898 members
Home / Discussions / Database
   

Database

 
QuestionHelp with CONVERT Pin
svanwass3-Aug-08 15:53
svanwass3-Aug-08 15:53 
AnswerRe: Help with CONVERT Pin
SimulationofSai4-Aug-08 2:36
SimulationofSai4-Aug-08 2:36 
GeneralRe: Help with CONVERT Pin
svanwass4-Aug-08 13:23
svanwass4-Aug-08 13:23 
QuestionDisplaying <binary data> Pin
svanwass3-Aug-08 13:50
svanwass3-Aug-08 13:50 
AnswerRe: Displaying <binary data> Pin
Colin Angus Mackay3-Aug-08 13:57
Colin Angus Mackay3-Aug-08 13:57 
GeneralRe: Displaying <binary data> Pin
svanwass3-Aug-08 14:20
svanwass3-Aug-08 14:20 
QuestionSet timezone for Database on remote server Pin
AlexeiXX33-Aug-08 9:33
AlexeiXX33-Aug-08 9:33 
AnswerRe: Set timezone for Database on remote server Pin
Mycroft Holmes3-Aug-08 16:00
professionalMycroft Holmes3-Aug-08 16:00 
SELECT DATEADD(hh,-1,GETDATE())
SELECT GETDATE()

This seems too obvious, I think what you are asking for is how to discover the servers timezone and then deal with that! SQL Server (I don't think) does not access the servers culture into, you could create an assembly VB/C# to supply the info. Caveat, you are assuming the servers is set up with the correct timezone information which is reasonable but not 100%

Why not set up a settings table in SQL which will supply the number of hours to add/delete from getdate. This will give you complete control of the calc.
SELECT DATEADD(hh,@HourToAdd,GETDATE()))




Never underestimate the power of human stupidity
RAH

GeneralRe: Set timezone for Database on remote server Pin
AlexeiXX33-Aug-08 16:10
AlexeiXX33-Aug-08 16:10 
GeneralRe: Set timezone for Database on remote server Pin
Mycroft Holmes3-Aug-08 16:41
professionalMycroft Holmes3-Aug-08 16:41 
GeneralRe: Set timezone for Database on remote server Pin
AlexeiXX33-Aug-08 16:49
AlexeiXX33-Aug-08 16:49 
GeneralRe: Set timezone for Database on remote server Pin
Mycroft Holmes3-Aug-08 17:02
professionalMycroft Holmes3-Aug-08 17:02 
GeneralRe: Set timezone for Database on remote server Pin
Ashfield3-Aug-08 20:54
Ashfield3-Aug-08 20:54 
GeneralRe: Set timezone for Database on remote server Pin
AlexeiXX34-Aug-08 5:42
AlexeiXX34-Aug-08 5:42 
GeneralRe: Set timezone for Database on remote server Pin
Ashfield4-Aug-08 9:14
Ashfield4-Aug-08 9:14 
QuestionRetrieving Count from Database Table Pin
Jacob Dixon3-Aug-08 7:36
Jacob Dixon3-Aug-08 7:36 
AnswerRe: Retrieving Count from Database Table Pin
Vimalsoft(Pty) Ltd3-Aug-08 9:01
professionalVimalsoft(Pty) Ltd3-Aug-08 9:01 
AnswerRe: Retrieving Count from Database Table Pin
Blue_Boy3-Aug-08 10:39
Blue_Boy3-Aug-08 10:39 
AnswerRe: Retrieving Count from Database Table Pin
Jacob Dixon3-Aug-08 15:14
Jacob Dixon3-Aug-08 15:14 
AnswerRe: Retrieving Count from Database Table Pin
Mycroft Holmes3-Aug-08 16:13
professionalMycroft Holmes3-Aug-08 16:13 
AnswerRe: Retrieving Count from Database Table Pin
PIEBALDconsult3-Aug-08 17:17
mvePIEBALDconsult3-Aug-08 17:17 
AnswerRe: Retrieving Count from Database Table Pin
Jacob Dixon3-Aug-08 17:20
Jacob Dixon3-Aug-08 17:20 
QuestionUnable to connect to database Pin
mrkeivan2-Aug-08 23:50
mrkeivan2-Aug-08 23:50 
AnswerRe: Unable to connect to database Pin
Blue_Boy2-Aug-08 23:56
Blue_Boy2-Aug-08 23:56 
GeneralRe: Unable to connect to database Pin
mrkeivan3-Aug-08 11:12
mrkeivan3-Aug-08 11:12 

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.