Solved

How to Restore MS SQL database without data

Posted on 2009-05-06
4
528 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
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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 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

12 Experts available now in Live!

Get 1:1 Help Now