?
Solved

How to Restore MS SQL database without data

Posted on 2009-05-06
4
Medium Priority
?
571 Views
Last Modified: 2012-05-06
I'm just wondering is it possible to restore old database with new "version" of same database? I just want new fields, views and procedures from new version to old version and same time keeping data in old version.

Help needed, thanks!
0
Comment
Question by:Mircci
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Expert Comment

by:jruhe
ID: 24313143
I don't think there's any way to pick and choose what it'll restore.  When you restore the file (let's say it's called MIRCCISDATA), change the name by modifying the name in the To database field.  Then, copy the views and procedures from the new version to the old version (I've only got Express to practice on right now so I have to copy the script from the view to the new view in the other dB, but I think there's a way to copy the views and procedures in full-blown SQL--right-click the view and check it out).
0
 
LVL 14

Accepted Solution

by:
wolfman007 earned 1500 total points
ID: 24313179
Here is a link to an easy tutorial on how to create a script to copy the database structure.

Just follow the instructions to create the structure scipt using the Script Wizard.

Then create a new database and run the script against it to create the tables, views, etc.

SQL SERVER - 2005 - Create Script to Copy Database Schema and All The Objects - Stored Procedure, Functions, Triggers, Tables, Views, Constraints and All Other Database Objects

http://blog.sqlauthority.com/2007/08/21/sql-server-2005-create-script-to-copy-database-schema-and-all-the-objects-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/
0
 
LVL 7

Expert Comment

by:luani
ID: 24313394
Hi,
You can modify the model database to make it(via scripts ) as your template, then every new database u create will be like your template.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

764 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