• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 593
  • Last Modified:

MSSQL 2012: Database SchemaChangeLog

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
ulf-jzl
Asked:
ulf-jzl
  • 3
  • 2
1 Solution
 
Eugene ZCommented:
also you can save as .sql  file some where on your PC\Network the extra copy
0
 
ulf-jzlAuthor Commented:
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
 
Eugene ZCommented:
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
 
ulf-jzlAuthor Commented:
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now