Forum Replies Created

Viewing 15 posts - 1 through 15 (of 25 total)

  • RE: Comparison of SQL Login with SID

    how can I run query against all of the register server? can you please send me the query which can be run across all register servers?

    Thanks

  • RE: DATABASE level selection settings help

    Lowell (4/23/2015)


    the order by will not eliminate any rows with the query you gave;

    only the WHERE condition does; if you are using a different query than the one you posted,...

  • RE: DATABASE level selection settings help

    Lowell (4/23/2015)


    since there's an identity in the table, if you change hte order by to that column, do you get the data you want? it sounds like someone updated your...

  • RE: Need help on indexes

    I was just asking help :crying:

  • RE: Need help on indexes

    🙁 ok

  • RE: Need help on indexes

    please view my latest reply and help me please 🙁

  • RE: Need help on indexes

    Yah I know we have some redundant indexes which was not created by me but one of the person from development team have created those indexes using missing index DMVs...

  • RE: Need help on indexes

    Thanks for the reply Gila , please view the attached create index script of all these indexes , you can create them in any of your test db or at...

  • RE: Need help on indexes

    Yah, you are correct and thanks for the quick reply, these indexes were added to the one of our customer’s database that is having issue in performance in May. So,...

  • RE: Need help on SQL Query

    Lynn Pettis (6/28/2014)


    Give this a shot:

    declare @ProgamCodeIn nvarchar(10);

    set @ProgamCodeIn = N'STORE2';

    with baseitems as (

    select

    ipp.ItemID,

    ipp.ProgramID,

    p.Code,

    rn...

  • RE: Need help on SQL Query

    Lynn Pettis (6/28/2014)


    Okay, now using your sample data show us what the output should look like if the query runs correctly.

    Please view the attached file. My out put should be...

  • RE: Need help on SQL Query

    Lynn Pettis (6/28/2014)


    Have you tested the code that David Burrows posted above in this thread?

    yes I tested that code but its not working below is the result set I got...

  • RE: Need help on SQL Query

    SQLRNNR (6/27/2014)


    David Burrows (6/27/2014)


    SQLRNNR (6/27/2014)


    Is this good enough to save the OP from getting fired?

    In real db there are only two programs STORE and STORE2 so you should forget...

  • RE: Need help on SQL Query

    In real db there are only two programs STORE and STORE2 so you should forget about the other two i.e. UNI and UNI2.

    as I told that I will put the...

  • RE: Best way to write stored procedures

    HI

    Is there a better way to write the following ?? Please view the below comments I have received in one of the stored procedure

    Plenty wrong. For starters, this

    where cast(convert(varchar(10),PostingDate,110) as...

Viewing 15 posts - 1 through 15 (of 25 total)