#1  
Old 8th June 2004, 11:25 PM
Rocco Neri
 
Posts: n/a
Default Server Date/time

I need to store on a table the server date/time when a client is doing a
operation, could someone address me how I can read from a client the
server date/time ?

Best Regards
Rocco Neri



  #2  
Old 9th June 2004, 12:27 AM
Alessandro Romano
 
Posts: n/a
Default Re: Server Date/time

Ciao Rocco,

I use a query:

SELECT CURRENT_DATE as Data,
CURRENT_TIME as ORA
FROM TTABLE

Alessandro Romano

"Rocco Neri" <rocco.neri@NOSPAMcorael.it> ha scritto nel messaggio
news:40c5af51@wic040d....
> I need to store on a table the server date/time when a client is doing a
> operation, could someone address me how I can read from a client the
> server date/time ?
>
> Best Regards
> Rocco Neri
>
>
>



  #3  
Old 9th June 2004, 01:02 AM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Server Date/time

What exactly are you trying to do? If you store this data into a log-table or
similar you're better off using a monitor/extender on the server side for it.

I will put an article with step-by-step info about writing extenders/monitors
online tomorrow sometime.

--

Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm



"Rocco Neri" <rocco.neri@NOSPAMcorael.it> wrote in message
news:40c5af51@wic040d....
> I need to store on a table the server date/time when a client is doing a
> operation, could someone address me how I can read from a client the
> server date/time ?
>
> Best Regards
> Rocco Neri
>
>
>



  #4  
Old 9th June 2004, 01:41 AM
Brian Evans [NDX]
 
Posts: n/a
Default Re: Server Date/time

Rocco Neri wrote:

> I need to store on a table the server date/time when a client is doing a
> operation, could someone address me how I can read from a client the
> server date/time ?
>
> Best Regards
> Rocco Neri


If your posting data using SQL then use current_timestamp. That
way it's done all server side at the moment the data is posted.

INSERT INTO NDID_STATUS
(USER,NDID_STATUS_DATE,STATUS)
VALUES
(:USER,current_timestamp,:STATUS)

If you just want to query the datetime on the server the
following will work if you have at least one table defined.

SELECT top 1 current_timestamp FROM #TABLES

Brian Evans [NDX]
  #5  
Old 9th June 2004, 08:51 AM
Zoran
 
Posts: n/a
Default Re: Server Date/time

dt: TDateTime;
.....
nxRemoteServerInfoPlugin1.GetServerDateTime(dt);


"Rocco Neri" <rocco.neri@NOSPAMcorael.it> wrote in message
news:40c5af51@wic040d....
> I need to store on a table the server date/time when a client is doing a
> operation, could someone address me how I can read from a client the
> server date/time ?
>
> Best Regards
> Rocco Neri
>
>
>



  #6  
Old 9th June 2004, 11:53 AM
Lauchlan M
 
Posts: n/a
Default Re: Server Date/time

> I need to store on a table the server date/time when a client is doing a
> operation, could someone address me how I can read from a client the
> server date/time ?


In addition to all the ways that have been mentioned, if you move from a C/S
framework (ie just using NexusDB) to an n-tier framework (eg using NexusDB
with RemObjects/Data Abstract or kbmmw) then you can easily get the server
time as a service. You call the GetServerTime service, which is implemented
on the server side something like

begin
result := now;
end;

In fact, it's usually the first example service they walk through.

HTH,

Lauchlan M


  #7  
Old 9th June 2004, 04:25 PM
Rocco Neri
 
Posts: n/a
Default Re: Server Date/time

Thanks to everybody
all your informations are very useful.
This is a great community thanks again.
Anyway I'm waiting Hannes article about extetenders/monitor

regards
Rocco


"Lauchlan M" <LMackinnon@Hotmail.com> ha scritto nel messaggio
news:40c65f33$1@wic040d....
> > I need to store on a table the server date/time when a client is doing a
> > operation, could someone address me how I can read from a client the
> > server date/time ?

>
> In addition to all the ways that have been mentioned, if you move from a

C/S
> framework (ie just using NexusDB) to an n-tier framework (eg using NexusDB
> with RemObjects/Data Abstract or kbmmw) then you can easily get the server
> time as a service. You call the GetServerTime service, which is

implemented
> on the server side something like
>
> begin
> result := now;
> end;
>
> In fact, it's usually the first example service they walk through.
>
> HTH,
>
> Lauchlan M
>
>



  #8  
Old 9th June 2004, 04:35 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Server Date/time

here's a draft - the content should be ok, it's not proof read, not beautified
and might have some wrong CSS assignment:

http://articles.nexusdb.com/articles/?id={E801B710-BF56-4074-A7D0-BAC5D279D6B1}

--

Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm


  #9  
Old 9th June 2004, 07:18 PM
Steve
 
Posts: n/a
Default Re: Server Date/time

This article is really good !

I'm also guessing that there is a wealth of similar articles tucked away
somewhere.

Are these articles accessible via your website ? A list of existing articles
would be incredibly useful to, I suspect, the majority of us.

Keep up the good work

--Steve

"Hannes Danzl[NDD]" <hannes@nexusdb.dbnexus.com> wrote in message
news:40c6a21a$1@wic040d....
> here's a draft - the content should be ok, it's not proof read, not

beautified
> and might have some wrong CSS assignment:
>
>

http://articles.nexusdb.com/articles/?id={E801B710-BF56-4074-A7D0-BAC5D279D6B1}
>
> --
>
> Hannes Danzl [NexusDB Developer]
> Newsgroup archive at http://www.tamaracka.com/search.htm
>
>



  #10  
Old 9th June 2004, 08:23 PM
Hannes Danzl[NDD]
 
Posts: n/a
Default Re: Server Date/time

> This article is really good !

thanks

> I'm also guessing that there is a wealth of similar articles tucked away
> somewhere.


not so far, some are in work, lots planned. They will be integral part of the
NexusDB V2 documentation. We realized that it's almost impossible to cover the
flexibility of NexusDB with a normal manual. So we decided to improve the
manual where we can and add hands-on articles for lots of things.
we will be (sometime in the near to middle future) publish a list of articles
we want to do and ask for people for their top ten (yes it's more than ten ).

> Are these articles accessible via your website ? A list of existing articles
> would be incredibly useful to, I suspect, the majority of us.



That one and the ADO.Net/WebMatrix article are the ones that are currently in
draft version. There will be a full portal for the articles including fulltext
search in the articles very soon now.

--

Hannes Danzl [NexusDB Developer]
Newsgroup archive at http://www.tamaracka.com/search.htm






Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get current date and time Matthew Balraj nexusdb.public.support.adoprovider 4 27th May 2010 09:58 PM
Date/Time math John Turner nexusdb.public.support.sql 3 19th November 2008 10:51 AM
Date/Time Format? Shane Stump nexusdb.public.support.sql 5 13th April 2007 12:50 PM
NexusDB and Date/Time William E. Mahaffey nexusdb.public.discussions 5 14th September 2003 03:49 AM
How to get server date time David Charron nexusdb.public.support 1 10th September 2003 07:31 AM


All times are GMT +11. The time now is 08:51 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.