db_owner script

  • Can someone with db_owner rights (only) script out a stored procedure?

  • Yes on that database only, although you can look at stored procedure with lower rights, if they can run select statements against the syscomments table.

    --------------------------------------------------------------------------------------
    [highlight]Recommended Articles on How to help us help you and[/highlight]
    [highlight]solve commonly asked questions[/highlight]

    Forum Etiquette: How to post data/code on a forum to get the best help by Jeff Moden[/url]
    Managing Transaction Logs by Gail Shaw[/url]
    How to post Performance problems by Gail Shaw[/url]
    Help, my database is corrupt. Now what? by Gail Shaw[/url]

  • yes.

    as db_owner, you own every object in the database; you can read/write, as well as create/alter/drop all the objects...

    db_owner is a powerful role so it's like having db_datareader,db_datawriter and ddl_admin, but with even more rights than those roles would give.

    did you think it was a minor role that just tagged a user to the database?

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • No, the user was complaining that they could not script...I told them they had the rights to...

    Thanks guys..

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply