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

Database

 
AnswerRe: database backup...... Pin
Giorgi Dalakishvili3-May-07 1:10
mentorGiorgi Dalakishvili3-May-07 1:10 
QuestionFinding difficulty in using SqlTransaction Pin
kinnuP3-May-07 0:52
kinnuP3-May-07 0:52 
AnswerRe: Finding difficulty in using SqlTransaction Pin
PIEBALDconsult3-May-07 18:06
mvePIEBALDconsult3-May-07 18:06 
Questionproblem with export Pin
daviperke2-May-07 23:13
daviperke2-May-07 23:13 
QuestionHow to update Records and Give the Current time and date Pin
Vimalsoft(Pty) Ltd2-May-07 22:21
professionalVimalsoft(Pty) Ltd2-May-07 22:21 
AnswerRe: How to update Records and Give the Current time and date Pin
Colin Angus Mackay2-May-07 22:53
Colin Angus Mackay2-May-07 22:53 
GeneralRe: How to update Records and Give the Current time and date Pin
Vimalsoft(Pty) Ltd2-May-07 23:32
professionalVimalsoft(Pty) Ltd2-May-07 23:32 
AnswerRe: How to update Records and Give the Current time and date Pin
Mike Dimmick3-May-07 0:02
Mike Dimmick3-May-07 0:02 
UPDATE table SET column = GETDATE() WHERE condition

GETDATE() returns the current local date and time. If you're trying to perform calculations on the difference between two values, it may be better to use GETUTCDATE() (returns current UTC date and time) as that will not have the discontinuities of the local date and time if the local time zone uses daylight saving. It might also be better if you have users in multiple time zones and you want to display the time in the user's zone - it's easier to compute this from the UTC time.

Having said that, Windows (at least before Windows Vista) only stores the current time zone information. If the time zone data (e.g. daylight savings start date, end date) changes, the displayed local time for historical data, before the last change, could be incorrect if converting from UTC. You'll have to weigh these issues up against each other.

If you're trying to use the date and time for uniqueness, be aware that the system clock ticks in rather large intervals - normally around 15ms - and it's quite possible for multiple events to occur in one timer tick period.

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: How to update Records and Give the Current time and date Pin
Vimalsoft(Pty) Ltd3-May-07 1:12
professionalVimalsoft(Pty) Ltd3-May-07 1:12 
GeneralRe: How to update Records and Give the Current time and date Pin
PIEBALDconsult3-May-07 18:09
mvePIEBALDconsult3-May-07 18:09 
AnswerRe: How to update Records and Give the Current time and date Pin
AshikRahman16-May-07 20:35
AshikRahman16-May-07 20:35 
GeneralRe: How to update Records and Give the Current time and date Pin
Vimalsoft(Pty) Ltd16-May-07 20:40
professionalVimalsoft(Pty) Ltd16-May-07 20:40 
QuestionExport DB from Sql Server 2005 Express Pin
kallileo2-May-07 21:35
kallileo2-May-07 21:35 
AnswerRe: Export DB from Sql Server 2005 Express Pin
Colin Angus Mackay2-May-07 22:54
Colin Angus Mackay2-May-07 22:54 
GeneralRe: Export DB from Sql Server 2005 Express Pin
Jerry Hammond4-May-07 17:06
Jerry Hammond4-May-07 17:06 
GeneralRe: Export DB from Sql Server 2005 Express Pin
Colin Angus Mackay4-May-07 22:28
Colin Angus Mackay4-May-07 22:28 
GeneralRe: Export DB from Sql Server 2005 Express Pin
Jerry Hammond5-May-07 4:20
Jerry Hammond5-May-07 4:20 
AnswerRe: Export DB from Sql Server 2005 Express Pin
Aaron VanWieren3-May-07 3:13
Aaron VanWieren3-May-07 3:13 
GeneralRe: Export DB from Sql Server 2005 Express Pin
Colin Angus Mackay3-May-07 4:13
Colin Angus Mackay3-May-07 4:13 
GeneralRe: Export DB from Sql Server 2005 Express Pin
Aaron VanWieren3-May-07 7:46
Aaron VanWieren3-May-07 7:46 
AnswerRe: Sql Function returning a tree structure Pin
Pete O'Hanlon2-May-07 22:34
mvePete O'Hanlon2-May-07 22:34 
GeneralRe: Sql Function returning a tree structure Pin
Colin Angus Mackay3-May-07 1:52
Colin Angus Mackay3-May-07 1:52 
GeneralRe: Sql Function returning a tree structure Pin
Pete O'Hanlon3-May-07 2:26
mvePete O'Hanlon3-May-07 2:26 
QuestionADOX Pin
myNameIsRon2-May-07 11:04
myNameIsRon2-May-07 11:04 
QuestionSave and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 6:41
MCAST762-May-07 6:41 

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.