Forum Replies Created

Viewing 15 posts - 571 through 585 (of 3,544 total)

  • RE: ssrs expression to find count of records which falls beween two dates

    Try

    =Sum(IIf(DateDiff(DateInterval.Day,Fields!SubmittedDate.Value,Today)<=30,1,0))

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: ssrs expression to find count of records which falls beween two dates

    Your conditions look wrong, you cannot have a date that equals today and is less than 30 days ago!

    You can use sum and iif in an expression to count rows,...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Formatting a date value in Reporting Services

    marksquall (1/29/2015)


    Then on the left side there is a choice to Sort By, it is a drop down button in which you could choose your field named [date_ordered].

    date_ordered is a...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How do i update an identity column with identity value?

    dwain.c (1/28/2015)


    David - that's a very clever alternative!

    Thank you :blush:

    It is very annoying that you can use ALTER COLUMN to do everything except add or remove IDENTITY 🙁

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Formatting a date value in Reporting Services

    Change your T-SQL

    ORDER BY CAST(date_ordered as date) DESC

    (or cast to datetime of pre 2005)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How do i update an identity column with identity value?

    If the table only contains the 50 rows you inserted or you want to reset all the ID values

    ALTER TABLE DROP COLUMN ID

    GO

    ALTER TABLE ADD ID int IDENTITY(1,1)...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Please explain what this Trigger query does

    Jeff Moden (1/27/2015)


    David Burrows (1/26/2015)


    Well done Jeff 🙂

    Please clarify

    You are auditing 'what was' and not 'what is'

    'Insert' is the first audit row or the main row if no audit exists

    and...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: IF statement with the Select

    As already pointed out your logic is flawed

    e.g. One interpretation of the flawed logic is to find all combinations of VALUEA in both tables where they do not match

    SELECT TABLEAVALUEA,TABLEBVALUEA,TABLEBVALUE

    FROM...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Help needed for very simple data manipulation

    I think this a case for using 'FOR XML' to concatenate the last two columns,

    however we will need the table DDL and insert statements to create the data in...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: UK Post code Area

    LEFT(Postcode,PATINDEX('%[^A-Za-z]%',Postcode+'0')-1)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (1/26/2015)


    GilaMonster (1/26/2015)


    Sean Lange (1/26/2015)


    Jack Corbett (1/26/2015)


    Sean Lange (1/23/2015)


    Oh lordy...I just handed a stored proc and was asked advice on how to make it faster. The proc...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Please explain what this Trigger query does

    Well done Jeff 🙂

    Please clarify

    You are auditing 'what was' and not 'what is'

    'Insert' is the first audit row or the main row if no audit exists

    and this needs to be...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to repeat the same row combination?

    WITH cte1 (CustomerID,MonthID,RSCID,Flag1,Flag2,Flag3)

    AS (

    SELECTd.CustomerID,d.MonthID,d.RSCID,d.Flag1,d.Flag2,d.Flag3

    FROMMyData d

    UNION ALL

    SELECTd.CustomerID,d.MonthID-n.N,d.RSCID,d.Flag1,d.Flag2,d.Flag3

    FROMMyData d

    CROSS JOIN (SELECT 1 AS [N] UNION ALL SELECT 2 UNION ALL SELECT 3 UNION ALL SELECT 4) n

    WHEREd.MonthID = 309

    ),

    cte2 (CustomerID,MonthID,RSCID,Flag1,Flag2,Flag3)

    AS (

    SELECTd.CustomerID,d.MonthID,d.RSCID,d.Flag1,d.Flag2,d.Flag3

    FROMcte1 d

    UNION...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: ID or Id

    My databases are CI so I don't care 😛

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Reports Deployment to different Servers

    I'm on 2008R2 and I set my project properties for Debug/Release configurations for dev and prod respectively.

    When I want to deploy I select Build/Configuration Manager from the menu and select...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 571 through 585 (of 3,544 total)