Solved

MSSQL 2012: Database SchemaChangeLog

Posted on 2013-01-12
5
525 Views
Last Modified: 2013-01-21
Hi!

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?

Thx!
0
Comment
Question by:ulf-jzl
  • 3
  • 2
5 Comments
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
Comment Utility
0
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
also you can save as .sql  file some where on your PC\Network the extra copy
0
 

Author Comment

by:ulf-jzl
Comment Utility
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.
0
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
it should be no problems. it is working if you follow the post recommendation "TFS integration in SQL Server Management Studio 2008"
http://social.msdn.microsoft.com/Forums/en-IE/tfsversioncontrol/thread/a1aac196-8ee6-4a04-8d8d-9b7da2fdb286
0
 

Author Comment

by:ulf-jzl
Comment Utility
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)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Performance is the key factor for any successful data integration project, knowing the type of transformation that you’re using is the first step on optimizing the SSIS flow performance, by utilizing the correct transformation or the design alternat…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now