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

    « Display Monthly Totals Going Across in SSRS 2005RID Lookup take me down »
    comments

    I wrote a blog post 437 days ago asking you the reader if you would be interested in a FxCop tool for SQL Server. That post can be found here: SQLCop, FxCop For SQL Server, Would You Be Interested in This?. Today I am pleased to announce that the first version of this tool is available. The tool is free and will remain free, we will never charge for it.

    The tool is only 412 kb to download and no installer is needed. The reason we didn't do an add in in SSMS is because we wanted people to be able to run it it by itself. The tool was tested on Windows XP, Vista and Windows 7 (64 and 32 bit)

    A big thanks to George Mastros for coding this tool, you can also thank him on twitter here: http://twitter.com/gmmastros

    The tool will not modify any of your database, it will only check and if it finds issues it will list the objects if possible. It will also show you a blog post or wiki article explaining why something is a problem and how to remedy it.

    To run the tool you just download it from the download link at the SQLCop homepage here: http://sqlcop.lessthandot.com/index.php

    After that you run the tool, you will get the following login screen.

    Login screen

    Enter the server name, database name and credentials (or windows authentication)

    After that you will see a screen similar to the one on the bottom. From the left side tree menu expand the node that you are interested in. When you click on an item the right part of the screen will show an html page showing you why the issue might be problematic and how to remedy it. Just remember that these issues might not be issues for you, maybe some of these objects are not used anymore but people are scared to drop them because they might break things down the road. So use your best judgement!

    Issues




    Here is a video of the tool in action so that you can see how it works before you install it

    More info about this tool can be found here, including where to post questions if you have any problems: http://sqlcop.lessthandot.com/index.php

    You can also leave a comment here but we prefer you do it in the SQLCop help forum because the format is better suited for questions and answers

    About the Author

    User bio imageDenis has been working with SQL Server since version 6.5. Although he worked as an ASP/JSP/ColdFusion developer before the dot com bust, he has been working exclusively as a database developer/architect since 2002. In addition to English, Denis is also fluent in Croatian and Dutch, but he can curse in many other languages and dialects (just ask the SQL optimizer) He lives in Princeton, NJ with his wife and three kids.
    Social SitingsTwitterFacebookLinkedInHomePageFlickrLTD RSS Feed
    8619 views
    InstapaperVote on HN

    16 comments

    Comment from: Christiaan Baes (chrissie1) [Member]
    Christiaan Baes (chrissie1) Did we mention it was free?
    07/26/10 @ 07:41
    Comment from: SQLDenis [Member] Email
    SQLDenis Added the part that it is free
    07/26/10 @ 07:43
    Comment from: Buck Woody [Visitor] · http://buckwoody.com
    Buck Woody Works well - thanks for that! I do notice that in multiple places are the words "Stub" instead of "No issues found".
    07/26/10 @ 09:35
    Comment from: SQLDenis [Member] Email
    SQLDenis Thanks Buck, I will let the team know
    07/26/10 @ 09:40
    Comment from: Eralper [Visitor] · http://www.kodyaz.com
    Eralper Hi, thanks for the tool and especially for the explanations about each item and how we can detect by code.
    07/26/10 @ 23:07
    Comment from: peterb [Visitor]
    peterb Looks interesting. But the video is missing audio (tried both IE and Chrome). Also, the download link doesn't work.
    07/27/10 @ 07:09
    Comment from: peterb [Visitor]
    peterb Check that .... my previous comment regarding download was incorrect. IE8 strips out the exe extension on download - you only need to update the file name.

    Comment about lack of audio on video stands. ;)
    07/27/10 @ 07:13
    Comment from: SQLDenis [Member] Email
    SQLDenis Peter, I didn't do any audio on the video since the tool doesn't make any sounds :-) But I get your point, maybe I will do captions next time
    07/27/10 @ 07:14
    Comment from: Chuck [Visitor]
    Chuck Seems to blow up if you are connecting to a SQL2008 R2 server. Subscript out of range
    Source SQLCop.frmMain.LoadNotes
    Paramteters: Version = SQL2008

    Source SQLCop.frmMain.SetVersion
    Paramteters: Version = SQL2008

    Source SQLCop.frmLogin.btnConnect_Click
    Paramteters:
    07/27/10 @ 10:07
    Comment from: SQLDenis [Member] Email
    SQLDenis Thanks Chuck, we will investigate
    07/27/10 @ 10:22
    Comment from: Jon [Visitor]
    Jon Came here to report the same issue as Chuck. Crashes when connecting to SQL 2008.
    07/27/10 @ 10:26
    Comment from: oldjeep [Member] Email
    oldjeep Placed a post in the forum - it actually has to do with the application and my AVG firewall
    07/27/10 @ 10:38
    Comment from: manjot [Visitor]
    manjot How is this tool different from Microsoft Best practices analyser?
    07/27/10 @ 21:45
    Comment from: Paul [Visitor]
    Paul Doesn't seem to work on case sensitive databases. In the column name check for example it looks in Information_Schema.Columns where is should be doing a select from INFORMATION_SCHEMA.COLUMNS.
    08/01/10 @ 17:13
    Comment from: George Mastros (gmmastros) [Member]
    George Mastros (gmmastros) Thanks for bringing this to our attention Paul. We've already been notified of this problem and we are currently working on a solution.
    08/02/10 @ 05:35
    Comment from: JohnM [Visitor]
    JohnM Looks like a nice tool. Too bad it requires a DB connection to run. It would be great if it could run against a sql file.
    06/17/11 @ 11:08

    Leave a comment


    Your email address will not be revealed on this site.

    To mislead the spambots.

    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.)