SQL Server Christmas Script

Nothing much to say but I hope you all have a nice break. Thanks for the support and reading my blog.

Enjoy the script!

(Might not format correctly here on the website but works fine within SSMS)


IF  EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[sqlserverxmas]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[sqlserverxmas]
GO
CREATE PROCEDURE [dbo].[sqlserverxmas]

AS

 DECLARE @COMMAND varchar(max)
 SET @COMMAND = 

 '

|\/| _ ._ ._    / |_ ._ o _ _|_ ._ _  _. _   _.._  _|   _.  |_  _.._ ._
|  |(/_|  | \/  \_| ||  |_>  |_ | | |(_|_>  (_|| |(_|  (_|  | |(_||_)|_)\/
            /                                                     |  |  /

|\ | _       \_/ _  _.._ |
| \|(/_\/\/   | (/_(_||  o

                 ___,@
               /  <
          ,_  /    \  _,
      ?    \`/______\`/
   ,_(_).  |; (e  e) ;|
    \___ \ \/\   7  /\/    _\8/_
        \/\   \ ''''/      | /| /|
         \ \___)--(_______|//|//|
          \___  ()  _____/|/_|/_|
             /  ()  \      `----'

	   PRINT @COMMAND

	   go

	   EXEC [dbo].[sqlserverxmas]

outputxmAS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s