SQL - Stored Procedure Template

This article contains code for a stored procedure template.

I work for 4 or 5 customers a day on support calls; I don't have the luxury of setting up SQL Server SSMS the way that I like it and coding blissfully.

A basic task for me would be creating a stored procedure; but I really don't like the templates that come with SQL.

IF exists (select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_NAME = 'dd_') begin

DROP proc dd_

end

GO

CREATE proc dd_

AS

set transaction isolation level read uncommitted

GO

GRANT EXEC ON dd_ TO PUBLIC


RealWorldCode gives developers practical, real‑world solutions with clean, working code — no fluff, no theory, just answers.
Links
Home
Knowledge Areas
Sitemap
Contact
Et cetera
Privacy Policy
Terms and Conditions
Cookie Preferences