Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
sql_server 217
t-sql 211
tsql 116
sqlserver 96
BRH 78
#SQLServer 66
#TSQL 56
SQL Server 34
function 11
SSMS 9

Archive · View All
August 2007 17
August 2010 8
June 2012 7
June 2011 7
November 2007 7
August 2012 6
May 2012 6
November 2011 6
August 2011 6
October 2011 6

Madhivanan's TSQL Blog

Happy New Year from T-sql

Dec 31 2010 1:41AM by Madhivanan   

In the Query Analyser, set the Result mode to Text (Press CTRL+T) and run the following code
set nocount on 

select
        space(17-len(replicate(char(37),no)))+ replicate(char(37),no*2-1) 
from 
        (
                select top 10 row_number() over (order by name) as no from sysobjects 
        )
as t 
union all
select space(14)+replicate(char(124),5) 
union all
select space(10)+cast(0x4861707079204E65772059656172 as varchar(100))

Tags: t-sql, sql_server, Happy-New-Year, Happy-Holidays, sqlserver, tsql, BRH,


Madhivanan
3 · 40% · 12924
1
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

5  Comments  

  • Superb, Happy new year.

    commented on Dec 31 2010 5:53AM
    Chintak Chhapia
    40 · 5% · 1470
  • Please mention version of SQLServer as this will not work in SQLserver 2000

    commented on Dec 31 2010 7:11AM
    Hima
    31 · 6% · 1776
  • Really wonderful! Happy New Year to you and yours!

    commented on Dec 31 2010 7:40AM
    Nakul Vachhrajani
    4 · 36% · 11635
  • As Usual, Another TSQL magic from Madhivanan!

    commented on Dec 31 2010 8:18AM
    Jacob Sebastian
    1 · 100% · 32235
  • For SQL Server 2000 and older try changing line 7 to:

    	select top 10 id as no from sysobjects
    
    commented on Jan 13 2011 3:12PM
    Cris
    194 · 1% · 242

Your Comment


Sign Up or Login to post a comment.

"Happy New Year from T-sql" rated 5 out of 5 by 1 readers
Happy New Year from T-sql , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]