469,889 Members | 1,519 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

Q: Changing table owner

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.

(...expressed as [server].[database].[owner].[table])

[mgbsvr1].[dnn].[dnnadmin].[aspsearch]
needs to become
[mgbsvr1].[dnn].[dbo].[aspsearch]

I read the books online and got the
sp_changeobjectowner [ @objname = ] 'object' , [ @newowner = ] 'owner'
syntax, but I really don't know what to do next, or (more importantly) where
and how to do it.

Help will be deeply appreciated.

Manning, Sydney Australia
Nov 20 '05 #1
0 1439

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Manning | last post: by
7 posts views Thread by Chris | last post: by
2 posts views Thread by Francisco Reyes | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.