Forum Replies Created

Viewing 15 posts - 4,126 through 4,140 (of 8,753 total)

  • RE: Are the posted questions getting worse?

    Phil Parkin (12/29/2015)


    Grant Fritchey (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    I really appreciate the effort of those who write the articles posted on this site but sometimes the quality seriously suffers from the absence...

  • RE: Get Set For Speed

    Tom Staab (12/29/2015)


    Eirikur, I completely agree about the month formatting. That kind of thing is definitely not preferable. It was only done to try to make the output the same...

  • RE: Are the posted questions getting worse?

    GilaMonster (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    I really appreciate the effort of those who write the articles posted on this site but sometimes the quality seriously suffers from the absence of technical review...

  • RE: Are the posted questions getting worse?

    GilaMonster (12/29/2015)


    BrainDonor (12/29/2015)


    Eirikur Eiriksson (12/29/2015)


    I really appreciate the effort of those who write the articles posted on this site but sometimes the quality seriously suffers from the absence of technical...

  • RE: Get Set For Speed

    Tom Staab (12/29/2015)


    Thanks for the response, Eirikur. You are correct that I missed the TRUNCATE with the set solution. I'll look into correcting that later today. Regarding your 3 points...

  • RE: Are the posted questions getting worse?

    I really appreciate the effort of those who write the articles posted on this site but sometimes the quality seriously suffers from the absence of technical review and the lack...

  • RE: Are the posted questions getting worse?

    djj (12/28/2015)


    Ed Wagner (12/25/2015)


    Brandie Tarvin (12/25/2015)


    Eirikur Eiriksson (12/24/2015)


    Brandie Tarvin (12/24/2015)


    Oh, has anyone stayed at a Hyatt recently?

    He he, cash only:-D

    😎

    I'm genuinely curious how you manage that when all the hotels...

  • RE: Get tables size info from all databases from sql server

    Quick solution

    😎

    USE master;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'tempdb.dbo.temp_result') IS NOT NULL DROP TABLE tempdb.dbo.temp_result;

    CREATE TABLE tempdb.[dbo].[temp_result]

    (

    [DATABASE_NAME] [nvarchar](128) NOT NULL

    ,[TableName] [sysname] ...

  • RE: Get Set For Speed

    Thank you Tom for this piece!

    😎

    After reading it I do have few concerns about the findings:

    1. The execution times suggest that a covering index for the aggregation is in place,...

  • RE: query for datetime

    charipg (12/28/2015)


    Hi,

    I need to set run time(dynamic) values for Startdate and Enddate in below query

    Enddate should be currentdate and Startdate should be minus 7 days of...

  • RE: Number VS Letter

    Forgot to post the implementation of the "digits only" logic as a subquery without the using a function, here is one that fits the previously posted test harness. This code...

  • RE: Covert columns to rows

    Quick solution

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    SELECT

    X.[DATABASE]

    ,X.[PARAMETER]

    ,X.[VALUE]

    FROM sys.databases SDB

    CROSS APPLY

    (

    ...

  • RE: Another XML explicit problem

    Quick suggestion, use FOR XML PATH rather than EXPLICIT

    😎

  • RE: Number VS Letter

    ScottPletcher (12/28/2015)


    I'd at least compare the performance of the straightforward brute-force method:

    The Chuck Norris/Brute-force method is many times slower apart from other limitations such as input length. For certain this...

  • RE: Get two sales item code exclusively from invoice

    Luis Cazares (12/28/2015)


    A small correction from Eirikur's code and two additional options.

    SELECT

    SI.invno

    FROM dbo.TBL_SALES_ITEMS SI

    WHERE SI.SIC IN ('111','222')

    GROUP BY SI.invno

    HAVING COUNT( DISTINCT SI.SIC)...

Viewing 15 posts - 4,126 through 4,140 (of 8,753 total)