dbTalk Databases Forums  

Alert in Email !!!

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Alert in Email !!! in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Alert in Email !!! - 11-22-2006 , 07:38 AM






Dear Professional,

I am using one extended stored procedure to send email from SQL Server. Now
the question is how can I email my self from SQL Server if CPU usage greater
than 30% or available memory greater than specific value,

Can any body guide me regarding that?

Thanks



Reply With Quote
  #2  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Alert in Email !!! - 11-22-2006 , 01:52 PM






Check into setting an Alert using Performance Monitor [Administrative
Tools], [Performance].

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
Dear Professional,

I am using one extended stored procedure to send email from SQL Server.
Now the question is how can I email my self from SQL Server if CPU usage
greater than 30% or available memory greater than specific value,

Can any body guide me regarding that?

Thanks





Reply With Quote
  #3  
Old   
Rogers
 
Posts: n/a

Default Re: Alert in Email !!! - 11-22-2006 , 05:06 PM



First of all thanks for your reply, in the Action Tab there is a option to
execute any batch file, now I want to execute my sql server job through
this, is there any command available which I run through batch file that
will run one of SQL JOB.

Thanks and waiting for your reply.


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote

Quote:
Check into setting an Alert using Performance Monitor [Administrative
Tools], [Performance].

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:u6gK5tjDHHA.3492 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Dear Professional,

I am using one extended stored procedure to send email from SQL Server.
Now the question is how can I email my self from SQL Server if CPU usage
greater than 30% or available memory greater than specific value,

Can any body guide me regarding that?

Thanks







Reply With Quote
  #4  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Alert in Email !!! - 11-22-2006 , 05:23 PM



From a Batch file, you could use osql.exe (or sqlcmd.exe for 2005) and
EXECUTE sp_start_job.

Check in Books Online about osql/sqlcmd, and also about sp_start_job.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
First of all thanks for your reply, in the Action Tab there is a option to
execute any batch file, now I want to execute my sql server job through
this, is there any command available which I run through batch file that
will run one of SQL JOB.

Thanks and waiting for your reply.


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote in message
news:%238mI2%23mDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Check into setting an Alert using Performance Monitor [Administrative
Tools], [Performance].

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:u6gK5tjDHHA.3492 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Dear Professional,

I am using one extended stored procedure to send email from SQL Server.
Now the question is how can I email my self from SQL Server if CPU usage
greater than 30% or available memory greater than specific value,

Can any body guide me regarding that?

Thanks









Reply With Quote
  #5  
Old   
Rogers
 
Posts: n/a

Default Re: Alert in Email !!! - 11-22-2006 , 05:37 PM



Thanks, one last thing if you can help me out. I want to learn locking
machanism in dept in SQL Server but I can see so many definition, any
website you know that can explain the locking by practical query and in
detail?

Thanks


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote

Quote:
From a Batch file, you could use osql.exe (or sqlcmd.exe for 2005) and
EXECUTE sp_start_job.

Check in Books Online about osql/sqlcmd, and also about sp_start_job.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:%238$%23RroDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
First of all thanks for your reply, in the Action Tab there is a option
to execute any batch file, now I want to execute my sql server job
through this, is there any command available which I run through batch
file that will run one of SQL JOB.

Thanks and waiting for your reply.


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote in message
news:%238mI2%23mDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Check into setting an Alert using Performance Monitor [Administrative
Tools], [Performance].

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:u6gK5tjDHHA.3492 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Dear Professional,

I am using one extended stored procedure to send email from SQL Server.
Now the question is how can I email my self from SQL Server if CPU
usage greater than 30% or available memory greater than specific value,

Can any body guide me regarding that?

Thanks











Reply With Quote
  #6  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Alert in Email !!! - 11-22-2006 , 06:11 PM



No one place jumps out immediately other then Books Online. Normally, unless
you are attempting to solve a particular problem, it is wise to leave the
locking behavior to the database engine. It does a decent job 'most' of the
time.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
Thanks, one last thing if you can help me out. I want to learn locking
machanism in dept in SQL Server but I can see so many definition, any
website you know that can explain the locking by practical query and in
detail?

Thanks


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote in message
news:emYZJ1oDHHA.1224 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
From a Batch file, you could use osql.exe (or sqlcmd.exe for 2005) and
EXECUTE sp_start_job.

Check in Books Online about osql/sqlcmd, and also about sp_start_job.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:%238$%23RroDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
First of all thanks for your reply, in the Action Tab there is a option
to execute any batch file, now I want to execute my sql server job
through this, is there any command available which I run through batch
file that will run one of SQL JOB.

Thanks and waiting for your reply.


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote in message
news:%238mI2%23mDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Check into setting an Alert using Performance Monitor [Administrative
Tools], [Performance].

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:u6gK5tjDHHA.3492 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Dear Professional,

I am using one extended stored procedure to send email from SQL
Server. Now the question is how can I email my self from SQL Server if
CPU usage greater than 30% or available memory greater than specific
value,

Can any body guide me regarding that?

Thanks













Reply With Quote
  #7  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: Alert in Email !!! - 11-22-2006 , 06:11 PM



No one place jumps out immediately other then Books Online. Normally, unless
you are attempting to solve a particular problem, it is wise to leave the
locking behavior to the database engine. It does a decent job 'most' of the
time.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
Thanks, one last thing if you can help me out. I want to learn locking
machanism in dept in SQL Server but I can see so many definition, any
website you know that can explain the locking by practical query and in
detail?

Thanks


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote in message
news:emYZJ1oDHHA.1224 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
From a Batch file, you could use osql.exe (or sqlcmd.exe for 2005) and
EXECUTE sp_start_job.

Check in Books Online about osql/sqlcmd, and also about sp_start_job.

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:%238$%23RroDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
First of all thanks for your reply, in the Action Tab there is a option
to execute any batch file, now I want to execute my sql server job
through this, is there any command available which I run through batch
file that will run one of SQL JOB.

Thanks and waiting for your reply.


"Arnie Rowland" <arnie (AT) 1568 (DOT) com> wrote in message
news:%238mI2%23mDHHA.4060 (AT) TK2MSFTNGP03 (DOT) phx.gbl...
Check into setting an Alert using Performance Monitor [Administrative
Tools], [Performance].

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to
the top yourself.
- H. Norman Schwarzkopf


"Rogers" <naissani (AT) hotmail (DOT) com> wrote in message
news:u6gK5tjDHHA.3492 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Dear Professional,

I am using one extended stored procedure to send email from SQL
Server. Now the question is how can I email my self from SQL Server if
CPU usage greater than 30% or available memory greater than specific
value,

Can any body guide me regarding that?

Thanks













Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.