baseballgem
Programmer
I suppose if my entire application resided on the f: drive then when a function such as TIME() was called, it would return the time on the F: drive. However in my particular case the application is running on desktop for speed considerations and for times when lap tops with the local app log in.
Thus, how can a desktop capture the server time() i.e. point to a particular drive and return the time on that drive.
I use VFP7.
Since the servers are SQL, I thought I could use something like SQLEXEC and say 'select time() as stime from <anything> ' into a cursor etc. I though I could read the cursor and voila - that's the time. But if failed. The syntax works in VFP but fails in SQLEXEC. Thus, what's the SQL syntax/statement for time() as a field. Datetime() didn't seem to work.
If there is a simpler way to get server time. I'd be interested. Remember all VFP application executables are launched from a user desktop or laptop connetced to a server. Time() function always seems to return time on the c: drive.
Thus, how can a desktop capture the server time() i.e. point to a particular drive and return the time on that drive.
I use VFP7.
Since the servers are SQL, I thought I could use something like SQLEXEC and say 'select time() as stime from <anything> ' into a cursor etc. I though I could read the cursor and voila - that's the time. But if failed. The syntax works in VFP but fails in SQLEXEC. Thus, what's the SQL syntax/statement for time() as a field. Datetime() didn't seem to work.
If there is a simpler way to get server time. I'd be interested. Remember all VFP application executables are launched from a user desktop or laptop connetced to a server. Time() function always seems to return time on the c: drive.