Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What time is it on the server?

Inter-Process Communication

What time is it on the server?

by  chiph  Posted    (Edited  )
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.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top