Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 778815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:49:35+00:00 2026-05-14T19:49:35+00:00

I have the TFS MSSCCI installed, now what? How do I use it to

  • 0

I have the TFS MSSCCI installed, now what? How do I use it to put say like a stored procedure under source control?

Thanks,
rodchar

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:49:36+00:00Added an answer on May 14, 2026 at 7:49 pm

    The best way to version control sprocs is to make a SQL script that installs the stored procedure, perhaps of the form

    if object_id ('FooSproc') is not null
        drop procedure FooSproc
    go
    
    Create procedure FooSproc
    [ . . . ]
    go
    

    Put the scripts in source control.

    Versioning and releasing a larger body of stored procedure code

    You may also need to sort out a means of compiling multiple scripts into a single installer for sprocs. A quick and dirty way that actually works quite well is to use the C preprocessor and files with a bunch of #include statements. The C preprocessor comes with Visual Studio or the free SDK that you can download from Microsoft’s web site.

    -- =========================================================================
    -- === Installer file for FooApp sprocs ====================================
    -- =========================================================================
    --
    --          THIS IS GENERATED CODE.  EDITS WILL BE OVERWRITTEN.
    --
    -- =========================================================================
    --
    #include "Foo.sql"
    
    #include "Bar.sql"
    
    #include "Wibble.sql"
    

    With a bit of scripting you can make a release manager that lets you check out all of the sprocs for a given version of your application and install that version into a database. Of course, don’t forget to update the include file or the installer will miss anything not included.

    In order to use the C preprocessor you need to set up your environment. Visual studio ships with a batch file to do this that will typically end up installed somewhere like:

    C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat
    

    You need to run the batch file to set up the environment, and then you can run the C preprocessor with an incantation like:

    cl /EP DB\DB.inc > Build\DB\DB.sql
    

    This will read an include file, include all of the files it references and then write to stdout; you can redirect stdout anywhere that takes your fancy. Note that the C preprocessor is recursive and you can include other include files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed TFS Power Tools and I am trying to use the powershell
I have a solution checked into TFS. Looking in the source control explorer I
I have a couple of questions related to TFS and source control: 1) I
I have an Access database in source control on TFS that I need to
We have a TFS 2008 server that we are using for source control having
We have installed TFS 2010 RC. By default it creates a project collection called
Background: We have a TFS server setup where me manage our source code and
I have created a TFS build definition to create our software releases. Now I
i have installed TFS 2010 in a 2 server setup with an App Tier
I have installed latest Team Foundation Server MSSCCI Provider 2010 Microsoft Visual Studio Team

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.