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