Forum Replies Created

Viewing 15 posts - 76 through 90 (of 123 total)

  • Reply To: Desktop or Laptop for Remote Work

    Having a company laptop has revolutionised my work.

    It's a decent i7 Thinkpad with (only) 8GB ram and SSD disk, and plenty speedy. We have a Cisco VPN which connects automatically...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Why aren't the backups working?

    I've no experience with TFS (fortunately?), but have you had a poke around in Maintenance Plans and SSIS? Has it done something there to handle backups, which might give you...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: NPI Data

    Jeff Moden wrote:

    smattiko83 wrote:

    Thanks again for all your help. Did the sample look ok?

    A cursory glance says it looks fine.  I didn't do a deep dive on it.

    I'm shocked!! A CURSORy...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Calculate aging between two date fields excluding weekends and holidays in SQL

    Jason A. Long wrote:

    david.edwards 76768 wrote:

    Jason, Jeff I like that 🙂

    I need to use tally tables more, ever since I found out about them, but have been dallying with my tallying, as we're...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Calculate aging between two date fields excluding weekends and holidays in SQL

    Jason, Jeff I like that 🙂

    I need to use tally tables more, ever since I found out about them, but have been dallying with my tallying, as we're getting all...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Calculate aging between two date fields excluding weekends and holidays in SQL

    Not a complete answer to the OP's question, because it doesn't need the "IsWeekend" field or take into account Holidays, but I thought I'd join the discussion with this, if...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Indexed views

    Shame. I guess converting a lot of those would be a huge development task 🙁

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Indexed views

    Just an idea (caveat, not had the time it would need to totally get my head around all that code....) would the end use allow you refactor as a stored...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Isnull in a Where Clause

    Steve Collins wrote:

    david.edwards 76768 wrote:

    Yup, of course NULL does not equal NULL, but the fldinfo cannot be NULL (confirmed by OP).

    So presumably @Parameter is optional and can be NULL. In which case...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Isnull in a Where Clause

    Steve Collins wrote:

    david.edwards 76768 wrote:

    Using

    WHERE @parameter IS NULL OR fldinfo = @parameter

    You are comparing against a single value

    It's not the same query as the one the OP posted.  NULL does not equal...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Isnull in a Where Clause

    Luis

    You have the same column on the left and right of the equality

    WHERE  fldinfo=ISNULL(@parameter,fldinfo)

    If @parameter is null it's comparing every row to itself.

    Using

    WHERE @parameter IS NULL OR fldinfo = @parameter

    You...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Isnull in a Where Clause

    Luis

    I see Scott beat me to it 🙂

    That's what I was going to suggest if you came back and said the parameter was optional. I'm guessing you meant optional rather...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: temp table performance in sql 2016

    Apologies if you have already checked the obvious, but you haven't mentioned it. Is the SQL version the /only/ difference?

    Is tempDB configured the same on both servers: separate, faster storage,...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Isnull in a Where Clause

    What are you trying to achieve?

    Is @parameter an optional parameter? Is tblInfo.fldinfo a NULLable column? Both?

    Certain functions on the right side of the equality do not necessarily always impact performance.

    For...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

  • Reply To: Sanity Check of (possibly) over-complicated query.

    kcecil,

    Thank you for taking the time to wade through that and reply.

    That nice simple approach to the problem as a whole has merit, if I'd thought of that at an...

    "Knowledge is of two kinds. We know a subject ourselves, or we know where we can find information upon it. When we enquire into any subject, the first thing we have to do is to know what books have treated of it. This leads us to look at catalogues, and at the backs of books in libraries."
    — Samuel Johnson
    I wonder, would the great Samuel Johnson have replaced that with "GIYF" now?

Viewing 15 posts - 76 through 90 (of 123 total)