Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Northwind deleted tables, how to restore

Posted on 2004-04-27
2
Medium Priority
?
365 Views
Last Modified: 2010-07-27
Hi
I have an MS SQL 2000, which I use for development. I accidentaly deleted some files(I guess so) of the database,
Now I can't see some tables and stored procedures.  Is there a away to replace it/ restore it to its original state? I am a newbie,
so please give me some tips?

Thanks
Heart
0
Comment
Question by:heartguy123
2 Comments
 
LVL 70

Expert Comment

by:Scott Pletcher
ID: 10932308
1) Do you have a backup of Northwind that you can restore over the existing Northwind?

2) Do you have another SQL Server installation with Northwind?  If so, you can take a backup of that db and restore it over the damaged Northwind.
0
 
LVL 7

Accepted Solution

by:
Lori99 earned 1000 total points
ID: 10932357
Go to the directory c:\program files\microsoft sql server\mssql\install or wherever you installed SQL Server.  There you will find a SQL script called instnwind.sql.  This is a script that drops and recreates Northwind.  You can run it from Query Analyzer.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
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…
Via a live example, show how to shrink a transaction log file down to a reasonable size.

885 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