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
The process itself is pretty simple
- 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.
- Register SQL Code Guard with VS - devenv /setup
- add checking policy
- select TFS collection / project
- open menu TEAM -> Team Project Settings -> Source Control
- Select Check-in Policy tab
- click Add button
- select SQLCodeGuard.CheckinPolicy policy and press OK button
- Press OK to close "Source control settings" dialog
Now you can try to use/test checkin policy
- add (or edit) sql file in TFS
- select "Pending changes"
- If you didnt placed SQL Code Guard settings file in project directory then you will get message "Unable to find settings"
- 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!
No comments:
Post a Comment