I want to transfer stored procedures from my development db to testing/production db without copying all the tables views etc. over.

Posted on 2008-11-06
Last Modified: 2012-05-05
I am working on an Intranet for my company using and Sql Server Express.  I have Sql Server 2005 Standard on the test server.

I have the data model I want and will only add tables from here with out changing any existing tables since there are dozens of stored procedures using them already.  While I am adding pages and content to the Web App I add stored procedures and tables or change existing stored procedures and then transfer the changes over to the test server for testing.  When I copy the data file from the development computer to the test server I have been copying the whole file over which means any test data added to the test server gets erased.  

I Want to be able to update the stored procedures with out copying over the whole data file from the development computer to the test server.  Can this be done by simply passing the ldf file?  Is it possible to copy individual stored procedures, and tables from one data file to another?
Question by:CW596
    LVL 25

    Accepted Solution

    <Can this be done by simply passing the ldf file?  >

    In management studio select your database - Right clic - All tasks - Generate sql
    Then you select what you want to transfer and a sql-statement will be generated for you

    Author Comment

    I pretty much figured that that would be the way to go.  I will keep the question open for a day or two just in case someone else has something.

    Thanks jogos

    LVL 25

    Expert Comment

    for 75 points, i doupt it

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
    This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now