Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 1,413 total)

  • Reply To: Trimming then adding text

    In this string the dash appears in the 33rd (or 32 starting from 0) position:

    xxxxxxx xxxxxxxxx : 123456 (xx) - xxxxxxx...

    In this string the dash appears in the 36th position:

    xxxxxxx...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Trimming then adding text

    Why not just look for the dash, "-"?

    IIF(InStr(Fields!my.Value,"-")=36, "Paris", "London")

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    ZZartin wrote:

    Why pick the first thing he said?  I chose the last thing!  He had pretty much the same conversation we're having and already made the distinction between testing to...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: using variables in for openrowset bulk update

    The code you posted has two lines that say: "fetch next from dbcursor into @zipname,@imageid" within the cursor loop.  Please try with only one fetch (at the end of the...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: using variables in for openrowset bulk update

    Hmm... Here's a segment of the code we're running in production:

    select @sql=
    'with history_cte as ( ' +
    'select ' +
    cast(@test_id as varchar(12)) + ' hf_id,...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    ZZartin wrote:

    Steve Collins wrote:

    chris geswein wrote:

    Not really. Saying that I don't think you understand, is not an ad hominem attack. I also didn't mean it as an insult, just trying to figure...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    chris geswein wrote:

    Not really. Saying that I don't think you understand, is not an ad hominem attack. I also didn't mean it as an insult, just trying to figure out where...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: More performant way to write this where clause

    Aha, gotcha.  I see what you mean about sometimes also.  Sometimes it matters even tho they're distinct.  Thank you.

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

      <li style="list-style-type: none;">

    1. Yes, I disagree. Based on your comments, I think you don't understand relational databases, or unit tests, or both.
      <li style="list-style-type: none;">

    1. See number 1.

    You may...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    [

    The same reason you unit test anything?  It's either the new development or it's something you're modifying.

    New development and modifications should be tested over and over until they work as...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    ZZartin wrote:

    Yes I would 100% disagree with that, every object in the database does not interact with every other object in the DB in some exponentially spirally level of complexity. ...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: More performant way to write this where clause

    Jonathan AC Roberts wrote:

    Sometimes

    They're distinct.  Is because performance?

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    Ah, ok. So the reason you may want to keep unit tests is if anything needs to change with your data model, you've already documented how things should work and...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    chris geswein wrote:

    In my opinion unit testing in a relational database is basically fruitless.  The whole idea is the data model is schema bound.  So what are you testing but only...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

  • Reply To: Is It Worth Writing Unit Tests?

    coolman02 wrote:

    David

    the non-SQL parts of our C# app are tested with a few unit tests and a lot of manual tests.

    We plan to reverse the quantity (unit testing first and...

    Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können

Viewing 15 posts - 1,366 through 1,380 (of 1,413 total)