Is there a way in SQL server to export data in all tables to a SQL Insert script (and in correct dependency order)? I looked into Enterprise Manager and Query Analyzer, but I don't see any tools for doing such task.
Either backup/restore (this overwrites entire database), or dtswiz.exe (Copy Objects option - tricky, be careful!). There are no tools/features that dump data only into SQL files (a la mysqldump -d, right?)... unless you make one or google for it
------ "There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
We are doing development, and I want to "rebuild" the database each time (create tables and then insert the data) we have a new application build. We are still in the design phase, so the database may change. I don't think backup and restore would work well in my case. Any other ideas??
Create a new database with the rebuild info (base DB).
Everytime you need to rebuild, issue a drop of the affected tables (can be a sql script), and then do a copy server objects DTS package to copy your objects from the (base DB) into the development DB.
Easy to create the required processes, easily changed also.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.