Hi- apologies for asking a stupid newbie question, but I'm really stuck at
the moment. I need to change table ownership.
I've got an asp script which is looking for a table owned by the dbo role,
however the table was created under a different ownership. I understand the
problem, and almost understand the solution, but I can't seem to get all the
way.
THE PROBLEM (using [server].[database].[owner].[table])
[mgbsvr1].[dnn].[dnnadmin].[aspsearch]
needs to be
[mgbsvr1].[dnn].[dbo].[aspsearch]
I looked up the books online and found this syntax:
sp_changeobject owner [ @objname = ] 'object' , [ @newowner = ] 'owner'
But I can't see how to use it, nor more importantly, where I should use it.
It won't work in the query tool in Enterprise Manager. If I need to create a
script (which I've never done before), how do I execute the script?
All help deeply appreciated
Manning, Sydney 3 81155
Hi
You will need to be connected to [mgbsvr1].[dnn] with either sysadmin,
db_ddladmin and db_securityadmi n rights or the dbo to issue the statement
sp_changeobject owner '[dnnadmin].[aspsearch]' , 'dbo'
John
"Manning" <ma*****@NOSPAM bartlett.net> wrote in message
news:bl******** **@lust.ihug.co .nz... Hi- apologies for asking a stupid newbie question, but I'm really stuck at the moment. I need to change table ownership.
I've got an asp script which is looking for a table owned by the dbo role, however the table was created under a different ownership. I understand
the problem, and almost understand the solution, but I can't seem to get all
the way.
THE PROBLEM (using [server].[database].[owner].[table]) [mgbsvr1].[dnn].[dnnadmin].[aspsearch] needs to be [mgbsvr1].[dnn].[dbo].[aspsearch]
I looked up the books online and found this syntax: sp_changeobject owner [ @objname = ] 'object' , [ @newowner = ] 'owner'
But I can't see how to use it, nor more importantly, where I should use
it. It won't work in the query tool in Enterprise Manager. If I need to create
a script (which I've never done before), how do I execute the script?
All help deeply appreciated Manning, Sydney
Manning (ma*****@NOSPAM bartlett.net) writes: But I can't see how to use it, nor more importantly, where I should use it. It won't work in the query tool in Enterprise Manager. If I need to create a script (which I've never done before), how do I execute the script?
Enterprise Manager is not much of a query tool. Use Query Analyzer
instead.
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
John and Erland
Thanks for your advice - problem fixed.
Manning
"John Bell" <jb************ @hotmail.com> wrote in message
news:3f******** **************@ reading.news.pi pex.net... Hi
You will need to be connected to [mgbsvr1].[dnn] with either sysadmin, db_ddladmin and db_securityadmi n rights or the dbo to issue the statement
sp_changeobject owner '[dnnadmin].[aspsearch]' , 'dbo'
John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robbie |
last post by:
Hi Guys
Wonder if you could help me.
Basically I produce an accounts package that uses a SQL 2000 DB as the
RDBMS. I always instruct users to login as 'sa' and the relevant
password when doing an update to my program, as sometimes I need to do
database changes for new stuff.
Found that one of my users has not only logged in with their login
|
by: John |
last post by:
Hi,
I have a data driven application which has some generalized components. So,
for reuse, I am building the components so they can be reused in other
projects ... it takes almost no extra effort, just a bit of planning.
Following the security convention of only giving the user as much access as
required, I always create at least 2 users for each app; owner & user. And
recently I've had a cool idea for handling multiple sites with...
|
by: Jeff Kowalczyk |
last post by:
I need to adapt this an update statement to a general
form that will iterate over multiple orderids for a given
customerinvoiceid. My first concern is a form that will
work for a given orderid, then an expanded version that
will work on all orderids with a specific
customerinvoiceid as a parameter.
I'm sure appropriate joins will handle it, but I'm
not making any headway, everything comes back with
multiple tuple selected for update...
|
by: StenKoll |
last post by:
Help needed in order to create a register of stocks in a company. In
accordance with local laws I need to give each individual share a
number. I have accomplished this by establishing three tables (se
below) then I run a query giving me a running total, which give me the
first stock in the batch purchased by an individual, then I use this
number and add the number of shares in order to find the number of the
individuals' last share.
So...
|
by: CAD Fiend |
last post by:
Hello,
I have a land development project that has a many-to-many relationship.
I have ONE question regarding table structures, and ONE question on how
to make a Form with two Subforms, below.
TABLE STRUCTURE QUESTION:
There are two parts to this preface.
| |
by: Chris |
last post by:
This should have been easy but I can't find the answer...
I want to make every other row in my table a different row. I can't seem to
find a way to do this through my Page_Load event like I thought I would
because I can't grab the table object. The table has an ID so I don't see
why I can't reference it in my event. Can anyone shed some light on how to
go about this. Oh, I'm new to ASP.NET but do VB.NET often, so I may be
missing...
|
by: Manning |
last post by:
Hi - apologies for asking a stupid newbie question but I'm a bit out of my
depth here and could really use some help.
I've got an ASP module which can't find a table because the table owner is
wrong. The sql script that created the table is at fault as it obtained the
default database owner rather than defining the dbo explicitly.
I sort of understand the necessary solution but I don't see how to actually
execute it.
|
by: Francisco Reyes |
last post by:
Is there a way to change a schema owner other than dump/restore?
How about changing the nspowner in pg_namespace? Will that do the trick
without any negative consecuences?
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
|
by: ArijitChaterjee |
last post by:
I have a MS SQL Server Database which consists of several Tables, amongh some has owner as "dbo" and some has another owner like "xyz".
Is there any T-SQL that can change the owner of the tables to "dbo".
And plz clarify the fact how a owner can be determined at the time of table creation.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |