crdate in sysdatabase is not getting changed

This is a discussion on crdate in sysdatabase is not getting changed within the sybase forums in Other Databases category; 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???...

Go Back   Database Forum > Other Databases > sybase

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-21-2008, 03:33 PM
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, 07:14 PM
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-at-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, 10:44 PM
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-at-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-22-2008, 12:25 AM
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, 07:14 AM
Default Re: crdate in sysdatabase is not getting changed


"Sherlock, Kevin" wrote in message
news:48ade8bc$1-at-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-at-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, 05:52 PM
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, 01:34 PM
Default Re: crdate in sysdatabase is not getting changed


"Carl Kayser" wrote in message
news:48ae9168$1-at-forums-1-dub...
>
> "Sherlock, Kevin" wrote in message
> news:48ade8bc$1-at-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-at-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
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 08:10 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.