Solved

MSSQL 2012: Database SchemaChangeLog

Posted on 2013-01-12
5
544 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
ID: 38770444
0
 
LVL 42

Expert Comment

by:EugeneZ
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 42

Expert Comment

by:EugeneZ
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

828 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