Forum Replies Created

Viewing 15 posts - 4,246 through 4,260 (of 5,109 total)

  • RE: Expression treating 0 the same as Null help

    Edit: Misunderstood, sorry.  Can your incomes have a value lower than 0? For example, couldyou instead do:
    =CountDistinct(IIf(IIf(IsNothing(Fields!Income.Value), -1, Fields!Income.Value) = 0, Fields!ClientID.Value, Nothing))

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Why is restoring a system database cross server a bad idea?

    Thanks Perry, but I think you've missed the point of post. The remote server is not on site, nor online. I cannot sync to something, if that something isn't accessible.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SSRS EXPRESSION TO USE IN REPORT HEADER

    Maybe:
    ="FROM " & FORMAT(DATEADD("M", 0 - Parameters!MONTHS.Value, DATEADD("M", DATEDIFF("M", "01/01/2000", TODAY()), "01/01/2000")), "MM/dd/yyyy hh:00 tt")
    Note this will always round to the start of the month, at midnight. So,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Why is restoring a system database cross server a bad idea?

    Perry Whittle - Monday, February 13, 2017 8:22 AM

    If this is what you wish to do then by all means do it....

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Why is restoring a system database cross server a bad idea?

    Thanks John.

    The server will be rebuilt exactly as it is now. Same SQL version (down the the KB), same Windows version, should even be the same hardware. Instance...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: SQL 2000 to 2014 Restore

    On the note of "gotchas", as Gail pointed out there are a lot of changes from 2000 to 2016. MSDN does list all the Breaking changes from version to version,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Convert decimal to percentage and percentage to decimal

    SELECT CONVERT(decimal(8,4),REPLACE(@B, '%','')) / 100;
    --Or, if you want ANSI SQL
    SELECT CAST(REPLACE(@B, '%','') AS decimal(8,4)) / 100;

    Edit: Best practice, store your Percentage values as decimals,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause

    Grouping does exactly that, groups the data. Thus, in your SQL above it will given you the maximum date for each individual group you have defined ( l.sys_loc_code,...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: charindex issue

    I, too, have no idea what you mean. If, however, you have additional requirements, then do please let us know(with some context). I'm sureone of us will be able to...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: charindex issue

    If you want to get the value '80' from 'APP4005673452-45580' why not use RIGHT('APP4005673452-45580', 2)?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Help with SQL query

    There's no DDL or sample there, so the above won't help us help you. Check the link in my signature.

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Help with SQL query

    Can you provide us with some DDL and (obscured) sample data please? We have little idea from your post what your structure looks like so giving an answer for your...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Forum User Post Levels

    GilaMonster - Friday, February 10, 2017 3:19 AM

    Last time I checked it was ~46k points. Where the hell did 3000 come from?

    New...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Are the posted questions getting worse?

    Sean Lange - Thursday, February 9, 2017 1:07 PM

    Brandie Tarvin - Thursday, February 9, 2017 11:47...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Forum User Post Levels

    Sean Lange - Thursday, February 9, 2017 12:58 PM

    Looks Gail and Jeff are headed into new territory shortly. They are both (especially...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 4,246 through 4,260 (of 5,109 total)