I want to do the following…
- Backup or export data from my current database tables
- Redeploy (drop and create) my database with the same tables with new nullable columns
- Restore or import said data back into the database.
Is that possible using MSSQL? If so, how?
Best Answer
From the command prompt:
Then, drop and re-create your tables (I don't think there's any simple way of doing this).
To get your data back,
You will need to repeat this for each table. It will give you a binary copy of the data, which is then re-inserted. Just as long as each field is the same length as the old one, you shouldn't have any troubles re-inserting the data on a different schema.