MSSQL 2012: Database SchemaChangeLog

Posted on 2013-01-12
Medium Priority
Last Modified: 2013-01-21

I need some good tips how you document changes for a database.

I have seen tables like

CREATE TABLE [dbo].[SchemaChangeLog](
   [ID] [int] IDENTITY(1,1) NOT NULL,
   [MajorReleaseNumber] [varchar](2) NOT NULL,
   [MinorReleaseNumber] [varchar](2) NOT NULL,
   [PointReleaseNumber] [varchar](4) NOT NULL,
   [ScriptName] [varchar](50) NOT NULL,
   [DateApplied] [datetime] NOT NULL,

    CONSTRAINT [PK_SchemaChangeLog] 
        PRIMARY KEY CLUSTERED ([SchemaChangeID] ASC)

Open in new window

this will handle  some type of  version history,

So, any tips (best practice) to handle version history of a database would be great?

Question by:ulf-jzl
  • 3
  • 2
LVL 43

Accepted Solution

Eugene Z earned 2000 total points
ID: 38770444
LVL 43

Expert Comment

by:Eugene Z
ID: 38770446
also you can save as .sql  file some where on your PC\Network the extra copy

Author Comment

ID: 38772072
If I install "Microsoft Visual Studio Team Foundation Server 2012 MSSCCI Provide" I'm able to connect to TFS, but is it possible to work with the exact same project both from VS 2012 (database project ) and SSMS 2012 with  MSSCCI.
LVL 43

Expert Comment

by:Eugene Z
ID: 38772442
it should be no problems. it is working if you follow the post recommendation "TFS integration in SQL Server Management Studio 2008"

Author Comment

ID: 38774352
SSMS cannot open .sqlproj from visual studio.

So Do you mean that I should create a SSMS project and just add all the .SQL files from my  .sqlproj (already stored in TFS)

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question