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.public.fr.sqlserver > Can we Trigger for abnormal loss of connection to postgres?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Can we Trigger for abnormal loss of connection to postgres?

Réponse
 
LinkBack Outils de la discussion
Vieux 29/08/2008, 16h12   #1
Sonali Bhagat
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Can we Trigger for abnormal loss of connection to postgres?

Hi all,

I want a trigger to get fired when my application's connection to the
database gets disconnected abnormally.

Currently I am able to find out using "sp_who", which servers are connected
to the database and their connection status.
However I need a trigger to be fired on the event when there is abnormal
disconnection.
I plan to monitor the Server Name and its status in the " sp_who "
procedure

Can someone tell me which table does "sp_who" query on?

Is there any other way to execute a stored procedure and perform some steps
when a connection is lost to a database?

Any comments/suggestions would be appreciated.

Thanks..
Sonali


  Réponse avec citation
Vieux 09/09/2008, 00h06   #2
Jacques Vuillermet
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can we Trigger for abnormal loss of connection to postgres?

Hi,

This is a newsgroup about Microsoft SQL Server, not Postgres.

If you're question is about Microsoft SQL Server, what is the version you
use (select @@vesion)?

Regards.
Jacques.

"Sonali Bhagat" <sonali.bhagat@edisphere.com> a écrit dans le message de
news: ewhj0IeCJHA.4724@TK2MSFTNGP05.phx.gbl...
> Hi all,
>
> I want a trigger to get fired when my application's connection to the
> database gets disconnected abnormally.
>
> Currently I am able to find out using "sp_who", which servers are
> connected to the database and their connection status.
> However I need a trigger to be fired on the event when there is abnormal
> disconnection.
> I plan to monitor the Server Name and its status in the " sp_who "
> procedure
>
> Can someone tell me which table does "sp_who" query on?
>
> Is there any other way to execute a stored procedure and perform some
> steps when a connection is lost to a database?
>
> Any comments/suggestions would be appreciated.
>
> Thanks..
> Sonali
>



  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 06h48.


É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,07321 seconds with 10 queries