SQL Data

Posted on 2005-05-10
Last Modified: 2010-03-19
I have a SQL Server with 30+ databases that each contain several tables, views and stored procedures.

Is there any way I can produce the properties/schema/code in a format that I could, say, email to someone?  That someone has no problem re-creating the databases/tables/views/store procedures... they just need to know the structures/code.

In other words... I need to replicate several databases and "replication" is out.


PS... I gots until Thursday!
Question by:classnet
    LVL 9

    Expert Comment

    you can make a backup of your database compress and email. After, they can restore it
    LVL 32

    Accepted Solution

    You can Script the entire database out.

    In Enterprise Manager, Right-Click on a database, and choose All Tasks/Generate SQL Script...

    When the Generate SQL Scripts window pops up, click the SHOW ALL button, then select the items you want to script - Tables, Sprocs, Views, Rules, UDFs, whatever (or just choose Script All Objects).  Don't forget to check all three tabs for all of the options that apply.

    Now that you have your script, compress it, attach it, and send it.  Voila.  And, since it doesn't contain the data, it will be significantly smaller than the Backup/Restore method.

    Author Comment


    Thank you very much!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I recently came across an interesting Question In EE ( and was puzzled about how to achieve that using SSIS out of the box tasks, which was i…
    Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
    Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
    Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now