Forums (RSS 2.0)" href="http://www.simple-talk.com/community/forums/rss.aspx?ForumID=-1&Mode=0" />
Click here to monitor SSC

Ten Common SQL Programming Mistakes

Last post 09-18-2009, 9:10 AM by Plamen. 55 replies.
Page 1 of 4 (56 items)   1 2 3 4 Next >
Sort Posts: Previous Next
  •  08-20-2009, 6:57 AM Post number 74464

    Ten Common SQL Programming Mistakes

  •  08-20-2009, 3:53 PM Post number 74472 in reply to post number 74464

    Good work

    Simple, but very good work.

    Keep writing!

    ~R
  •  08-21-2009, 11:33 AM Post number 74490 in reply to post number 74464

    • Chuck is not online. Last active: 10-20-2006, 10:21 AM Chuck
    • Not Ranked
    • Joined on 10-20-2006
    • Level 1: Deep thought

    Nicely Written

    And good advice.
  •  08-21-2009, 2:19 PM Post number 74493 in reply to post number 74464

    Excellent!

    Very well written, good examples of common traps!
  •  08-22-2009, 5:15 AM Post number 74497 in reply to post number 74464

    Excellent work

    Every one must read this. Even if you write simple query, you should know these basic things. Otherwise you will end up with error prone queries.

    Thanks a lot. Explained very well with proper examples.
  •  08-24-2009, 12:16 AM Post number 74509 in reply to post number 74464

    Excelent work

    Very very good wok keep posting these types of articles
  •  08-24-2009, 1:29 AM Post number 74513 in reply to post number 74464

    Great article, you should write an article on set based computation using SQL!

    Great article! I think most of these would be pretty quick to spot for the seasoned SQL developer, but nevertheless good to have them compiled in an article. You should write an article on set based computation using SQL with particular emphasis on how to replace cursors with set based processing under different scenarios :)
  •  08-24-2009, 2:41 AM Post number 74515 in reply to post number 74464

    Excellent Article

    Very good stuff - keep on writing.
  •  08-24-2009, 3:53 AM Post number 74519 in reply to post number 74464

    • Steve is not online. Last active: 10-06-2006, 6:29 AM Steve
    • Not Ranked
    • Joined on 10-06-2006
    • Level 1: Deep thought

    Title Change

    Shouldn't the title of this article be "Ten Common SQL Server Programming Mistakes".

  •  08-24-2009, 4:38 AM Post number 74520 in reply to post number 74464

    Great Article

    I especially like the "Incorrect subquery column" section. I try to get the guys I work with here to use aliases more often. I find aliases help readability and maintenance, and more often than not help to catch simple mistakes like the one you highlighted. Even with these benefits they are still having none of it though and would rather just dump out column names.
  •  08-24-2009, 4:39 AM Post number 74521 in reply to post number 74464

    Great Article

    I especially like the "Incorrect subquery column" section. I try to get the guys I work with here to use aliases more often. I find aliases help readability and maintenance, and more often than not help to catch simple mistakes like the one you highlighted. Even with these benefits they are still having none of it though and would rather just dump out column names.
  •  08-24-2009, 7:07 AM Post number 74526 in reply to post number 74464

    Top 11

    Good article, I can't tell you how many times a few of these top 10's have made my queries go from 5 minutes to 5 seconds.

    If I could add one more item to your list, I would add the times when you insert a lot of data into a table, you'll need to reindex that table before any subsequent queries. Other adds might include avoiding the CLR when possible. For those ASP.NET devs, use LINQ.
  •  08-24-2009, 7:21 AM Post number 74527 in reply to post number 74464

    I Agree, Great Article

    Bravo. I am going to send the link to my DBA's and Programmers. I have seen at least 2 of these mistakes in the last week of looking over scripts and stored procedures.
  •  08-24-2009, 10:01 AM Post number 74534 in reply to post number 74464

    One of my favorite articles

    Wonderful work ! Keep it up !
  •  08-24-2009, 10:08 AM Post number 74535 in reply to post number 74464

    Fix mismatched datatypes at source

    Hi,

    here's a great article that identifies all the 'broken' datatypes on your database.

    http://www.sqlservercentral.com/articles/Admin/65138/

Page 1 of 4 (56 items)   1 2 3 4 Next >
View as RSS news feed in XML