Solved

help- urgent recover stored procedure

Posted on 2008-09-30
6
798 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

726 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