Using SQL Code Guard TFS Checkin Policy with VS2013

sqlcodeguard, 2015-05-11 (first published: 2015-05-02)

To use TFS Checking policy the first thing that you must do – is to add policy to your TFS source control
The process itself is pretty simple

  1. Install SQL Code Guard at target computer. Please remember that you will need to have SCG installed on each computer on which you will do checkin to project with SCG policy enabled.
  2. Register SQL Code Guard with VS – devenv /setup
  1. add checking policy
    1. select TFS collection / project
    2. open menu TEAM -> Team Project Settings -> Source Control
    3. Select Check-in Policy tab
    4. click Add button
    5. select SQLCodeGuard.CheckinPolicy policy and press OK button
    6. Press OK to close “Source control settings” dialog
Now you can try to use/test checkin policy
  1. add (or edit) sql file in TFS
  2. select “Pending changes”
  3. If you didnt placed SQL Code Guard settings file in project directory then you will get message “Unable to find settings”
  4. if there are issues in script file – you will see warning message
You can doubleclick on message and error list window with full set of of issues will appear

Doubleclick on issue will navigate you to location of issue.
That’s all, folks!





Related content

Database Mirroring FAQ: Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup?

Question: Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? This question was sent to me via email. My reply follows. Can a 2008 SQL instance be used as the witness for a 2005 database mirroring setup? Databases to be mirrored are currently running on 2005 SQL instances but will be upgraded to 2008 SQL in the near future.

Robert Davis


1,567 reads

Networking – Part 4

You may want to read Part 1 , Part 2 , and Part 3 before continuing. This time around I’d like to talk about social networking. We’ll start with social networking. Facebook, MySpace, and Twitter are all good examples of using technology to let…

Andy Warren


1,530 reads

Speaking at Community Events – More Thoughts

Last week I posted Speaking at Community Events – Time to Raise the Bar?, a first cut at talking about to what degree we should require experience for speakers at events like SQLSaturday as well as when it might be appropriate to add additional focus/limitations on the presentations that are accepted. I’ve got a few more thoughts on the topic this week, and I look forward to your comments.

Andy Warren


360 reads