Only A System Administrator Can Reassign Ownership

Jan 30, 2007

Hi guys,

I am new to this forum and new to SQL.

I have a stored procedure which sets the value of a variable (@owner_logon_name, type sysname) to sa. It then calls sp_add_job in the msdb database, which in turn calls numerous other stored procedures. The ASP page I post down to the server is coming back with an internal server error and the log file shows the following message:

"Only a system administrator can reassign ownership of a job."

Even though the login name was set to sa, it seems to be using another role.

The code I have in my sp is:

exec @ReturnCode = msdb.dbo.sp_add_job @job_id = @JobID output ,
@job_name = @JobName,
@owner_login_name = sa,
@description etc, etc

Can anyone think why it would do this? An explanation of how sp_add_job works would also be much apprciated.

View 1 Replies


ADVERTISEMENT

Adding Another System Administrator

Aug 16, 2006

Hi all
I deleted the sa account
how do I add it with all the correct permissions (plus include it in all the tables )
TIA
Guy

View 1 Replies View Related

System Administrator Privilege

Jan 25, 2007

In SQL 2000, how do I grant system administrator privilege to "sa" or a Windows User?

View 3 Replies View Related

BUILTINAdministrators Vs System Administrator

Feb 13, 2007

Hello all,

does someone know where to find information regarding what is accesible to a BUILTINAdministrator which is not accesible to a System Administrator?

Somewhere I have read that a System Administrator can not see the "All users' folders (i.e. the collection of "My folder"s for all users of the Report Server) but I have also experienced a behaviour which has surprised me: as a System Administrator with all permissions I cann't even see folders that a BUILTINAdministrator can.

Does it mean that a System Administrator can not really manage all the resources of a Report Server?

Any ideas will be welcomed. Many thanks.



View 1 Replies View Related

Default Password For System Administrator

Nov 16, 2007

We recently downloaded and installed SQL Express as it was a required program for our new database management software. When trying to install my database management software I was asked to Login to the SQL server. I entered the SQLEXPRESS server, however, I do not have the SA password. When SQL Express installed it did not ask for a password only for a user name and company. I am running Windows Small Business Server with the Administrator and no password. We did not assign a password to the Administrator account yet.

I have tried to leave the password blank using the login SA and I get error message 28000 Login failed for user. The user is not associated with a trusted SQL Server Connection.

Is there a default password for SA? Or in the alternative, how do I create a user or associate an exising Windows user with a trusted SQL server connection?

View 3 Replies View Related

Programming Babe In A System Administrator's Woods!

Nov 11, 1999

I posted this topic and got not response, but I'm pretty desperate so I'll try one more time.

I'm a programmer at a small company but for the past year I've also been relagated to SysAdmin (fun, fun, fun). We less than 25 users (usually no more than 10-15 at one time). We run NT server on a P133, 64MB RAM, 3.5MB & 2.5MB SCUSI hard drives. We run SQL Server on dual P133's, 98MB RAM, 4MB & 2MB SCUSI hard drives. Our systems are pretty junky, they were bought at Microcenter a couple of years ago and some other machines we had bought about the same time have begun dying left and right. Our Server is very slow and we're afraid it's going to poop out on us soon.

I've been put in charge of taking care of this. "Get us a new server, and don't spend too much money." Being a programmer, not and administrator, I have a few questions:

1. Can I buy 1 good server to replace these two? That would mean running our NT File Server and our SQL Server (on NT of course) on the same box. Is that bad or can I do that? The only thing the NT Server is used for is file sharing (mostly images). No applications, no exchange (although maybe in the future), no internet. 2. If yes, should I go with a really fast desktop with a few ATA/66 drives, a smoking chip, tons of memory. Or, should I get a true server with SCUSI drives, ECC memory, RAID capable and all that. Essentially is it better to get a smoking desktop or a lower end/entry level server?
3. I don't quite understand RAID, do I need it? If so, what is it? We need to backup or data somehow.
4. Anything else you think I'll need? Or, could some list some minimum specs?
5. How much should this cost me?

