Re: script object-level permissions
From: cengiz (cengizu_at_globis.com.tr)
Date: 06/26/03
- Next message: Jules Bui: "viewing job status as a member of targetserverrole in msdb"
- Previous message: cengiz uyar: "Re: script object-level permissions"
- In reply to: Andrew J. Kelly: "Re: script object-level permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 25 Jun 2003 23:55:43 -0700
generally when you change an object's permission, the
sysprotects system
table is affected, for example if you grant a object a row
will be
inserted in this table with your objects id. When I grant
my object
nothing changes in the sysprotects table, here is the
statement and the
output:
sp_helprotect my_procedure
Server: Msg 15330, Level 11, State 1, Procedure
sp_helprotect, Line 346
There are no matching rows on which to report.
When you script your objects with the "script object level
permissions"
option checked, sql server uses the
exec sp_MSobjectprivs N'[dbo].[my_procedure]'
procedure which does not return anything for my object.
>-----Original Message-----
>Are you sure the objects have permissions other than
default? I have never
>heard of this being an issue but if you can create a
repro script we can
>certainly take a look at it.
>
>--
>
>Andrew J. Kelly
>SQL Server MVP
>
>
>"cengiz" <cengizu@globis.com.tr> wrote in message
>news:08f901c33b0a$c5fa8ff0$a601280a@phx.gbl...
>> I'm sure that there isn't anything about permissions in
my
>> object script. The strange thing is that it works for
some
>> other databases in the same SQL Server instance.
>>
>>
>> >-----Original Message-----
>> >It has always worked fine for me. They may not be
>> physically next to the
>> >associated object in the script. Make sure you look
>> through the entire
>> >script.
>> >
>> >--
>> >
>> >Andrew J. Kelly
>> >SQL Server MVP
>> >
>> >
>> >"cengiz" <cengizu@globis.com.tr> wrote in message
>> >news:073101c33af2$e43b3d10$a601280a@phx.gbl...
>> >> I've a database on SQL Server 2000, when I want to
>> >> generate scripts of my objects, even if I
choose "script
>> >> object level permissions" , Sql Server does not
script
>> the
>> >> permissions that I've on my object.
>> >>
>> >> thanks in advance
>> >
>> >
>> >.
>> >
>
>
>.
>
- Next message: Jules Bui: "viewing job status as a member of targetserverrole in msdb"
- Previous message: cengiz uyar: "Re: script object-level permissions"
- In reply to: Andrew J. Kelly: "Re: script object-level permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|