Solved

Date at the server

Posted on 1997-11-13
5
125 Views
Last Modified: 2010-04-04
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
Comment
Question by:Alexey090397
5 Comments
 
LVL 1

Expert Comment

by:anilms
ID: 1350282
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
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 100 total points
ID: 1350283
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
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1350284
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
 

Author Comment

by:Alexey090397
ID: 1350285
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
 
LVL 3

Expert Comment

by:Pegasus100397
ID: 1350286
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now