Restore db from SSC from command line
kraades
Posts: 9
At the moment we restore our test database from a SQL backup file.
We would like to store the test database (schema and data) in TFS using SSC and restore it using the command line or using an API.
What are the possibilities?
Current:
SQL backup file --> SQL database
Requirement:
SSC --> SQL backup file --> SQL database
or if this is not possible:
SSC --> SQL database
We would like to store the test database (schema and data) in TFS using SSC and restore it using the command line or using an API.
What are the possibilities?
Current:
SQL backup file --> SQL database
Requirement:
SSC --> SQL backup file --> SQL database
or if this is not possible:
SSC --> SQL database
Comments
Before that can happen, though, you'll probably want to use SQL Source Control to get the database *into* TFS as a set of SQL scripts.
However, you can also get SQL Compare to check it out of SQL Source Control for you using the switch. Using checks out the most recent copy of the database.
Just to be clear, it doesn't actually compare against the source database, it compares against the scripts folder of the source database that it checks out.
To store the data as well as the schema you'll want to make sure you've linked all the tables as static data. More about this is here: http://www.red-gate.com/supportcenter/c ... lling_Data
Let me know if this is useful and if you need any more help.
Technical Author,
Red Gate Software