Results 1 to 9 of 9

Thread: Time Synchronization alternative

  1. #1

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Time Synchronization alternative

    I know we could use Net Time to synchronize a local computer's time to that of a server but I want some alternatives... Sometimes Net Time fails for some strange reasons, sometimes it takes it too long to return a response (5 seconds or more)... Maybe I could use a winsock? But the downside of this is an app should be running in the server right?

    In SQL Server there is the GetDate() which could be used, is there an Access equivalent of it?
    Last edited by dee-u; Jun 27th, 2005 at 01:49 AM.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Time Synchronization alternative

    have a look at this link to see if it is any help to you

    MS

    pete

  3. #3

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Time Synchronization alternative

    Thanks westconn1 but I'm afraid it wont be of help since some computer's in our company still uses Win98 and WinME.

    I'm looking at the attached project if it might be a good alternative, anybody who want to give feedbacks on it?
    Attached Files Attached Files
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Time Synchronization alternative

    i also found this one

    vbforums

    pete

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Time Synchronization alternative

    I think the time returned would be correct no matter how long it took to return. You can also check the server time to see if it's off. I don't think it would be.

  6. #6

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Time Synchronization alternative

    What I meant was Net Time encounters errors sometimes, not that it returned an incorrect date/time.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  7. #7
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Time Synchronization alternative

    Quote Originally Posted by dee-u
    What I meant was Net Time encounters errors sometimes, not that it returned an incorrect date/time.
    If it's once in a blue moon u could simply do a resume.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  8. #8

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Time Synchronization alternative

    Or is there a way to get the current time of the computer where the Access database is located?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  9. #9

    Thread Starter
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Time Synchronization alternative

    To really make it sure that the synchronized time is used everytime we save in the database we actually ALWAYS do the Net Time thing but wants to make it 100% error-free so the saving process wouldnt be interrupted if in case an error occurs...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width