Forum Replies Created

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

  • RE: Select Drillthrough Target at runtime?

    Report Properties | Code

    looks promising

    Maybe i can get a embedded VisualBasic challenge/response thing to work nicely

  • RE: Select Drillthrough Target at runtime?

    Letting the target report decide what to display could be a useful approach. Perhaps subreports are not quite the way to go, since all subreport queries get run regardless and...

  • RE: Select Drillthrough Target at runtime?

    Thanks Koen,

    I was hoping not to write too much code, but perhaps the URL option is where I'll end up.

    One thing about using an expression for the target report name........

  • RE: Sales puzzle

    I was not proposing that the WHERE and the ORDER BY were cooperating in some way to get the 3 values of the result. Those 3 values match the 3...

  • RE: Sales puzzle

    I would have thought the "order by" clause is absoutely necessary to guarantee a match to the sequence supplied as the answer. There is no implicit row order involved in...

  • RE: Calculate weekend

    Thanks Lynn, got it. Safer is Better,

  • RE: Calculate weekend

    YYYYMMDD is in fact the Basic date format proposed by ISO8601.

    YYYY-MM-DD is named the Extended format.

    Using either is OK by the standard.

  • RE: Tip: Resetting Identity Fields

    Shaking head. Moving on.

  • RE: Calculate weekend

    Given a Calendar table something like this one

    (I only allow NULLS for the contruction phase of the table)

    CREATE TABLE [dbo].[Calendar](

    [CalendarDate] [smalldatetime] NOT NULL,

    ...

  • RE: Calculate weekend

    Using Joe's Calendar table, this might provide a way for the kapil to get to the answer he wants.

    It removes the need to recursively check if you added another sunday...

  • RE: Calculate weekend

    Anyone know if Joe's query

    SELECT (C2.julian_business_nbr - C1.julian_business_nbr)

    FROM Calendar AS C1, Calendar AS C2

    WHERE C1.cal_date = '2007-04-05',

    AND C2.cal_date = '2007-04-10';

    causes a cross join before the complete...

  • RE: Tip: Resetting Identity Fields

    Maybe I'm missing something here but why do you have an Identity column that you can abritrarily change the value of?

  • RE: Print Text Month Calendar

    Hi Bernabe,

    Nice idea if you have the need.

    I was thinking of a less procedural approach and came up with this.

    Given a "Calendar Table" with the following definition

    CREATE TABLE [dbo].[Dates](

    [CalendarDate] [smalldatetime]...

  • RE: Sorting Months By Number (SQL Spackle)

    After creating a clustered index on the Months.Monthname (ref my first post) and rearranging the Select as follows, I get about the same performance as Jeff's original select.

    SELECT Amount,...

  • RE: Sorting Months By Number (SQL Spackle)

    Thanks for the pointers Jeff.

    I'll SARG and test again

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