Tag Archives: T-SQL

  1. A quick fix for a full identity column.

    Leave a comment

    September 21, 2016 by Kenneth Fisher

    A while back I wrote a post on everything I knew about identity columns. In it I mentioned the following: …
    Continue reading

  2. Using an ORDER BY in a view


    September 19, 2016 by Kenneth Fisher

    For many years it’s been a best practice to never put an ORDER BY in a view. The idea is …
    Continue reading

  3. RBAR vs Batch


    August 17, 2016 by Kenneth Fisher

    Many years ago Jeff Moden (of SQL Server Central fame) came up with the concept of RBAR. Row-By-Agonizing-Row. At it’s …
    Continue reading

  4. Azure: What’s the difference between SQL Database and SQL Server?


    August 9, 2016 by Kenneth Fisher

    If you want to blog T-SQL Tuesday is a great way to get started. On the first Tuesday of each …
    Continue reading

  5. What’s the difference between LEFT and RIGHT OUTER JOINs?

    Leave a comment

    August 3, 2016 by Kenneth Fisher

    A DBA walked into a bar, saw a couple of tables, and asked “Can I JOIN you?” There are several …
    Continue reading

  6. Using impersonation to allow a task without granting the required permission.


    August 1, 2016 by Kenneth Fisher

    I use impersonation on a regular basis for a number of different tasks. This one is pretty basic but can …
    Continue reading

  7. Finding, disabling and enabling foreign keys


    June 29, 2016 by Kenneth Fisher

    Foreign keys are a classic method of enforcing RI (Referential Integrity). Unfortunately though, they can get in the way if …
    Continue reading

  8. Perfectly Placed Parentheses


    June 27, 2016 by Kenneth Fisher

    Like many other programming languages T-SQL uses parentheses () for a number of tasks. To help determine precedence, function calls …
    Continue reading

  9. Comparing the contents of two tables Redux

    Leave a comment

    June 8, 2016 by Kenneth Fisher

    I did a post the other day on comparing two tables. It was meant as a general overview but I …
    Continue reading

  10. Using LEN wrong.


    June 2, 2016 by Kenneth Fisher

    I was reading someone’s question the other day on StackExchange and while the existing comments/questions solved the OP’s (original poster) …
    Continue reading

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 1,569 other followers

Follow me on Twitter

ToadWorld Pro of the Month November 2013