Server clock time

Posts   
 
    
hplloyd
User
Posts: 191
Joined: 29-Oct-2004
# Posted on: 07-Apr-2005 14:14:54   

I want to include a field in my database that holds the date and time that a record was last changed.

Is there a way in LLBL that I can retrieve the database clock time (i.e. the time on the SQL server or firebird server) so that I can then populate the field with the server time before saving. I assume it would be a case of creating a new DataAccessAdapter and calling some method?

I could use triggers but I find that messy as some of my business logic resides in the database and some is in the application.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 07-Apr-2005 14:47:10   

No there is no such function at the moment.

Frans Bouma | Lead developer LLBLGen Pro
hlesesne avatar
hlesesne
User
Posts: 47
Joined: 22-Jul-2004
# Posted on: 07-Apr-2005 15:07:32   

Otis wrote:

No there is no such function at the moment.

Couldn't you just expose "select GetDate()" in a stored procedure and access the information that way?

Hal

hplloyd
User
Posts: 191
Joined: 29-Oct-2004
# Posted on: 07-Apr-2005 15:41:25   

OK, I will use a work around