How to output the results of an procedure in SQL server?

Is it possible to backup just SQL server 2008 R2 data tables without stored procedures or functions and restore to another database without disturbing that databases procedure/functions?

  • This is for a ETL recovery procedure where a production jobs fails and the same job in development succeeds.  Both schemas are the same but we don't want to copy any stored procedures or functions because they may not have all passed QA yet.  Rerunning the product ETL job would take 8 hours but I'm estimating a backup restore could complete in a few hours.

  • Answer:

    A backup in SQL Server is a page level copy of the database. A restore moves that page level copy back into a database. You can't use the backup/restore process to move only parts of a database. You move the whole thing every time. So, in your situation, if you just want to move some tables and some data, you must use ETL processes. You can't use backup/restore.

Grant Fritchey at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.