SSIS and SQL Server database transfer object components

Transfer assembly is divided into: the transfer assembly and the transfer database objects database component, the entire database former copied or moved to a new instance of SQL Server, which the database and the new object is transferred to a SQL Server database.

一,Transfer Database Task

Transfer task database for SQL Server instance transition between the two databases, the database can be copied or moved, the transfer may be online or offline.

1, copy and move

Copy (Copy) refers to the assignment a copy of the database, the result is that there are two copies of the database, and move (Move) is to create a new database, and delete the old database, the result is that only a mobile database.

2, the online and offline modes

When using an online (Online) mode remain connected database, and data transmission replicate database objects through SQL Management Objects (SMO).

When using offline (Offline) mode, the database is in the disengaged (of type Detached) state, the component of the database file transfer (assignment or mobile) to the target server; after transferred to the new database file server, to reattach the database (the attach) to the target SQL Server instance. When using the Copy mode, after copying the success of the original database will be reattached to the original instance. In offline mode, copy the database file faster, disadvantage is that the database can not be used in offline mode.

In offline mode, you need to specify network file sharing (Network File Share) between the source and destination servers, network shared folders is a shared directory on the target server, database files will be transferred to the next change purposes. When the transfer mode in the offline database, the database file is copied to a network file share.

二,Transfer SQL Server Objects Task

Database object transfer assembly used to transfer one or more database objects from a SQL Server instance to another SQL Server instance.

Common database objects are:

  • Table
  • View
  • Stored Procedure
  • User-defined Function

 

Reference documents:

Transfer Database Task

Transfer SQL Server Objects Task

 

Guess you like

Origin www.cnblogs.com/ljhdo/p/10556424.html