问题
I'm trying to put my database scripts into a VS Database project (I haven't generated them yet).
I'm assuming there should be some kind of "auto generate all" functionality, but I can't find anything.
Or do I really have to generate them one by one manually from management studio?
回答1:
In VS, Data->Schema Compare. Source = your database. Destination = Your Project.
回答2:
I found out if you open server explorer you can just drag and drop the objects into the database project. :)
来源:https://stackoverflow.com/questions/2765948/script-all-sql-database-objects-into-vs-database-project