Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss Content Posted by Sean Burke
»
Introduction to Stored Procedures
Introduction to Stored Procedures
Rate Topic
Display Mode
Topic Options
Author
Message
Sean Burke
Sean Burke
Posted Thursday, July 05, 2001 12:00 AM
Valued Member
Group: General Forum Members
Last Login: Thursday, August 29, 2002 12:00 AM
Points: 72,
Visits: 1
Comments posted to this topic are about the content posted at
http://www.sqlservercentral.com/columnists/sburke/introductiontostoredprocedures.asp
Post #513
nsearle
nsearle
Posted Friday, May 24, 2002 7:06 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, August 02, 2002 12:00 AM
Points: 6,
Visits: 1
Great article, but I'm having problems with who the owner should be in the CREATE PROCEDURE line.
When I try to enter my own username as the owner, it shows an error message, and won't let me save the procedure. I have also tried 'dbo_user' with the same result.
I've read elsewhere that the owner of the stored procedure should be the same as the owner of the objects it uses in order to avoid 'broken ownership chains'- whatever that is!
Who should the user be?
Post #19793
Andy Warren
Andy Warren
Posted Friday, May 24, 2002 7:16 AM
SSCertifiable
Group: Moderators
Last Login: Thursday, May 09, 2013 12:38 PM
Points: 6,462,
Visits: 1,384
Best practice is to have all objects owned by dbo. You can either create them and later change the owner, or you have to be the dbo (db owner) of the database. You can accomplish that either by connecting with any login that has sysadmin rights, or by setting up an alias for your login to dbo.
Andy
Andy
SQLShare - Learn One New Thing Each Day
SQLAndy - My Professional Blog
Connect with me on LinkedIn
Follow me on Twitter
Post #19794
nsearle
nsearle
Posted Friday, May 24, 2002 7:17 AM
Forum Newbie
Group: General Forum Members
Last Login: Friday, August 02, 2002 12:00 AM
Points: 6,
Visits: 1
Okay- that works. Thanks a lot.
Post #19795
philcart
philcart
Posted Sunday, September 29, 2002 9:58 PM
SSCrazy
Group: General Forum Members
Last Login: Friday, May 17, 2013 5:53 AM
Points: 2,692,
Visits: 1,074
Good introductory article. Will you be doing a follow-up article? I'd like to see one on using the T-SQL templates which aid in quickly creating standardised SP's.
Thanks
Phill Carter
Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface
Australian SQL Server User Groups
-
My profile
Phills Philosophies
Murrumbeena Cricket Club
Post #19796
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.