Re: Lock of Object if i create users with a script file

From: Narayana Vyas Kondreddi (answer_me_at_hotmail.com)
Date: 07/27/03


Date: Sun, 27 Jul 2003 12:16:48 +0100


You should be able to change the owner of a view while it is being used,
provided it is not being queried continuously without a break. But on a
heavily used system, your sp_changeobjectowner call could be blocked by
schema stability locks.

It is better to take a brief outage when deploying database changes.

--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm
"Andreas Berneaud" <aberneaud@web.de> wrote in message
news:eZjLK5CVDHA.2016@TK2MSFTNGP09.phx.gbl...
Hi.
My work is to create/add database users on an existing(working) sql server.
Now i want to know if some database objects (table, views etc) are locked in
the time in that i create roles, users and logins with a script file.
If i chang the owner of a view, is this view executable between that time or
should i stop the program which use the view ?
Thanks for your help.
Ciao
Andreas


Relevant Pages

  • Re: Cannot view DB properties
    ... # Ran the setup and upgraded the existing SQL Server 8.00.818 to SQL Server ... owner was NULL after the UPgraded finished successfully. ... The proposed new database owner is already a user or aliased in the ... Sorry, I don't understand, what do you mean by "In-Place Upgrade"? ...
    (microsoft.public.sqlserver.security)
  • Re: HELP - I goofed when creating a database
    ... details) go to which date record - is not stored in your database; ... some reading on the merits of SQL Server vs Access. ... you select the owner or enter a new one, enter the date ordered, then ... ownerID - PK ...
    (comp.databases.ms-access)
  • Re: Confused about dbo
    ... Jasper Smith (SQL Server MVP) ... > database within a SQL Server instance. ... > There are several ways you could have the username dbo. ... > the true owner of the database. ...
    (microsoft.public.sqlserver.security)
  • Re: Cannot view DB properties
    ... # Ran the setup and upgraded the existing SQL Server 8.00.818 to SQL Server ... # I have like 20 databases and only for 5 databases I noticed that database ... owner was NULL after the UPgraded finished successfully. ... Sorry, I don't understand, what do you mean by "In-Place Upgrade"? ...
    (microsoft.public.sqlserver.security)
  • Re: MS Access DAO -> ADO.NET Migration
    ... William Vaughn ... Microsoft MVP ... Hitchhiker's Guide to Visual Studio and SQL Server ... My migration app works building a SSCE database file with imported data ...
    (microsoft.public.dotnet.framework.adonet)