Forum Replies Created

Viewing 15 posts - 1,441 through 1,455 (of 1,920 total)

  • RE: How to unzip the zip file through xp_cmdshell command

    You could also use 7-Zip from Sourceforge ; its as freeware compress/decompress utility that has GUI as well as command line abilities.

    Links : 7-zip offical site[/url]

    ...

  • RE: Problem with DATE

    To learn more about DATEPART function, click on the following link.

    Link : DATEPART (Transact-SQL)

    hope this helps you!

    C'est Pras!

  • RE: Problem with DATE

    Subhro, try this

    use IRISDW_AF;

    select Container_Id,End_Journey_Date

    from dbo.Container

    where datediff(day,day('1/29/2009 12:00:00 AM'),day(End_Journey_Date))<=5

    -- Filter with Datepart(year)

    AND DATEPART(yy,'1/29/2009 12:00:00 AM') = DATEPART(yy,End_Journey_Date)

    ;

    Tell us if that helped you!

  • RE: Opening IE With Sqlserver code

    Write a CLR proc and open up IE.. in the CLR proc u can utilize the Process class and run this code

    start iexplore.exe this code is to open IE from...

  • RE: Problems calculating percentage - help with query

    You need to cast the COUNT to DECIMAL/NUMERIC ;

    try this:

    SELECT ColumnA, COUNT(ColumnB) AS TotalApps ,

    (100.00 *...

  • RE: Age

    WayneS (5/26/2010)


    ColdCoffee (5/26/2010)


    You can use DATEDIFF function:

    LIke:

    SET DATEFORMAT DMY

    SELECT DATEDIFF(yy,'21-03-1985',GETDATE()) AGE

    Since DateDiff returns the number of boundaries crossed in comparing these two dates, it will report the wrong age if...

  • RE: Age

    You can use DATEDIFF function:

    LIke:

    SET DATEFORMAT DMY

    SELECT DATEDIFF(yy,'21-03-1985',GETDATE()) AGE

  • RE: Elegant way to change field to "Identity" type?

    WayneS (5/26/2010)


    Paul White NZ (5/26/2010)


    Is the current column defined as NOT NULL? If so, there is a neat trick that makes it almost instant regardless of the number of...

  • RE: A column contains both CHAR and INTEGER

    Kalyan, no, ISNUMERIC cannot be used as a detector to check if a column contains only numerics

    Try this:

    DECLARE @t TABLE

    (

    YCol varchar(10) NOT...

  • RE: TSQL Programming Book

    elutin (5/26/2010)


    I prefer "Three Men in a Boat (To Say Nothing of the Dog)" by Jerome K. Jerome.

    Oops, it is nothign to do with T-SQL, sorry.

    😀

    😛 :hehe:

  • RE: TSQL Programming Book

    One of the excellent book:

    Inside Microsoft SQL Server 2005: T-SQL Querying by Itzik Ben-Gan

    Link : http://www.amazon.com/Inside-Microsoft-SQL-Server-2005/dp/0735623139

  • RE: Set a variable equal to an Execute?

    Wow, nice that you understood the concept and appreciating it! Cool! 😎

    Cheers, Ken!

  • RE: SQL Subtraction - Seperate rows

    I would also recommend you to go through the following article on how to post readily consumable data

    CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    Hope the code above this...

  • RE: SQL Subtraction - Seperate rows

    Hi there, here is a piece of code that wll do what you wanted:

    As you are first time poster, i took the onus on my side to create DDLs for...

  • RE: QUERY T-SQL

    I echo skcadavre here ; Long verbal questions wont attract anyone; but when u post the following, i tell you, you will receicve excellent tested code back:

    so, Please post;

    1. Table...

Viewing 15 posts - 1,441 through 1,455 (of 1,920 total)