Re: SQL 2000 view current job status best practice



The TargetServer role doesn't let you see the current status of a job you
don't own however. There's no way to do that in EM unless you're a sysadmin.
It will however allow them to view the job history and job Properties but
not midify them.

--
HTH,
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com


"Sue Hoegemeier" <Sue_H@xxxxxxxxxxxxx> wrote in message
news:odoqi2tsvvhficdgt533agtognr9e6cnf1@xxxxxxxxxx
Your asking for something that isn't doable in SQL Server
2000. The functionality in Enterprise Manager is built-in
and you can't really change that. The only other unsupported
way to do this would be to add the users to the TargetServer
role in msdb. Keep in mind that the role is undocumented
and using this is unsupported.

-Sue

On Wed, 11 Oct 2006 14:03:02 -0700, Richard Cote
<RichardCote@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Sorry, I should have clarified this at the beginning. I am looking for a
solution to make the job status viewable from within SQL Enterprise
Manager.


"Warren Brunk" wrote:

There are a thousand different ways to implement this but here are the
basics.

I would create a stored procedure with something like this...
Create Procedure usp_runningjobs_s
as
begin
SELECT
sysp.cpu ,
sysp.spid,
sysp.status,
sysp.hostname,
sysp.program_name,
sysp.cmd,
sysp.cpu,
sysp.physical_io,
convert(sysname, rtrim(sysp.loginame)) as loginname,
sysp.spid as 'spid_sort',
substring( convert(varchar,sysp.last_batch,111) ,6 ,5 ) + ' ' +
substring( convert(varchar,sysp.last_batch,113) ,13 ,8 ) as
'last_batch_char'
from master.dbo.sysprocesses sysp (nolock)
inner join master.dbo.sysdatabases sysd (nolock)
on sysp.dbid = sysd.dbid
end


Then what you could do is grant permissions to execute the procedure to
the
users that you need. Or, even better is create a little .net webpage
that
calls this procedure and returns the results to a gridview.

What do you think?



--
/*
Warren Brunk - MCITP - SQL 2005, MCDBA
www.techintsolutions.com
*/


"Richard Cote" <RichardCote@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F4DCBDD9-7A0F-4F7E-8F21-868AEF7BCCFF@xxxxxxxxxxxxxxxx
We have application support personnel who need to view the current
status
of
jobs running on production SQL 2000 (SP4) Servers. The application
support
group has very limited access to these production servers - such that
they
do
not have enough permissions to execute these jobs. Therefore,
changing
the
job owner is not a viable option. What is the best way to:

- allow the support personnel to view the status of jobs
- not increasing the account permissions within the databases







.



Relevant Pages

  • Replication and permisions
    ... I have some troubles with replication and permissions. ... I have two SQL ... Servers on different phisical locations. ...
    (microsoft.public.sqlserver.replication)
  • Re: SQL CE Synching Problems
    ... Have you granted IUSER_ServerName access to your publication within SQL ... It looks like the permissions problem is getting access to the publication. ... so the issue has to be between the server tools and the publisher. ... > A request to send data to the computer running IIS has failed. ...
    (microsoft.public.sqlserver.ce)
  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.server)
  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.programming)
  • Re: Logging in irrespective of database access
    ... Sysadmin role members have full permissions, ... SQL Server MVP ... > My problem is that in the Login section of Enterprise Manger I have to> specify that each login has the System Admin ticked under Server Roles> because in SQL 2000 there doesn't seem to a Grant All permissions option> like there used to be in SQL 6.5. ... > What's the point in having the Database Access section if the System Admin> under Server Roles allows you to get into anything?. ...
    (microsoft.public.sqlserver.programming)