Microsoft® SQL Server® 2012 Bible

(Ben Green) #1

631


Chapter 23: Transferring Databases


23


To begin creating and deploying DACs, you must fi rst register a database as a DAC and then
register that DAC defi nition to the instance. Follow these steps to register a database as a DAC:


  1. Right-click the database, and from the context menu, choose Tasks ➪ Register as
    Data-Tier Application.

  2. At the Introduction menu, click Next.

  3. The DAC instance name is automatically the name of the database you register.

  4. You can customize the Application name. If the database is associated with a par-
    ticular application, you may want to use that name here so you can easily refer to
    it for a particular application.

  5. Version level is set to 1.0.0.0 by default but can be manually incremented as
    needed.

  6. In the description fi eld, supply a quick description of what the database is and
    what application is associated with it. Click Next to proceed.

  7. The DAC Wizard then validates all the objects in the database. When complete, you
    see a summary of your options selected as well as the validation checks. Click Next
    to proceed.

  8. The DAC is then registered to the instance. Click Finish.
    Now that you’ve registered your database as a DAC application, it’s time to defi ne its
    contents.

  9. Right-click the database you registered in previous steps, and from the context
    menu, select Tasks ➪ Extract Data-Tier Application.

  10. At the Introduction menu, click Next.

  11. Here you supply the properties of the DAC. Give the Application a name and version
    number.


Properly versioning your DAC application is important because this lets those who deploy the DACs in other environ-
ments know which revision level they are upgrading to.


  1. Select a location to save the DAC package fi le (.dacpac) to by clicking the Browse
    button and navigating to your wanted location on your fi le system. If you want to
    overwrite an existing DAC package fi le, check the box for Overwrite existing fi le.

  2. Click Next to proceed to Validation and Summary.

  3. Click Next to proceed and build your DAC package.

  4. Click Finish when complete.


c23.indd 631c23.indd 631 7/31/2012 9:25:23 AM7/31/2012 9:25:23 AM


http://www.it-ebooks.info
Free download pdf