Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Check in New DDL to SourceSafe

By Rich Cowley,

Rather than invent (or learn) a whole new set of tools to preserve and version all DDL underneath our databases, we decided to use SourceSafe (something we're already using for all other source code). -- We've developed this VBscript to run nightly; it recreates object-level DDL in a given database and compares each object's script to its counterpart in a SourceSafe database.  Should the two differ, this script checks in the database's (newer) version.

To prepare this script for execution:
- Set up a SourceSafe database, with a DATABASE project under the root, and subprojects underneath it for each server/database combination you want to preserve.  (Example: "$/DATABASE/SERVER1_HR_Database".)
- Set up subprojects (Tables, Views, StoredProcedures, etc.) underneath each new server/database project built above.
- Replace all [square-bracketed] items in the script with your own server names, IDs and passwords.

Total article views: 136 | Views in the last 30 days: 1
Related Articles

Scripting SQL Server databases with SMO using EnforceScriptingOptions

Obscure impact of switch EnforceScriptingOptions to scripting a SQL Server database.


SourceSafe Alternatives

Currently our programming teams use Visual SoureSafe for source control. We have to export our SP's ...


Script all Stored procs for all databases on a server

script all stored procs for all databases on a server


how get generate script for database user with their database and server roles

how get generate script for database user with their database and server roles


SourceSafe and SQL Server Management Studio

Hello. I am using SQL Server Management Studio to manage some SQL Server 2000 servers. I would like ...


Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones