PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > Logs / Triggers
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Logs / Triggers

Réponse
 
LinkBack Outils de la discussion
Vieux 16/06/2008, 22h55   #1
doverj via SQLMonster.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Logs / Triggers

Hi, I have a general high level question. Given an extremely large database
what would be the best way to track anytime someone queries (simple select
statement) information in the tables. Any read of the data requires that
what was read be tracked for security purposes. I've thought about a couple
ideas setting triggers that are fired on a select, but I've never done this
and not even sure if it's possible. Not sure what logging capabilities SQL
Server has for select statements, I would think this is problematic given the
size of the database (hundreds of millions of records). And finally,
probably the direction I'm leaning. building a trigger that tracks processes,
specifially what the select statement was.

Any ideas on this or best practice would be much apprecaited?

Thanks,

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...erver/200806/1

  Réponse avec citation
Vieux 16/06/2008, 23h58   #2
Tracy McKibben (http://www.realsqlguy.com)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Logs / Triggers

On Jun 16, 3:55pm, "doverj via SQLMonster.com" <u42617@uwe> wrote:
> Hi, I have a general high level question. Given an extremely large database
> what would be the best way to track anytime someone queries (simple select
> statement) information in the tables. Any read of the data requires that
> what was read be tracked for security purposes. I've thought about a couple
> ideas setting triggers that are fired on a select, but I've never done this
> and not even sure if it's possible. Not sure what logging capabilities SQL
> Server has for select statements, I would think this is problematic given the
> size of the database (hundreds of millions of records). And finally,
> probably the direction I'm leaning. building a trigger that tracks processes,
> specifially what the select statement was.
>
> Any ideas on this or best practice would be much apprecaited?
>
> Thanks,
>
> --
> Message posted via SQLMonster.comhttp://www.sqlmonster.com/Uwe/Forums.aspx/sql-server/200806/1


Triggers aren't going to you, there is no SELECT trigger in SQL
Server. Read up on trace logs (NOT Profiler), these will provide
exactly what you're looking for.
  Réponse avec citation
Vieux 17/06/2008, 00h41   #3
Linchi Shea
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Logs / Triggers

If you can control all the access through stored procedures, you can do your
logging in the stored procedures.

Linchi

"doverj via SQLMonster.com" wrote:

> Hi, I have a general high level question. Given an extremely large database
> what would be the best way to track anytime someone queries (simple select
> statement) information in the tables. Any read of the data requires that
> what was read be tracked for security purposes. I've thought about a couple
> ideas setting triggers that are fired on a select, but I've never done this
> and not even sure if it's possible. Not sure what logging capabilities SQL
> Server has for select statements, I would think this is problematic given the
> size of the database (hundreds of millions of records). And finally,
> probably the direction I'm leaning. building a trigger that tracks processes,
> specifially what the select statement was.
>
> Any ideas on this or best practice would be much apprecaited?
>
> Thanks,
>
> --
> Message posted via SQLMonster.com
> http://www.sqlmonster.com/Uwe/Forums...erver/200806/1
>
>

  Réponse avec citation
Vieux 17/06/2008, 02h24   #4
doverj via SQLMonster.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Logs / Triggers

Thank you both, unfortunately there will be certain users who will have the
ability to query directly off the tables without going through a stored
procedure so we will have to also monitor everything they can see.

Sounds like from this thread and other postings / information I've seen
tracing is the best way to go.

Thanks again.

Linchi Shea wrote:
>If you can control all the access through stored procedures, you can do your
>logging in the stored procedures.
>
>Linchi
>
>> Hi, I have a general high level question. Given an extremely large database
>> what would be the best way to track anytime someone queries (simple select

>[quoted text clipped - 10 lines]
>>
>> Thanks,


--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...erver/200806/1

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h19.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10243 seconds with 12 queries