Forum Replies Created

Viewing 15 posts - 2,086 through 2,100 (of 10,144 total)

  • RE: SP took too much time for executing

    SQL Galaxy (10/7/2015)


    HI.

    I have verified at DB level for Index farg and statistics are normal but still execution take long time to completed.

    Actual Execution plan does not suggested any missing...

  • RE: Agent job slow on first run

    tindog (10/6/2015)


    ChrisM@Work (10/6/2015)


    Perhaps the data which the SSIS package interacts with is not in cache the first time it's run.

    I'm surprised it takes so long for so few rows. What...

  • RE: how to select multiple rows delimited with comma

    DROP TABLE #Hierarchy

    CREATE TABLE #Hierarchy (ID VARCHAR(20), [Description] VARCHAR(20), ParentID VARCHAR(20), [Level] CHAR(1))

    INSERT INTO #Hierarchy (ID, [Description], ParentID, [Level])

    SELECT 'B.01','Parent 1',NULL,'H' UNION ALL

    SELECT 'B.01.01','Parent 1.1','B.01','H' UNION ALL

    SELECT 'B.01.01.01','Parent 1.1.1', 'B.01.01','H'...

  • RE: Agent job slow on first run

    Perhaps the data which the SSIS package interacts with is not in cache the first time it's run.

    I'm surprised it takes so long for so few rows. What exactly does...

  • RE: Query on grouping data on weekly basis

    sushil_dwid (10/6/2015)


    Hi ,

    I have query on grouping data on weekly basis..

    1. Week should start from Monday to Sunday

    2. It should not consider current week data(suppose user clicks on...

  • RE: convert rows to columns in query

    elham_azizi_62 (10/5/2015)


    dear J Livingston.

    I mean dynamic generating columns.in fact if my column is null,column isn't shown.

    This only makes sense if the entire column is NULL. Think about it. What...

  • RE: This beautiful problem, which I call “impossible”

    Here's another method which begins with Ben's logic but returns 22 rows, same as the last solution I posted:

    ;WITH Matrix AS (

    SELECT

    x,

    y,

    s = x + y,

    p =...

  • RE: This beautiful problem, which I call “impossible”

    Hi Ben

    I don't get a single value for this puzzle, but about 22 possible values. Here's the query:

    ;WITH Matrix AS (

    SELECT

    x,

    y,

    s = x + y,

    p = x...

  • RE: DMV's to identify the performance

    ramyours2003 (10/5/2015)


    how to trouble shoot the performance of sql by suing the dmv's in sql 2012/14

    Begin by reading these:

    David Durant; Stairway to Indexes. A series of well-written articles to take...

  • RE: Are the posted questions getting worse?

    TomThomson (10/3/2015)


    ChrisM@Work (10/1/2015)


    David Burrows (10/1/2015)


    Many many moons ago when I frequented London pubs it was either RamRod and Special or 80/- Heavy

    Gosh David you must be an old git too!

    I...

  • RE: Help with query

    Hi Sharon

    To help us to help you, can you please set up a data script? You will want to include a minimum of two patients and a minimum of three...

  • RE: Conditional Join between two tables

    A third possible solution:

    SELECT

    ta.cola1,

    ta.cola2,

    ta.cola3,

    colb1 = COALESCE(tb1.colb1, tb2.colb1, tb3.colb1),

    colb2 = COALESCE(tb1.colb2, tb2.colb2, tb3.colb2),

    colb3 = COALESCE(tb1.colb3, tb2.colb3, tb3.colb3),

    colb4 = COALESCE(tb1.colb4, tb2.colb4, tb3.colb4)

    FROM dbo.tabA ta

    LEFT JOIN dbo.tabB tb1 ON tb1.colb1 = ta.cola1

    LEFT JOIN...

  • RE: how do I fine tune this query

    mw112009 (10/2/2015)


    Let me start fresh here....BTW-- I commented out the first query

    Lets forget the first query.. That takes only taking 90 milliseconds.. Ignore that for now.

    This is what is taking...

  • RE: how do I fine tune this query

    mw112009 (10/2/2015)


    Time taken by first query = Anywhere from 13 to 52 milli seconds. ( I hit the execute button a several times )

    Also the hinstp has only 479...

  • RE: how do I fine tune this query

    mw112009 (10/2/2015)


    Need some help here... I am new to the finetuning business..

    I have attached the stored proc code...

    The entire stored proc gets run under 3 seconds.. I am in...

Viewing 15 posts - 2,086 through 2,100 (of 10,144 total)