How to copy views from one database to another database

前端 未结 5 1770
萌比男神i
萌比男神i 2020-12-14 02:07

I have two databases with same structure in MS SQL server.

I\'d like to copy all views another database.

I tried to use Export data functionality by DTS (tha

5条回答
  •  有刺的猬
    2020-12-14 03:01

    If you have access to Visual Studio and have a database project type, you can 1) Import all the ddl, views and tables included 2) Easily add these to integrated source control 3) Migrate whole or part to new database

    After the initial creation of a database project, you will be prompted for connection to SQL Server instance and a database name. When done importing, the ddl for the entire database will be available in a tree very similar to SSMS tree but with the DDL files rather than the objects from which it was derived.

提交回复
热议问题