472,119 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

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 1477

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.