Showing posts with label determine. Show all posts
Showing posts with label determine. Show all posts

Wednesday, March 28, 2012

Read/edit history

I have inherited several SQL 7 database and would like to know is there a
way for me to determine the last time they were accessed or written to by a
user or application?
Any and all contributions are greatly appreciated ...
Regards TJHi,
You have to either,
1. Write triggers to audit the activity
2. Enable the SQL Profiler.
FYI, You can make use of Sysprocesses table for online users, but once he
log off the entry will be removed.
Thanks
Hri
MCDBA
"TJ" <nospam@.nowhere.com> wrote in message
news:u3Hy83i2DHA.4060@.TK2MSFTNGP11.phx.gbl...
quote:

> I have inherited several SQL 7 database and would like to know is there a
> way for me to determine the last time they were accessed or written to by

a
quote:

> user or application?
>
> --
> Any and all contributions are greatly appreciated ...
> Regards TJ
>
>
|||Thx so much!
"Hari" <hari_prasad_k@.hotmail.com> wrote in message
news:#8l9Fhl2DHA.556@.TK2MSFTNGP11.phx.gbl...
quote:

> Hi,
> You have to either,
> 1. Write triggers to audit the activity
> 2. Enable the SQL Profiler.
> FYI, You can make use of Sysprocesses table for online users, but once he
> log off the entry will be removed.
> Thanks
> Hri
> MCDBA
> "TJ" <nospam@.nowhere.com> wrote in message
> news:u3Hy83i2DHA.4060@.TK2MSFTNGP11.phx.gbl...
a[QUOTE]
by[QUOTE]
> a
>

Read/edit history

I have inherited several SQL 7 database and would like to know is there a
way for me to determine the last time they were accessed or written to by a
user or application?
--
Any and all contributions are greatly appreciated ...
Regards TJHi,
You have to either,
1. Write triggers to audit the activity
2. Enable the SQL Profiler.
FYI, You can make use of Sysprocesses table for online users, but once he
log off the entry will be removed.
Thanks
Hri
MCDBA
"TJ" <nospam@.nowhere.com> wrote in message
news:u3Hy83i2DHA.4060@.TK2MSFTNGP11.phx.gbl...
> I have inherited several SQL 7 database and would like to know is there a
> way for me to determine the last time they were accessed or written to by
a
> user or application?
>
> --
> Any and all contributions are greatly appreciated ...
> Regards TJ
>
>|||Thx so much!
"Hari" <hari_prasad_k@.hotmail.com> wrote in message
news:#8l9Fhl2DHA.556@.TK2MSFTNGP11.phx.gbl...
> Hi,
> You have to either,
> 1. Write triggers to audit the activity
> 2. Enable the SQL Profiler.
> FYI, You can make use of Sysprocesses table for online users, but once he
> log off the entry will be removed.
> Thanks
> Hri
> MCDBA
> "TJ" <nospam@.nowhere.com> wrote in message
> news:u3Hy83i2DHA.4060@.TK2MSFTNGP11.phx.gbl...
> > I have inherited several SQL 7 database and would like to know is there
a
> > way for me to determine the last time they were accessed or written to
by
> a
> > user or application?
> >
> >
> > --
> > Any and all contributions are greatly appreciated ...
> > Regards TJ
> >
> >
> >
> >
>sql

Monday, February 20, 2012

Rates of Change...

Hi,

Is there an easy way to determine the rate of change for table? I realize
that I could do periodic select count(*) from XXX, but that would only
determine the size of the table. It would ignore updates.

What I'd really like to do would be able to determine the number of non-read
operations over a table so that I can determine the rate of change for that
table.

Thanks for any help..You could also create INSERT and UPDATE triggers on the table in question
that would INSERT a record into a separate table. Everytime a record is
inserted and updated a new record would be inserted into a history table.
This may create performance issues which Erland's solutions do not.

CJ
"Madison Pruet" <mpruet@.attbi.com> wrote in message
news:wZkLa.42831$R73.7095@.sccrnsc04...
> Hi,
> Is there an easy way to determine the rate of change for table? I realize
> that I could do periodic select count(*) from XXX, but that would only
> determine the size of the table. It would ignore updates.
> What I'd really like to do would be able to determine the number of
non-read
> operations over a table so that I can determine the rate of change for
that
> table.
> Thanks for any help..