Forum Replies Created

Viewing 15 posts - 1 through 15 (of 82 total)

  • Reply To: TSV

    I prefer pipe-delimited over tab out of habit, but the prevalence of commas inside data fields has made me utterly despise csv. Excel's poor handling of csv files certainly has...

  • Reply To: May the Fourth 2020

    I was thinking that a TIE Striker wasn't a thing until I looked again at "Klingon".

  • Reply To: Assignment of a value to a variable

    It has happened once before that identical answers were correct. People who picked the "wrong" correct answer were later credited.

  • Reply To: Choosing the Column

    I agree, CHOOSE and IIF both seem to be either special cases of CASE or linking to a reference table. Having a reference table is far easier to maintain than...

  • Reply To: It Just Works

    I started in Access too. Its SQL version of queries was a great assistance in learning to write queries in T-SQL, though the formatting is atrocious.

    Conversely, learning SQL made me...

  • Reply To: MIN is not giving me the lowest value

    I do not know if my method is faster or slower, but I would do it with a subquery:

    select m.lowest_id
    , p.first_name
    from dbo.person p join
    (select...
  • Reply To: The Costumed DBA

    A tester walks into work wearing an outfit.

    A tester walks into work wearing 2 outfits.

    A tester walks into work wearing an outfit and a lizard.

    https://twitter.com/sempf/status/514473420277694465?lang=en

  • Reply To: Printing Dates

    roger.plowman wrote:

    I think the question is broken, the correct answer is 'Jan 18 2019  8:23PM'

    🙂 

    That's what I got when I ran it, after assuming that the date mismatch was a...

  • Reply To: Printing the String

    Sean Lange wrote:

    Good question but imho the best answer was not on the list of choices. It would be better to use ORIGINAL_LOGIN() instead of USER_NAME().

    It seems to me that the...

  • Reply To: SQL Update Statement Awareness

    Alternatively, put a WHERE clause on the statement so it won't have unnecessary IO of updating rows that don't need to change.

  • Reply To: Exporting Stored Procedure Results to a Table

    You can also potentially pull the table information  from tempdb.information_schema.columns and build the CREATE script from that. More steps, but reasonably quick after you've done it a time or two.

  • Reply To: An Alert Philosophy

    Steve Jones - SSC Editor wrote:

    Changing monitoring intervals, or suppressing additional alerts, is something that needs to happen as well. Too easy to keep sending the same thing over and over. However, that's a...

  • Reply To: An Alert Philosophy

    This article reminds me of the alert fatigue that hospital staff (And fast food staff, it tends to be as much of a cacophony behind the counter these days) are...

  • Reply To: Delete offline database

    Minor typo: "occures" should be "occurs".

     

    I had a suspicion on seeing that question that I would find an unpleasant surprise underneath. Good to know to check for the filename before...

  • Reply To: Preventing a SELECT

    Jeff Moden wrote:

    There IS an even more secure method but is well beyond the requirements of this question.

    Create a view with the columns or where criteria that you intend to provide...

Viewing 15 posts - 1 through 15 (of 82 total)