Forum Replies Created

Viewing 15 posts - 3,586 through 3,600 (of 8,754 total)

  • RE: Question about how Lag function will work on Sql server 2012

    zahid.techk (5/14/2016)


    Hi All

    I have facing problem to display information like Lag function, but Lag is not working on sql server 2012,

    I want wo display data like tha...

    Month_NameTotal_Test ...

  • RE: Simple SQL challenge - who can solve

    TheSQLGuru (5/11/2016)


    Alan.B: You have escaped the primary performance problem of chewing through unnecessary rows of each month on the date dim table with the filtered index. Well done. That was...

  • RE: Read articles without requiring login

    Good stuff (literally) and thanks for the heads up Steve

    😎

  • RE: Are the posted questions getting worse?

    Jeff Moden (5/13/2016)


    jasona.work (5/13/2016)


    So at the Detroit SQL PASS meeting last night, got to put faces to the names of those shining beacons of SQL knowledge and all things pork...

  • RE: Read articles without requiring login

    I realize this is an old conversation but still valid, my thought is that in today's media marketing, freebies are considered a must, no carrot no catch in a way....

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (5/13/2016)


    For those who hadn't heard, THIS happened.

    Yay.

    EDIT: I should add I'm not trying to start a debate. I just wanted to pass along the news.

    Discrimination in any...

  • RE: Simple SQL challenge - who can solve

    Neeraj Pal (5/13/2016)


    This Query will Return current and Previous 12 month Start Date..

    ==========================================

    DECLARE @month int=0

    DECLARE @table TABLE (LastYearDate DATETIME)

    WHILE @month<12

    BEGIN

    INSERT @table

    ( LastYearDate...

  • RE: Split string and insert to table

    Quick suggestion

    😎

    DECLARE @cap2 TABLE

    (

    id int primary key,

    ten varchar(100) not null,

    SoCV varchar(100) not null

    )

    INSERT @cap2

    VALUES (1,'user 1|user 2|user...

  • RE: Tempdb 99% full

    coolchaitu (5/11/2016)


    Dear Experts,

    Tempdb is 99% full. I have read in Brent Ozar's website that we shouldnt be shrinking tempdb. Please let me know how to fix this.

    Suggest you add first...

  • RE: build dynamic sql query and execute

    etirem (5/11/2016)


    Hello All...need your help ,

    I have 2 db's(@DName1 and @DName2). Need to change the logical names of @DName1 to @DName2 names.

    Executing --Stmt_1 gives --Stmt_2 and then executing --Stmt_2 will...

  • RE: Simple SQL challenge - who can solve

    Alan.B (5/11/2016)


    I think my performance test proves that a calendar table is a viable high-performing alternative. In the end I would go with a tally table solution because of the...

  • RE: Simple SQL challenge - who can solve

    Eric M Russell (5/11/2016)


    TheSQLGuru (5/11/2016)


    Eric M Russell (5/11/2016)


    drew.allen (5/11/2016)


    Eric M Russell (5/11/2016)


    For what it's worth, this one can be paramaterized in terms of the number of dates returned, and it...

  • RE: New index not used but query slowed down

    Grant Fritchey (5/11/2016)


    Eirikur Eiriksson (5/11/2016)


    Grant Fritchey (5/11/2016)


    Without seeing the execution plans, I'd just be guessing.

    My guess is, you may have hit some bad parameter sniffing on the query that was...

  • RE: Index question

    GilaMonster (5/11/2016)


    Eirikur Eiriksson (5/10/2016)


    One could argue that 153000 userlookups indicates that other indices should be created, key lookup is quite expensive operation.

    Since key lookups are only ever done to the...

  • RE: New index not used but query slowed down

    Grant Fritchey (5/11/2016)


    Without seeing the execution plans, I'd just be guessing.

    My guess is, you may have hit some bad parameter sniffing on the query that was running fast previous to...

Viewing 15 posts - 3,586 through 3,600 (of 8,754 total)