Search

Allow User-Access to New Object Templates by Bob Sovers1

Closed
as Won't Fix Help for as Won't Fix

1
0
Sign in
to vote
Type: Suggestion
ID: 622963
Opened: 11/18/2010 8:09:46 AM
Access Restriction: Public
0
Workaround(s)
It would eliminate issues such as https://connect.microsoft.com/SQLServer/feedback/details/622784/denali-ssms-proliferation-of-the-use-of-deprecated-system-tables-e-g-sysobjects if dbo-level users were given access to the "secret sauce" that is used to generate the new object templates or when a DROP and CREATE of an existing procedure is created using the "Script <object> as"... commands.

If the reason that the logic uses

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[XXX]') AND type in (N'FN', N'IF', N'TF', N'FS', N'FT'))
DROP FUNCTION [dbo].[XXX]
GO

instead of

IF OBJECT_ID(N'[dbo].[XXX]') IS NOT NULL
DROP FUNCTION [dbo].[XXX]
GO

so that all 4 function object types can be checked, then the OBJECT_ID function should be made more flexible (ie, except multiple object types)
Details (expand)
Product Language
English

Category

Tools (SSMS, Agent, Profiler, etc.)

Proposed Solution

Provide access to the script snipits that are used for both new object templates, and for the "Script <object> as" functionality. This may even improve the usability of the "Generate Script..." output code.

Benefits

Faster Development

Other Benefits

 
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 11/25/2010 at 9:17 AM
Hi Bob:

Greetings from the SQL Server Manageability team.

Thanks for writing in to Microsoft. We greatly value your feedback. We understand your problem, and how fixing this could improve productivity.

However, given the work that would be involved in implementing this work, and our set of deliverables, we do not think, we would be able to get to this in the near future.

Having said that, we value your suggestions, and would like to assure you that, we would keep these ideas in mind, when we do revisit this feature in the future.

Thanks again for providing feedback and making SQL Server the greatest Database server.

Regards

Chandramouli
Sign in to post a workaround.