Forum Replies Created

Viewing 15 posts - 301 through 315 (of 1,241 total)

  • RE: Sum for year within Tablix

    cmw 66135 - Friday, November 17, 2017 8:25 AM

    Thanks MMartin. Sadly that went right over my head. Sorry im very green at SQL reporting...

    ----------------------------------------------------

  • RE: Sum for year within Tablix

    In your data set definition > 
    Something like this will help get you going : This just to illustrate the concept. I am using an older version of the adventure...

    ----------------------------------------------------

  • RE: Exporting Custom Messages from Sys.Messages

    I suppose that doing this in the following fashion


    DECLARE @commandText VARCHAR(8000)=''
    SELECT @commandText = @commandText +char(10) +char(13)+
       'EXEC master.sys.sp_addmessage @msgnum = ' + CAST(message_id+10...

    ----------------------------------------------------

  • RE: problem with group by query

    Just to cross this item out, you are sure that your 'O' is not a'0' instead?

    ----------------------------------------------------

  • RE: SQL Query (Merge Statement) Help

    Thanks!

    ----------------------------------------------------

  • RE: PURGING DATA

    In my dimDate table I like to have a DATE type to represent the weekStart, monthStart, quarterStart, etc...

    With this design in place I can easily handle such a...

    ----------------------------------------------------

  • RE: PURGING DATA

    Can you see my previous post and let me know if this is what you are trying to do? It appears you are, and from what I see you are...

    ----------------------------------------------------

  • RE: Loading partitioned table incrementally using SSIS

    Referring to figures 7 and 8 ... I also wonder what someone would expect from the use of the NOLOCK operator. It is not an optimizing technique.

    ----------------------------------------------------

  • RE: PURGING DATA

    I definitely think there is a language barrier here as I am still hung up on 

    I have an assignment, to Purging data, with conditions:

    ----------------------------------------------------

  • RE: SQL Query (Merge Statement) Help

    Use a CTE to filter your target table.

    Is the CTE able to make use of an appropriate index in this case? I am guessing yes...

    ----------------------------------------------------

  • RE: latest timestamp multiple databases

    I cant imagine 70 databases/iterations would be a burden on a cursor. 
    I have not tested this but something looking like >

    use master
    go

    ----------------------------------------------------

  • RE: Loading partitioned table incrementally using SSIS

    Not sure that you need a dynamic sql statement in Ole db source adapter, via a variable. To use something like a date variable I can simply construct my query...

    ----------------------------------------------------

  • RE: Curious Case of SUM Function

    Try 

    CREATE TABLE #CuriousCaseOfSum(val DECIMAL(18,1) NOT NULL)

    INSERT INTO #CuriousCaseOfSum(val)
    VALUES (1),(2),(3)

    DECLARE @var DECIMAL(12,0)=12.6
        SELECT    @var, Sum(val) , @var+SUM(val)
        FROM    #CuriousCaseOfSum

    DROP TABLE...

    ----------------------------------------------------

  • RE: replacing hard coded value with column name fails the query

    The data element named “date_key” is absurd; a date is a unit of temporal measurement in a key is how a data element is used in a particular...

    ----------------------------------------------------

  • RE: Replicate Calculated Primary Key

    col1 int NULL
    ,col2 int NOT NULL IDENTITY (1,1)
    ,col3 AS COALESCE (col1, col2) PERSISTED NOT NULL

     

    Take a good look at your...

    ----------------------------------------------------

Viewing 15 posts - 301 through 315 (of 1,241 total)