Solved

How to Restore MS SQL database without data

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Latency in .net app using DB in .net 21 74
ORA-04071: missing BEFORE, AFTER or INSTEAD OF keyword 2 63
Help  needed 3 36
How can i use WITH CTE for checking exist value? 3 46
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…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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…

828 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