As a C# programmer, I am familiar with using TFS for version control. However, I am doing some database work, for example, triggers that I don't want to get lost. What is best practice for this? Right now, I just do backups of the entire database (5 gigs) but that seems an overkill as I really only want the structure/triggers etc.
In searching around, it appears there is a Plug in for SSMS for TFS 2010. Is anyone actually using this? What is typical for dba's on this subject?
Update
It just occurred to me the simplest and easiest way to achieve this is just add a folder to my existing project called SQL, and then add a *.sql file to it. This is then checked into TFS just like any other file in the project. By clicking it to open in VS, it opens up the new Database Tools windows so you can run the SQL and see the results in the pane below.
Second Update:
After using Sql Server Projects in Visual Studio for the past few days, I have come to really like them. It's a lot different from using SSMS, but once I got my head around the concepts, it works very well. And the main point is that you end up with a complete set of scripts for you database which are then very easy to keep in source control.
Greg