Solved

Ms Access Database Timestamp

Posted on 2009-07-14
4
516 Views
Last Modified: 2013-11-27
Dear Experts,

I created a client-server based application in MS Access.
On the server side runs a scheduler which releases tasks every minute in the On Timer event.
After the tasks have been released, the scheduler puts the current date and time (Now()) in a table.
On the client side, there is a monitor who checks if the scheduler is still running.
To make sure the scheduler is running, the client application compairs the timestamp on the client side (also now()) with the value entered in the table by the scheduler on the server side.

Issue is that the server and client computers have different timestamps. Sometimes more than 5 minutes.
Now I was wondering if there is a way to get the timestamp of the database. I know that in an Oracle database you can select the timestamp from the DUAL. Is there a way to do this in Ms Access?

If not, I might consider upsizing the application to Ms SQL Server.
But than again the same question ; Is there a way to select the timestamp of Ms SQL Server?

Thanks in advance.

Regards, Johan
0
Comment
Question by:jrameuwissen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 24848368
Hello jrameuwissen,

With respect, Access is *not* a db server, and so there is no possibility of constructing a true client-server
architecture using Access as the db layer.

OTOH, SQL Server, MySQL, Oracle, DB2, etc are all true database servers, and if you want to build a
client-server app, those are the platforms you should be looking at.

Regards,

Patrick
0
 
LVL 1

Author Comment

by:jrameuwissen
ID: 24848435
Patrick,

I just tried to indicate that the database and the application are running on seperate machines.
In case the database was a SQL Server, how could I select the timestamp of the database from within a query?

Thanks, Johan

0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
ID: 24848611
Johan,

That depends on how you are passing in the data.  To use the server's system time, your query (or, even
better, stored procedure) should use a function such as GETDATE.  To use the client's system time, you
would need to gather that information from the client OS in the application layer, and pass it as a ststic
value to the query/sproc.

Regards,

Patrick
0
 
LVL 1

Author Closing Comment

by:jrameuwissen
ID: 31603207
Patrick,

My excuses for my late response.
I migrated the data to SQL server and use a stored procedure now. It works fine.
Thanks for pointing me in the right direction.

Regards, Johan
0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

623 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