To expand on Keith's response, a user who is not the database owner needs to
either be a member of the db_owner role or the db_ddladmin fixed database
roles in order to create objects owned by 'dbo'.
Hope this helps.
-----------------------
SQL FAQ links (courtesy Neil Pike):
http://forumsb.compuserve.com/gvforums/UK/default.asp?SRV=MSDevApps
(faqxxx.zip in lib 7)
or www.ntfaq.com/Articles/Index.cfm?DepartmentID=800
or www.sqlserverfaq.com
or www.mssqlserver.com/faq
-----------------------
"Keith Kratochvil" <Keith.please email only when
Quote:
> (assuming that you have the appropriate permissions)
> CREATE PROC dbo.foo
> AS
> ........
> --
> Keith
> ==============
> Please reply only to the newsgroups.
> When posting, inclusion of SQL (CREATE TABLE ..., INSERT ..., etc.) which
> can be cut and pasted into Query Analyzer is appreciated.
> > Is there anyway to create a stored procedure with dbo as the owner when
> you
> > are not dbo?