How Do I Determin Who Owns A Job?

Mar 11, 2008

I need a script or stored procedure to tell me who owns what jobs. I have something like 150 and one of my job creators is no longer with our department. His account (NT domain) is still active but he is no longer working with these jobs and they need to be owned by someone else. Is there an easy way to do this?

Dale

View 6 Replies


ADVERTISEMENT

Determin Name Of Primary Column

Aug 6, 2006

given the name of any table how can i programmatically get the name of the primary key column?

View 1 Replies View Related

Trying To Drop A Login That Owns A Database

May 1, 2008

I am trying to drop a login but the system is telling me.
quote:Msg 15174, Level 16, State 1, Line 3
Login 'Mark' owns one or more database(s). Change the owner of the database(s) before dropping the login.

Question:
But how do i check to find out which objects or tables that this login is associated with.

Dallr

View 6 Replies View Related

LOG: Process ID 59:0 Owns Resources That Are Block

Apr 11, 2007

Process ID 59:0 owns resources that are blocking processes on Scheduler 2

I am getting tons of this into sql server log second day in a row (2000 sp4)

Noticed heavy usage prior

What is causing it? Solution?


Kalman Toth, Database, DW & BI Architect
SQL Server 2005 Training - http://www.sqlusa.com

View 1 Replies View Related

Can I Query Metadata To Find Table The Owns Field?

Mar 9, 2008

I have to write some reports for a database I am not familiar with. Is there a query I can use to find a table name if I know the field name?

example: Select table_name from database where field_name = 'my_field'

Mike

View 1 Replies View Related

Process ID 152:3 Owns Resources That Are Blocking Processes On Scheduler 2.

Jun 5, 2007

Last night I received this error


Process ID 152:3 owns resources that are blocking processes on Scheduler 2.



When I did an BCC INPUTBUFFER I found it was sp_MSadd_repl_commands27hp which is doing the insert into MSrepl_commands has any else noticed and issue w/ sp_MSadd_repl_commands27hp blocking itself. At the time I had about 10 million records to move. I was using the default log reader settings so I was batching them in 500 chunk intervals.



I am wondering if any else has had problems like this? I basically see it whenever I move too much data through my replication server.



I found the followoing link http://support.microsoft.com/kb/319892




Sample Scenario

Client 1 connects to SQL Server.

Client 1 runs a Transact-SQL command that starts a transaction and performs data modification.

For example: begin tran
update authors set au_lname = 'test'
Client 1 becomes IDLE, shows up as sleeping, and awaiting a command with an open transaction in the sysprocesses system table.

Clients 2 through 255: Approximately 254 more clients log on to SQL Server and issue a SELECT from the authors table. These clients will all become blocked on the original update.

Client 1 tries to commit the transaction but it becomes queued because all the worker threads are tied up by clients 2 through 255.


I am afraid that I am seeing this more then I would like does anyone know a way to prevent this from happening?

View 1 Replies View Related

SQL Server Down: Process ID 121:406 Owns Resources That Are Blocking Processes On Scheduler 4.

Sep 11, 2007

The following question applies to SQL Server 8.0.2187 (2000 + SP4+916287/914384/898709/915065/915340):

We have now twice had an incident where the same SQL Server has stopped responding. The only workaround is to restart the SQL Service. After this occurs, the log is filled with the following messages:

2007-09-10 16:42:14.29 spid3 Process ID 197:320 owns resources that are blocking processes on Scheduler 1.

2007-09-10 16:42:14.31 spid3 Process ID 74:324 owns resources that are blocking processes on Scheduler 5.


We haven't been able to pinpoint a cause or reporduce the problem on a dev server. I've seen several posts about this issue online but not many answers. Does anyone have any advice on how to troubleshoot this issue?

View 1 Replies View Related

SQL Server 2005 Express: The Database Principal Owns A Schema In The Database, And Can Not Be Dropped.

Jan 11, 2006

I recently added a new user to my database.  Now I want to delete that user, but I keep getting the error above.  What do I need to do to delete my recently added user?

View 4 Replies View Related

Changing DB Owner From Kate To Bob, But Kate Owns Objects

Apr 13, 2006

Im having trouble changing the DB owner from Kate to Bob, because Kate owns some objects in the DB.
I first try to run sp_changedbowner Bob....but it tells me:
The proposed new database owner is already a user in the database.

When I run scripts on a table that such as;
sp_changeobjectowner 'customers', 'Bob'...I get the message of

Server: Msg 15001, Level 16, State 1, Procedure sp_changeobjectowner, Line 38
Object 'customers' does not exist or is not a valid object for this operation.

Please help with what I can do.

Thank you

View 3 Replies View Related

The Database Principal Owns A Schema In The Database, And Cannot Be Dropped.

Feb 15, 2006

Trying to get my hands around all the new security features of SQL Server 2005. In Management Studio did something I don't know how to undo. I added a database role ReadOnlyRole and clicked the box next to db_datareader in the owned schemas box. Then I tried to remove the ReadOnlyRole and could not. How do I undo what I did? Is it possible?

The below is the TSQL that generates the my issue.



Use [master]
go
create database [test]
go

USE [test]
GO

CREATE ROLE [ReadOnlyRole]
GO

USE [test]
GO

ALTER AUTHORIZATION ON SCHEMA::[db_datareader] TO [ReadOnlyRole]
GO

drop role [ReadOnlyRole]
go

View 12 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved