Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Data Management

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    « Dealing with Cannot resolve collation conflict for equal to operation errorsHow to Monitor Database Mirroring »
    comments

    I commend Aaron Bertrand (blog and twitter) for his latest series of blogs titled, "Bad habits to kick". These types of blogs are always good for even the experienced groups. I say that because I can pretty much guarantee that some of you are doing the things he points out in this series. You may not know you do them or even understand the fact they are bad habits but I can say for sure, this is a great way to find out what they are and the explanations needed to get you out of the habits.

    It's always good to remind ourselves of some of the things we may be doing in our daily jobs that really are bad habits.

    Here is Aaron Bertrand's listing. The ones in bold are my favorite out of the list.

    Bad habits to kick : mis-handling date / range queries
    Bad habits to kick : using alias types
    Bad habits to kick : using the visual designers
    Bad habits to kick : abusing triggers
    Bad habits to kick : choosing the wrong data type
    Bad habits to kick : making assumptions about IDENTITY
    Bad habits to kick : inconsistent naming conventions
    Bad habits to kick : avoiding the schema prefix
    Bad habits to kick : using SELECT * / omitting the column list
    Bad habits to kick : using SELECT or RETURN instead of OUTPUT
    Bad habits to kick : using dashes and spaces in entity names
    Bad habits to kick : declaring VARCHAR without (length)
    Bad habits to kick : using table aliases like (a, b, c) or (t1, t2, t3)
    Bad habits to kick : using old-style JOINs
    Bad habits to kick : using loops to populate large tables
    Bad habits to kick : ORDER BY ordinal

    Guess I could have just bolded them all since they are all very good :-)

    About the Author

    Ted Krueger is a SQL Server MVP and has been working in development and database administration for 13+ years. Specialties range from High Availability and Disaster / Recovery setup and testing methods down to custom assembly development for SQL Server Reporting Services. Ted blogs and is also one of the founders of LessThanDot.com technology community. Some of the articles focused on are Backup / Recovery, Security, SSIS and working on SQL Server and using all of the SQL Server features available to create stable and scalable database services. @onpnt
    Social SitingsTwitterLinkedInLTD RSS Feed
    4309 views
    Instapaper

    4 comments

    Comment from: SQLDenis [Member] Email
    SQLDenis It is only a matter of time before shrink database makes it too that list

    that is a great list and I also enjoyed all the comments :-)
    10/18/09 @ 18:45
    Comment from: Naomi Nosonovsky [Member]
    *****
    Naomi Nosonovsky Thanks for publishing this, Ted. I started to read them now from top to bottom as a refresher course.
    10/19/09 @ 18:32
    Comment from: dogtacocatgod [Member] Email
    *****
    dogtacocatgod Thank you from me as well, I have done the order by ordinal thing myself
    10/19/09 @ 18:46
    Comment from: Erik [Member] Email
    *****
    Erik Thanks for the list. Most of it was old hat for me, but I learned a couple of things, too.

    And corrected one thing. :)
    10/23/09 @ 18:58

    Leave a comment


    Your email address will not be revealed on this site.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)