dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

crdate in sysdatabase is not getting changed - sybase

This is a discussion on crdate in sysdatabase is not getting changed - sybase ; Hii, We used to load a database on daily basis. But, crdate of that database is not getting changed with current date. What might be the issue and How to resolve it???...


Home > Database Forum > Other Databases > sybase > crdate in sysdatabase is not getting changed

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 08-21-2008, 02:33 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default crdate in sysdatabase is not getting changed

Hii,

We used to load a database on daily basis. But, crdate of
that database is not getting changed with current date.
What might be the issue and How to resolve it???
Reply With Quote
  #2  
Old 08-21-2008, 06:14 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed

master.dbo.sysdatabases.crdate is the datetime when the database was created
with the first "create database" statement. There is a difference between
that and when a database was last loaded from a dump (which requires that
the database be created first). Did you expect that "crdate" be the date of
the last "load database" event? If this was so in a previous version, I
would have argued that was a bug.

wrote in message
news:48adb4f2.10b3.1681692777@sybase.com...
> Hii,
>
> We used to load a database on daily basis. But, crdate of
> that database is not getting changed with current date.
> What might be the issue and How to resolve it???



Reply With Quote
  #3  
Old 08-21-2008, 09:44 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed

Yes, I am expecting that
> "crdate" be the date of the last "load database".


> master.dbo.sysdatabases.crdate is the datetime when the
> database was created with the first "create database"
> statement. There is a difference between that and when a
> database was last loaded from a dump (which requires that
> the database be created first). Did you expect that
> "crdate" be the date of the last "load database" event?
> If this was so in a previous version, I would have argued
> that was a bug.
>
> wrote in message
> news:48adb4f2.10b3.1681692777@sybase.com...
> > Hii,
> >
> > We used to load a database on daily basis. But, crdate
> > of that database is not getting changed with current
> > date. What might be the issue and How to resolve it???

>
>

Reply With Quote
  #4  
Old 08-21-2008, 11:25 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed

On Aug 21, 11:33*pm, Rajasekhar Reddy wrote:
> Hii,
>
> * *We used to load a database on daily basis. But, crdate of
> that database is not getting changed with current date.
> * *What might be the issue and How to resolve it???


Are looking at crdate for tempdb and expecting crdate to be updated
while loading any other database ?. This will not be the case because
tempdb is recreated with every reboot of the server and therefore you
will see crdate updated for tempdb

-HTH
Manish Negandhi
[TeamSybase]
Reply With Quote
  #5  
Old 08-22-2008, 06:14 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed


"Sherlock, Kevin" wrote in message
news:48ade8bc$1@forums-1-dub...
> master.dbo.sysdatabases.crdate is the datetime when the database was
> created with the first "create database" statement. There is a difference
> between that and when a database was last loaded from a dump (which
> requires that the database be created first). Did you expect that
> "crdate" be the date of the last "load database" event? If this was so in
> a previous version, I would have argued that was a bug.
>
> wrote in message
> news:48adb4f2.10b3.1681692777@sybase.com...
>> Hii,
>>
>> We used to load a database on daily basis. But, crdate of
>> that database is not getting changed with current date.
>> What might be the issue and How to resolve it???

>
>

I mentioned that it would be nice to have an additional last_load_date
column for sysdatabases in ISUG ER 2298. Sybase might be open to
considering this specific request (versus create dates on almost every
system table). An alternative is to audit load database commands. Adequate
but certainly not as convenient.


Reply With Quote
  #6  
Old 08-23-2008, 04:52 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed

Not tempdb, any user database....


> On Aug 21, 11:33*pm, Rajasekhar Reddy wrote:
> > Hii,
> >
> > * *We used to load a database on daily basis. But,
> > crdate of that database is not getting changed with
> > current date. * *What might be the issue and How to

> resolve it???
>
> Are looking at crdate for tempdb and expecting crdate to
> be updated while loading any other database ?. This will
> not be the case because tempdb is recreated with every
> reboot of the server and therefore you will see crdate
> updated for tempdb
>
> -HTH
> Manish Negandhi
> [TeamSybase]

Reply With Quote
  #7  
Old 08-24-2008, 12:34 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed


"Carl Kayser" wrote in message
news:48ae9168$1@forums-1-dub...
>
> "Sherlock, Kevin" wrote in message
> news:48ade8bc$1@forums-1-dub...
>> master.dbo.sysdatabases.crdate is the datetime when the database was
>> created with the first "create database" statement. There is a
>> difference between that and when a database was last loaded from a dump
>> (which requires that the database be created first). Did you expect that
>> "crdate" be the date of the last "load database" event? If this was so
>> in a previous version, I would have argued that was a bug.
>>
>> wrote in message
>> news:48adb4f2.10b3.1681692777@sybase.com...
>>> Hii,
>>>
>>> We used to load a database on daily basis. But, crdate of
>>> that database is not getting changed with current date.
>>> What might be the issue and How to resolve it???

>>
>>

> I mentioned that it would be nice to have an additional last_load_date
> column for sysdatabases in ISUG ER 2298. Sybase might be open to
> considering this specific request (versus create dates on almost every
> system table). An alternative is to audit load database commands.
> Adequate but certainly not as convenient.
>

I was about to put in an ISUG ER for this but it has ocurred to me that this
column would not be adequate in itself. It seems to me that both a
last_load_db_date and a last_load_tr_date would really be needed. I'm not
sure that it is worth it.

(Some complications. The last_load_db_date should be the begin date/time of
the load since the load could fail. For the other ... hmmm, one could be
doing a recovery to a point in time. I don't know what would be the best
representation of this column.)


Reply With Quote
  #8  
Old 10-02-2009, 12:06 PM
Database Newbie
 
Join Date: Oct 2009
Posts: 1
batthink is on a distinguished road
Default Re: crdate in sysdatabase is not getting changed

Just had a similar problem.

Using master you can get last load date doing this:

select dumptrdate from sysdatabases where name = 'mydb'

Assuming no dumps have taken place.
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 01:58 AM.