Forum Replies Created

Viewing 15 posts - 361 through 375 (of 1,250 total)

  • RE: Best way to publish 2012 SSRS reports on the web

    Right click the solution name at the top of your solution explorer tab. Select properties and under the general configurations node there is on the right window pane a section...

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

  • RE: Where to place WITH (NOLOCK) ?

    BOR15K (12/30/2016)


    Chris Harshman (12/30/2016)


    BOR15K (12/30/2016)


    ...I am aware of the dirty data and in this case there will be no update of the data within the selected range, hence I want...

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

  • RE: Multiple Joins on Fact Table

    Wouldn't you just join on brokerKey (fact table)= brokerAccountKey (mapping table)? Try keeping the columns names consistent on multiple tables when representing the same column.

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

  • RE: Multiple Joins on Fact Table

    kevin.obrien 66193 (12/19/2016)


    MMartin1 (12/14/2016)


    Quick answers,

    a) Creating a surrogate key should be a normal routine

    b) If there is no business ID (primary key usually) in your source data , try...

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

  • RE: Reporting Services From a Data warehouse - Bottleneck On Every Month

    One other idea I can suggest is to have the SSRS reports call a stored procedure instead of pasting all of the sql query in the query window. That can...

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

  • RE: Reporting Services From a Data warehouse - Bottleneck On Every Month

    subramaniam.chandrasekar (12/16/2016)


    hi ,

    Any Ideas please ?

    Can anyone help ?

    You have been presented with ideas. What have you you tried so far ?

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

  • RE: Confusion Over OR and And Operators

    MMartin1 (12/16/2016)


    Given a large table;

    a more potentially SARGable approach, and readable from my perspective is

    Declare @customers table (country varchar(2))

    Insert into @customers(country)

    values('UK'),('US'),('FR'),(NULL)

    Select*

    from@customers

    Except

    Select*

    from@customers

    wherecountry in ('US','UK')

    ;

    I should...

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

  • RE: Confusion Over OR and And Operators

    Given a large table;

    a more potentially SARGable approach, and readable from my perspective is

    Declare @customers table (country varchar(2))

    Insert into @customers(country)

    values('UK'),('US'),('FR'),(NULL)

    Select*

    from@customers

    Except

    Select*

    from@customers

    wherecountry in ('US','UK')

    ;

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

  • RE: Converting time - from "seconds after midnight"

    Lynn Pettis (12/12/2016)


    To repeat (emphasis mine):

    Jeff Moden (12/11/2016)


    ...

    From the movie, "War Games"...

    "A strange game. The only winning move is not to play."

    Have to emphasise the quote myself :-P...

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

  • RE: Confusion Over OR and And Operators

    drew.allen (12/14/2016)


    Matt Miller (#4) (12/14/2016)


    drew.allen (12/12/2016)


    SQLUSERMAN (12/10/2016)


    Suppose I want to find customers in the customers table who are not in the US or the UK.

    To me the query for the...

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

  • RE: conditional where clause

    ChrisM@Work (12/15/2016)


    Shekhu (12/15/2016)


    Check the below code, ISNULL function should help to resolve this.

    declare @var INT

    select top 10 * from tableName where ColumName= ISNULL(@Var,tableName)

    Actually it won't, it's the same problem....

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

  • RE: Number of weeks between two dates

    I'm with you there 🙂 . The question is a ambiguous as "week" can be interpreted differently. Still had to point out , for anyone who may be looking to...

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

  • RE: Number of weeks between two dates

    Jacob Wilkins (12/14/2016)


    MMartin1 (12/14/2016)


    James Tran (12/13/2016)


    Something like this will return the number of weeks and remaining days + remaining work days.

    CREATE FUNCTION [dbo].udfGetWeeksAndDays

    (

    @StartDate DATETIME

    ...

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

  • RE: Number of weeks between two dates

    James Tran (12/13/2016)


    Something like this will return the number of weeks and remaining days + remaining work days.

    CREATE FUNCTION [dbo].udfGetWeeksAndDays

    (

    @StartDate DATETIME

    ,@EndDate DATETIME

    )

    RETURNS...

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

  • RE: Number of weeks between two dates

    Seems like the OP got his answer to this old thread.

    Plus

    DATEDIFF(wk, @StartDate, @EndDate)

    Is cleaner and more readable, answers the one question posted here.

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

Viewing 15 posts - 361 through 375 (of 1,250 total)