Our main concern is the SQL Server running fast enough. We have a custom Accounting/Order/Inventory system (Access97-front/SQL-Back end ). The database is about 200MB and growing and the largest table has about 100,000 records and we anticipate about 20,000 records a year in that table. We also store tons of images (art company) on our file server and we would like to link our SQL inventory records to those image files.

I'm really kind of in over my head with the administration but the pressure is on. They want me to do this instead of outsourcing and they want to keep in the <=$3500 range (Server & Backup System). Any help or advice of any kind would be greatly appreciated.

Thanks.

View 1 Replies View Related

Setup And Upgrade :: Missing System Administrator

Jun 3, 2015

I am using windows 8 and I have only one user in laptop. While installing SQL 2014, I am getting an error (Missing System Administrator). Under SQL Server Agent and SQL Server Database I have select the system user and gave the password but still I am getting the error.

View 8 Replies View Related

SQL Security :: System Administrator Password Reset

Aug 7, 2015

I have inherited a sql server and no one knows the SA password.  I cannot login with windows authentication even if the account is administrator of the machine.

View 4 Replies View Related

SQL Server 6.5 - HOW TO Create Login With System Administrator Privileges

Jul 20, 2004

Hi,

Can any of you tell me how to create a login in SQL Server 6.5 with System Administrator privileges, like we can do with SQL 7 or SQL 2000 ? I don't want to use the sa login.

Thanks

View 1 Replies View Related

How To Prevent System Administrator To View And Edit A Database Structure And Data

Dec 26, 2007

I represent a software development house and we have developed a client server system based on SQL Server. Most of our customers have already purchased Enterprise License of SQL Server, therefore they own the SA Login and Password. We are bound to attach our Database with their Server on their machine.

My question is how can we stop a System Administrator of SQL Server to view our Database Structure, Queries, Data installed on their SQL Server on their machine.

Our database structure is a trade secret and we cant reveal the structure to the client.

please answer this question by email to me at farhandotcom@gmail.com

Thanks & Regards
Farhan

View 1 Replies View Related

How Can I Reassign The Dbo's Login?

Feb 26, 2003

How can I reassign the dbo's login?

the dbo user has a login that I want to get rid of. How can I re-assign dbo to sa or the NT service accounts - or any other login, for that matter?

Michael GG

View 1 Replies View Related

Domain Administrator Vs. Local Administrator Group

Jul 16, 2002

We are trying to set up SQLAgent Proxy account. If the SQLServer service id is a domain admin, do we still have to add it to the local administrators group?

Jeff

View 1 Replies View Related

SQL Server Administrator And Local Administrator

Nov 22, 2005

Please help! I am new in SQL Server 2000 Administration. My manager had ask me to manage a SQL Server, but Windows Adminstrator refuse to give me Local Admin rights. I only have sa account to login to databases. I don't know any excuses or reasons to give to Windows Adminstrator so that he can give me the local admin rights. If any one have this answer, please help. Thank you.

-JC

View 4 Replies View Related

DBO Ownership

Sep 20, 2007

Sometime ago, I had read a posting here about where in the system we can specify default owner of all objects in user database as being a DBO.

The topic came about, because somebody found out that if an object referred to in a query, does not have a fully qualified name, then it takes some time for SQL server to figure out what the owner of the object is; this causes performance problems.
e.g. select * from employees and select * from dbo.employees.

If anybody knows what that setting is...I will really appreciate it

Regards
Paresh Motiwala
Boston, USA

View 4 Replies View Related

System.Security.SecurityException: Request For The Permission Of Type 'System.Data.SqlClient.SqlClientPermission, System.Data

Aug 21, 2006

I have created a windows library control that accesses a local sql database

I tried the following strings for connecting

Dim connectionString As String = "Data Source=localhostSQLEXPRESS;Initial Catalog=TimeSheet;Trusted_Connection = true"

Dim connectionString As String = "Data Source=localhostSQLEXPRESS;Initial Catalog=TimeSheet;Integrated Security=SSPI"



I am not running the webpage in a virtual directory but in

C:Inetpubwwwrootusercontrol

and I have a simple index.html that tries to read from an sql db but throws

the error

