Pawel's profileOut of Space - Pawel Pot...PhotosBlogListsMore Tools Help

Blog


    February 27

    Factorial with CTE

    After some talks with Marek Adamczuk I've decided to try writing some common table expression evaluating factorials. The result is below.
     
    DECLARE @number tinyint
    SET
    @number = 33;
    WITH FactorialCTE AS
    (
    SELECT
    0 AS Number,
    CAST(1 AS decimal(38,0)) AS Factorial
    UNION ALL
    SELECT
    FactorialCTE.Number + 1,
    FactorialCTE.Factorial * (FactorialCTE.Number + 1)
    FROM FactorialCTE
    WHERE Number < @number
    )

    SELECT
    Factorial
    FROM
    FactorialCTE
    WHERE
    Number = @number
    February 07

    Undocummented DBCCs on TechNet Poland

    There is the first part of my new article on TechNet Poland website. This article has title: "SQL Server 2005 - undocummented DBCC commands". Click link below to read the article.
     
    February 04

    WSS.pl has new modearator

    Last month I became a moderator on Windows Server Community website wss.pl. I am on of two supervisors of the SQL Server part of this website. It is a great honor to serve people visiting the site. I am also ready to be on duty for the next community site ITCore.pl.