Forum Replies Created

Viewing 15 posts - 2,971 through 2,985 (of 3,500 total)

  • RE: Max Date - 1 day

    Good to hear!

    You're welcome =)

  • RE: ssrs running multiple reports

    In a SSRS 2008 report, I will have between 1 to 30 different small ssrs reports that will be executed in a specific order. All the reports will pass the...

  • RE: Grouping Dates in a Table by 4 weeks at a time

    What's the rule about the 52 weeks? Do they start at the first of the year, or is there some other rule for that?

  • RE: Grouping Dates in a Table by 4 weeks at a time

    I figured that since he was new, I would be nice and show him how to set up the problem so that people could help...

    to the OP - if ...

  • RE: Max Date - 1 day

    Turns out I did that same thing when I first tried it... You have to wrap the units in double quotes, because this is .NET, not SQL (so the rules...

  • RE: Approach to use existing report with new data

    If I use the same column names in my underlying database tables, is it possible to use them in an existing report to refresh data for new quarter without wiping...

  • RE: ssrs 2008 link to other ssrs

    I would like to call other reports based upon selections that users make and/or possibly calling the other reports based on values stored in a table in sql server 2008...

  • RE: Grouping Dates in a Table by 4 weeks at a time

    Does this work for you? (Seems not).

    Set up some tables/data for folks to use...

    USE TempDB;

    GO

    CREATE TABLE #WorkHours (

    ID int

    , PersonnelNo int

    , WeekEnding date

    , WorkedHours decimal(4,2)

    , ContractHours decimal(4,2)

    );

    Insert some...

  • RE: How to Reduce Column Months

    Thanks, Sean... that's what I was thinking!

  • RE: How to Reduce Column Months

    Okay, you can filter your dataset so that you can only see the current year.

    SELECT <column list>

    FROM <table>

    WHERE YEAR([SomeDate])=YEAR(GetDate())

    (Not sure that's going to perform well, but one problem at a...

  • RE: Need to find the autogrowth rate of all db transaction logs

    I would think you could use this article[/url] and use a job to write daily to a table... You could just need to grab the date the records were...

  • RE: How to Reduce Column Months

    I must be getting better at this! <g>

    I don't think you need most of this in your query:

    SELECT d.name, a.dealer_code, b.last_name, b.city, b.state, b.phone

    , COUNT(CASE WHEN MONTH(c.Funded_date) = 1 THEN...

  • RE: Finding Breaks In Key Values

    If you're using SQL 2012, you can use LAG:

    SELECT Category

    , Code AS CurrCode

    , LAG(Code) OVER (ORDER BY Category, StartDate) PrevCode

    , CASE WHEN LAG(Code) OVER (ORDER BY Category, StartDate)<>Code THEN 'Changed'...

  • RE: How to Reduce Column Months

    Sounds like you're using a tablix instead of a matrix, which it sounds like what you should be using. If you did this with a matrix, then the month...

  • RE: How to use tablix (or SSRS) to group by unique ID, sort asc, and take top N?

    Yes. Instead of just this:

    ;WITH CTE AS

    (SELECT

    row = ROW_NUMBER() OVER(PARTITION BY custID ORDER BY (Geography::Point(geo.latitude, geo.longitude, 4326).STDistance(geography::Point(prp.latitude,prp.longitude, 4326))/1609.34) asc),

    ld.custID

    prp.property_name,

    distance_miles = Geography::Point(COALESCE(geo.latitude,0), COALESCE(geo.longitude,0), 4326).STDistance(Geography::Point(COALESCE(prp.latitude,0),COALESCE(prp.longitude,0), 4326))/1609.34

    FROM

    ...

    You add a parameter...

Viewing 15 posts - 2,971 through 2,985 (of 3,500 total)