Solved

MSSQL 2012: Database SchemaChangeLog

Posted on 2013-01-12
5
560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 43

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 38770444
0
 
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
0
 

Author Comment

by:ulf-jzl
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.
0
 
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"
http://social.msdn.microsoft.com/Forums/en-IE/tfsversioncontrol/thread/a1aac196-8ee6-4a04-8d8d-9b7da2fdb286
0
 

Author Comment

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

691 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