I need a client to get the system date and time from the server. I have tried using a stored procedure in the database server like this.
This is written in the stored procedure file on the database server.
This is code from a program on the client machine.
The procedure runs fine, however the value represents the date and time of the client, not the server where the stored procedure resides. Is there any way for a client machine to retrieve the system date/time from the database server ?
Thanks
ToddWW
This is written in the stored procedure file on the database server.
Code:
PROCEDURE getServerTime(dbServerTime)
dbServerTime = DATETIME()
RETURN dbServerTime
END PROC
This is code from a program on the client machine.
Code:
OPEN DATABASE fbdata1.dbc
DO getServerTime WITH timeValue
CLOSE DATABASE
? timeValue
The procedure runs fine, however the value represents the date and time of the client, not the server where the stored procedure resides. Is there any way for a client machine to retrieve the system date/time from the database server ?
Thanks
ToddWW