Forum Replies Created

Viewing 15 posts - 16 through 30 (of 33 total)

  • RE: Get Domain

    Thank you Will try and test the performance

  • RE: Get Domain

    Yes after the @

  • RE: Using IN operator to find id exist or not

    Hi

    Try this way

    as my prev piece of code but only change the left join between the tables.

    CREATE TABLE #REV_BINDERS2

    (

    [OFFICE_ID]...

  • RE: Performance issue with subquery containing row_number and partitioning

    Hi

    Try a cover index

    something in the line of

    CREATE NONCLUSTERED INDEX Idx_CoverIndex ON InvoiceEquipment (EquipID,InvoiceDate DESC) inlcude (Amount,Type)

    Kind Regards

  • RE: Using IN operator to find id exist or not

    HI

    maybe this will also help. Thou not an IN operator but effective

    Kind Regards

    CREATE TABLE #REV_BINDERS2

    (

    [OFFICE_ID] [INT] NOT NULL

    ...

  • RE: SSRS - Formatting a multi-value field??

    Hi Luis

    Thanks for the link. Will have a look at it.

    Regards Daniel

  • RE: Get next 2 weeks

    Eirikur Eiriksson (8/2/2014)


    Daniel Matthee (8/2/2014)


    Eirikur Eiriksson (8/2/2014)


    CONVERT(INT,P.[20140728]) + CONVERT(INT,P.[20140804])

    Hi Eirikur

    I dont fully agree that it has the same flexibility.

    For example in my suggestion i can create any date...

  • RE: Multiple row update query

    GilaMonster (8/2/2014)


    I'm saying that's a pretty extreme statement to make, claiming that all subqueries and derived tables cause TempDB overhead (which, btw, would not show as physical reads, they'd show...

  • RE: Get next 2 weeks

    Eirikur Eiriksson (8/2/2014)


    CONVERT(INT,P.[20140728]) + CONVERT(INT,P.[20140804])

    Hi Eirikur

    I dont fully agree that it has the same flexibility.

    For example in my suggestion i can create any date range as a integer...

  • RE: Multiple row update query

    Hi

    Please help me if I am wrong. But usually when i do an inner select and look at sql monitor the physical reads, or even sp_who2 active the amount of...

  • RE: Get next 2 weeks

    Hi

    Yes normalize should work but if you can get your dates to be more like and integer value like 20140707 = 7-jul-14

    then the following idea might work better for you.

    CREATE...

  • RE: SSRS - Formatting a multi-value field??

    Hi

    I recommend create a nice function on your database.

    CREATE FUNCTION [dbo].[getParmsFromString]

    (@String VARCHAR(MAX))

    RETURNS @Parms TABLE

    (

    ...

  • RE: Parsing a String in SSRS

    So this can easily be done in SQL.

    But since this is string parsing it will be intense on the sql server. So i recommend to rather change the way the...

  • RE: CASE question

    Hi

    What about something like this.

    declare @inc int = 0

    create table #BATCH (

    Number int,

    BATCH varchar(2)

    )

    while (@inc < 36000)

    begin

    insert into #BATCH

    select @inc,

    case

    WHEN @inc BETWEEN 10000 AND 10999 THEN 'A' ...

  • RE: Multiple row update query

    Hi

    Although the above mentioned queries will work I have learned not to do Inner select as this creates over head on the tempdb on the server.

    An inner select is sql...

Viewing 15 posts - 16 through 30 (of 33 total)