Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 137
  • Last Modified:

Date at the server

Is it possible to get current data from a Server and put it data as a current to the Client computer ? If it possible then help me, please, how can I do it ?
0
Alexey090397
Asked:
Alexey090397
1 Solution
 
anilmsCommented:
Could you be more specific whether it is a NT server or a Netware server. You can do this with both types of servers.
0
 
Pegasus100397Commented:
Alexey, I'm understanding your question to mean "Can I get the current DATE from the server" correct? If so, here is the SQL Statement to find the current date from Micro$oft SQL Server

Select GetDate()

which will return the date and time of the SQL Server.

Hope it's relevant!

Good luck with your project!
Pegasus
0
 
JimBob091197Commented:
I'm adding a comment so that I can get notified when the answer is accepted or rejected, as I too am interested in whether Alexey means DATE or DATA...

JB
0
 
Alexey090397Author Commented:
Thank you very much. Excuse me for an incorrect statement of a question. But I have another type of question. Could you give me an example of the program, which connect to the server (I know only IP of this server) and take current TIME. In Delphi 3.0 there is an example program - dchat.exe, but then I trying to connect with this program to the server it gives error : "Connection is forcefully rejected ". That I'm doing wrong ?
Thanks.
0
 
Pegasus100397Commented:
Alexey,

I believe you are trying to use the TCP/IP protocol to access the time on the server by connecting to a port? I don't remember what the port number is, but I DO know you can do that with DCHAT (I have done this). Do a Yahoo seach on PORT and TIME and see if you can get RFC document detailing the ports for various services. I know it's not much help but might get you going in the right direction. If needed, I'll do some further research on it.

Good luck with your project
Pegasus
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now