Re: Database access
From: Simon (me_at_me.me)
Date: 07/19/04
- Next message: Simon: "Re: Debugging SQL Server 2000"
- Previous message: jj: "sql 7 to sql 2000 upgrade"
- In reply to: Hari Prasad: "Re: Database access"
- Next in thread: Kalen Delaney: "Re: Database access"
- Reply: Kalen Delaney: "Re: Database access"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Jul 2004 15:22:57 -0400
I believe the sysprocesses table is a virtual table and triggers cannot be
defined on them.
"Hari Prasad" <hari_prasad_k@hotmail.com> wrote in message
news:e0SwCIbbEHA.1248@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> SQL Server will not store this information into any tables. Only way is to
> run the profiler or write you own triger to monitor the
master..sysprocesses
> table
> and log the audit information into a table. Later you could query the
table
> to get the last access date and time for the database.
>
> Thanks
> Hari
> MCDBA
>
> "Sara Beth" <Sara Beth@discussions.microsoft.com> wrote in message
> news:1978F2D2-6D5D-45E9-8DAC-F9C548B5E0A3@microsoft.com...
> > Is there any way to query SQL Server to see the last time a given
database
> was access?
> >
> > thanks guys :)
>
>
- Next message: Simon: "Re: Debugging SQL Server 2000"
- Previous message: jj: "sql 7 to sql 2000 upgrade"
- In reply to: Hari Prasad: "Re: Database access"
- Next in thread: Kalen Delaney: "Re: Database access"
- Reply: Kalen Delaney: "Re: Database access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|