System.Security.SecurityException: Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
at System.Security.PermissionSet.Demand()
at System.Data.Common.DbConnectionOptions.DemandPermission()
at System.Data.SqlClient.SqlConnection.PermissionDemand()
at System.Data.SqlClient.SqlConnectionFactory.PermissionDemand(DbConnection outerConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection,

etc etc

The action that failed was:
Demand
The type of the first permission that failed was:
System.Data.SqlClient.SqlClientPermission
The Zone of the assembly that failed was:
Trusted


I looked into the .net config utility but it says unrestricted and I tried adding it to the trusted internet zones in ie options security

I think that a windows form connecting to a sql database running in a webpage should be simple

to configure what am I missing?

View 28 Replies View Related

Database Ownership

Apr 1, 2008

My system was crashing so I reinstalled everything. including SQL 2005 Express with management studio. I renamed the computer from the previous install. but for some reason the sql 2005 express management studio remembers the old machine name even when I create a new DB inside the management studio with the new computer name.when I try to change the ownership in properties-files it cant find the 'new computer nameuser'i double checked the computer name its correct. The funny thing is i installed express with the 'new computerame' anyone have a clue that may help with this what file needs to be edited?Thanks inadvance for any help. 

View 2 Replies View Related

Change Ownership

Jul 5, 2001

Is there a way in SS 7.0 to change ownership of an object from a user owned object to dbo owned object other than dropping the object and re-creating it? E.G. juser.table to dbo.table
Thank you,
GaetonC

View 2 Replies View Related

Change Ownership To Dbo

Jul 26, 2000

I have tables created by a user called "toms". He has dbo permission etc.
I want to make all these tables to be owned by sa ( dbo). How do I do that?

the owner of the database is sa

thanks,
Rachel

View 1 Replies View Related

Ownership Of Tables

Nov 17, 1999

Is there anyway to change the ownership of a table.. I have developers who create tables and the tables are then shown to be owned by them.. These developers are in the db_owner database role.. The application will not run successfully unless the table is owned by the dbo..

The only way I see that I can handle this is to have them generate a script and have myself (full sa) run it..

Any other suggestions?
Thanks

View 1 Replies View Related

DTS Package Ownership

Nov 2, 1999

I work in a development team of 5 people - when we create DTS packages they are owned by the individuals' user. This means that if a problem is discovered, only the original developer can change their package - which is a problem if they are busy / on holiday etc.

Is there a way to change each others packages without having System Admin priveleges (definitely not an option)

Similarly, how are people handling version control of packages - they is no way to put a package into Sourcesafe / something similar is there ?

View 1 Replies View Related

Change Of Ownership

Mar 9, 2001

How do you change the ownership of a DTS package?

View 1 Replies View Related

Change Of Ownership???

Jun 28, 2004

I am having a problem with object ownership.
The person who setup the SQL Server setup the "dbo" account with his personal permissions. I need to change "dbo" so that the login name is the system account and not a personal account. Is this possible?

If this is not possible can I change the ownership of a system object?
I was able to change ownershipof user objects using the "sp_changeobjectowner" stored procedure, but it did not seem to work for system objects.

Any way around this?

- Eric

View 2 Replies View Related

Ownership Issue

Sep 15, 2004

One of my apps uses a login that is tied down to only use the sprocs and tables it is allowed to access. Its just given 'public' role. However, it needs to be able to add and delete fields from one table in particular. Is there a way to allow this? The login it uses has been given full rights to the table but an alter table command faults. The tbale must be a 'dbo' because other apps use it -- can I be granted DDL rights on a per table basis?

View 6 Replies View Related

Package Ownership

Aug 8, 2007

Ok... Now I'am panicking.... I dont know how to resolve this issue...

Package created by me, imported to sql server by dba, its executed under a different user id (all are NT logins)

Execution Command



Code SnippetDTEXEC /SQL "pkg1" /SERVER SERVER1 /MAXCONCURRENT " -1 " /CHECKPOINTING OFF /REPORTING E





Below is the error.



Code Snippet
Microsoft (R) SQL Server Execute Package Utility Version 9.00.3042.00 for 32-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
Started: 9:01:51 AM
Could not load package "pkg1" because of error 0xC0014062.
Description: The LoadFromSQLServer method has encountered OLE DB error code 0x80040E14 (Only the owner of DTS Package 'pkg1' or a member of the sysadmin role may create new versions of it.). The SQL statement that was issued has failed.
Source:
Started: 9:01:51 AM
Finished: 9:01:51 AM
Elapsed: 0.156 seconds




Please some body help me on this.
Thanks

View 8 Replies View Related

Using Ownership Chains

Dec 11, 2005

How I can disable Ownership chains.For Example Joe creates a procedure called procedure1, which depends on Table1 (also owned by Joe), and with executed procedure1 insert one record in table1,we assume Joe grants Mary permission to use procedure1,But  Mary do not permission To insert  record to Table1 (Deny To Insert in Table1),and I Expect To see "Insufficient Permissions" error, But It did't happen and record inserted in Table1.

View 1 Replies View Related

Dbo - Database Ownership

Jun 8, 2006

I have created tables within SQL Server database. My tables I have created do not have the dbo ownership(?)...how does one transfer a table to dbo?

advTHANKSance

View 7 Replies View Related

Change Ownership

May 28, 2007

Hello I'm trying to change the ownership using this command :



sp_changeobjectowner 'govern.NA_WEB_SUBS_HITS' , 'dbo'





and then I received this following error message :



Msg 15001, Level 16, State 1, Procedure sp_changeobjectowner, Line 75
Object 'govern.NA_WEB_SUBS_HITS' does not exist or is not a valid object for this operation.



Can anyone help please??



Thanks,



Stanley

View 5 Replies View Related

Change Object Ownership

Feb 16, 2007

A co-worker recently quit the company, and all of his storedprocedures and DTS packages are apparently under his name. Is thereany way to change his account to another (ie administrator or SA)??I am afraid to delete his account in fear all the stored procedureswill be lost. (we have backups, but ... ugh)

View 1 Replies View Related

Difference B/w Permission Vs Ownership

Oct 26, 2000

hi what is the differenct b/w Permission vs ownership in a window NT property.I know that I use permission to give permission to the NT users to have certain rights to folder. what about ownership. What do I use it for and how does it server me

Ahmed

View 1 Replies View Related

Change Ownership Of Table On SQL 7.0?

Oct 29, 1999

Just curious - how does one change the ownership of a *table* (not a database) in SQL 7.0?

Thanks
RM

View 1 Replies View Related

DTS Package Ownership Issue

Apr 11, 2006

Hi
In production, I have couple of DTS packages saved under the ownership of the old dba(her network id). All the new DTS packages have my network authentication id as the ownership.

I read an article in the sqldts.com saying, this will not affect the day to day activities. Link below

http://www.sqldts.com/default.aspx?212

My questions
1) Is there anyway I can create the DTS package with an sql authentication id (sa) instead of the my windows authentication id.This will clear off the issue of person specific ownership for the dts package.
2) I am aware of the undocumented stored procedure
sp_reassign_dtspackageowner to change the owner name.Incase i am changing it for all the packages in the server, what will be the impact?
Most of the dts packages are run using the jobs and i assume there wont be any problem with that.
what about the packages directly invoked using the applicaiton?

Thanks in advance
Sreenath

View 2 Replies View Related

Ownership Chains And Permissions

Feb 20, 2007

If I, as dbo, create a stored procedure to delete a record from a table (also owned by dbo) and I grant a user (user1) permissions to execute this stored procedure does the fact that an ownership chain exists between the stored procedure and the table mean that there will be no net effect if I deny delete permissions on this table to this user?

View 2 Replies View Related

Changing Ownership Of Objects

May 6, 1999

Hi !!
I would greatly appreciate your help. I am a newbie at SQL Server..and am a
trainee DBA for my company. the problem I am facing is that till now the
developers were using any one of three (user created)logins and were creating
and manipulating objects. All the creation and modification of objects and
databases will be done by me. The problem is that the owners of the previously
created objects is one of those logins.
Is there anyway in which I can become the owner of all the objects and deny
them any rights on altering the objects ?? or do I have to drop them all and
recreate them with me as the DBO ?? Thanx

View 1 Replies View Related







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