Solved

help- urgent recover stored procedure

Posted on 2008-09-30
6
787 Views
Last Modified: 2010-04-21
i am using MS-SQL server 2000. i have 2 databases. one is production and the other one is testing. i recently created a testing stored prodcedure in the test database. but forgot that the test database get overwritten everynight because the test database is also treat as the backup database. so how do i restore the store procedure in the test database? help me plz.
0
Comment
Question by:StewSupport
[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
6 Comments
 
LVL 3

Assisted Solution

by:R_Janssen
R_Janssen earned 150 total points
ID: 22606353
It's gone if you are using a real backup and not replication. Always make sure you save your scripts.
 
0
 

Author Comment

by:StewSupport
ID: 22606373
dang it no other way?
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 175 total points
ID: 22606389
It is gone unless you have a backup of the database.
0
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!

 
LVL 39

Assisted Solution

by:BrandonGalderisi
BrandonGalderisi earned 175 total points
ID: 22606578
Or by chance still have it open in Query analyzer somewhere, or saved locally.
0
 

Author Closing Comment

by:StewSupport
ID: 31501591
not the solution i guess there are none so i just give points to you for trying thanks
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 22630384
But it is the solution.  The "solution" is the answer to your question.  And unfortunately, sometimes the answer is there is no way to do it.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

756 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