Advertisement

12.24.2006 at 11:22PM PST, ID: 22102863
[x]
Attachment Details

Merry Xmas

Asked by aneeshattingal in MS SQL Server

Tags: merry

Dear all Experts ,
(Run this in Text mode (Ctrl+T)  )



DECLARE @Tab TABLE(i INT identity, K VARCHAR(1000))
DECLARE @i  INT, @j INT
SELECT @i = 1 , @j = 1
INSERT INTO @tab SELECT ''
INSERT INTO @tab SELECT ''
INSERT INTO @tab SELECT ''
INSERT INTO @Tab SELECT SPACE(40) + CAST(0x5F5C2F5F2020202020204D657272792058276D61732020616E64204861707079204E65772059656172 AS VARCHAR(100))
INSERT INTO @tab SELECT SPACE(41)+'/\'

WHILE @j <=10
BEGIN

      INSERT INTO @tab SELECT RIGHT(SPACE(15)+REPLICATE('*',@i), 15)
      SET @i = @i+1
      SET @j = @j +1
END


UPDATE @Tab
SET k = k+REVERSE(LEFT(k,14))WHERE i > 5

INSERT INTO @tab SELECT SPACE(11) + '|'+SPACE (5)+'|'
SELECT K FROM @Tab

Start Free Trial
[+][-]12.25.2006 at 12:11AM PST, ID: 18195674

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.25.2006 at 01:47AM PST, ID: 18195743

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.25.2006 at 02:15AM PST, ID: 18195773

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.25.2006 at 02:30AM PST, ID: 18195781

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Tags: merry
Sign Up Now!
Solution Provided By: appari
Participating Experts: 4
Solution Grade: A
 
 
[+][-]12.25.2006 at 03:52AM PST, ID: 18195845

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.26.2006 at 05:59AM PST, ID: 18197947

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32