Re: Permissions lost after alter table-valued function

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 10/05/05


Date: Wed, 5 Oct 2005 08:13:50 -0500

I believe the applies to list should include the other SQL 2000 editions as
well. I submitted this feedback using the form at the bottom of the page.

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Micle" <micle@netlab.ru> wrote in message 
news:O6$cJoayFHA.3856@tk2msftngp13.phx.gbl...
> Hi!
>
> Applies to section in bug description:
>
> Microsoft SQL Server Standard Edition.
>
> Our version:
>
> select @@version
>
> Result:
>
> Microsoft SQL Server  2000 - 8.00.2040 (Intel X86)
> May 13 2005 18:33:17
> Copyright (c) 1988-2003 Microsoft Corporation
> Enterprise Edition on Windows NT 5.2 (Build 3790: )
>
> Micle.
>
>
> "Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message 
> news:ue32OkayFHA.2880@TK2MSFTNGP12.phx.gbl...
>> This looks like the bug described in MSKB 888530:
>>
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;888530
>>
>> -- 
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>>
>> "Micle" <micle@netlab.ru> wrote in message 
>> news:%23S3GNfayFHA.2516@TK2MSFTNGP12.phx.gbl...
>>> create function dbo.tfFoo()
>>> returns @t table
>>> (
>>> ID int
>>> )
>>> as
>>> begin
>>> insert into @t(ID)
>>> values(1);
>>>
>>> return;
>>> end
>>> GO
>>> grant select on dbo.tfFoo to public
>>> GO
>>> select object_id('dbo.tfFoo')
>>> select id from syspermissions where id = object_id('dbo.tfFoo')
>>> select id from sysprotects where id = object_id('dbo.tfFoo')
>>> GO
>>> alter function dbo.tfFoo()
>>> returns @t table
>>> (
>>> ID int
>>> )
>>> as
>>> begin
>>> insert into @t(ID)
>>> values(1);
>>>
>>> return;
>>> end
>>> GO
>>> select object_id('dbo.tfFoo')
>>> select id from syspermissions where id = object_id('dbo.tfFoo')
>>> select id from sysprotects where id = object_id('dbo.tfFoo')
>>> GO
>>> drop function dbo.tfFoo
>>> GO
>>>
>>> Result
>>>
>>>
>>> ----------- 
>>> 661785615
>>>
>>> (1 row(s) affected)
>>>
>>> id
>>> ----------- 
>>> 661785615
>>>
>>> (1 row(s) affected)
>>>
>>> id
>>> ----------- 
>>> 661785615
>>>
>>> (1 row(s) affected)
>>>
>>>
>>> ----------- 
>>> 661785615
>>>
>>> (1 row(s) affected)
>>>
>>> id
>>> ----------- 
>>>
>>> (0 row(s) affected)
>>>
>>> id
>>> ----------- 
>>>
>>> (0 row(s) affected)
>>>
>>> Permissions are lost.
>>>
>>> Micle.
>>>
>>>
>>>
>>
>>
>
> 


Relevant Pages

  • Re: Unable to Apply SP4 to SQL 2000 Cluster (new Node)
    ... Rebuild the node in the failover cluster. ... Scenario 1" in SQL Server 2000 Books Online. ... This setup process updates to SP4 only the binaries on the new ...
    (microsoft.public.sqlserver.clustering)
  • Re: WSS 3.0 question
    ... I followed the advise given in removing WSS 3.0 etc, ... the server is complaining that the SQL service(?) was tempered with or corrupt. ... I may just instal the SQL server as I was going eventuall use it anyway. ... If WSUS 3.0 is installed, I would suggest you uninstall it and then you install WSS 3.0. ...
    (microsoft.public.windows.server.sbs)
  • Re: SQL Server 2005 Cluster Setup Quiz
    ... I did test and it did not install the client tools. ... http://www.clusterhelp.com - Cluster Training ... Microsoft SQL Server MVP ... Provide a template on how to read SQL Server 2005 setup log files. ...
    (microsoft.public.sqlserver.clustering)
  • Re: WSUS
    ... I'm not seeing performance issues with the full enchilada installed, and 25 users busy hitting SQL. ... WSUS isn't difficult to uninstall - if you have WSUS v2 (installed with SBS R2) uninstall R2 from add/remove programs. ... How can anyone work with 4 instances of SQL Server on the same box? ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot setup SQL Mail on SBS 2003
    ... Microsoft CSS Online Newsgroup Support ... Cannot setup SQL Mail on SBS 2003 ... The account you use to start the SQL Server service must be a domain ...
    (microsoft.public.windows.server.sbs)