Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Visual Basic (Classic) FAQ

Inter-Process Communication

What time is it on the server? by chiph
Posted: 2 Sep 01

This has come up a couple of times in the forum, and here is what I've come up with as possible solutions (some good, some cheezy)

1) Make a SQL call like: SELECT GETDATE() if the server has a database server on it.

2) Use Active Directory with Windows 2000 Server and Professional to syncronize the clocks on the two computers.

3) Download a time server client from somewhere like the US Naval Observatory (http://www.usno.navy.mil/).

4) Write a 1-byte file to a shared folder and then read that directory to see what time it was created.

And for those who like a challenge:

5) Write a DCOM component on the server that clients can call.

6) Write a COM+/MTS component on the server that clients can call.

7) Write a custom Winsock program to return the correct time in a format the client understands.

8) Write an ISAPI filter for IIS that will return the current time

Chip H.

Back to Visual Basic (Classic) FAQ Index
Back to Visual Basic (Classic) Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close