Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 941243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:05:22+00:00 2026-05-15T22:05:22+00:00

We are using a SQL Server Data-tier application (dacpac or DAC pack) and I’m

  • 0

We are using a SQL Server Data-tier application (dacpac or DAC pack) and I’m having a hard time finding the current version of the database.

Is there a way to obtain the current version using any of these methods:

  1. From within SQL Server Management Studio
  2. Via a SQL statement
  3. Programmatically using .NET code
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:05:23+00:00Added an answer on May 15, 2026 at 10:05 pm

    From within SQL Server Management Studio

    From http://msdn.microsoft.com/en-us/library/ee210574.aspx

    To view the details of a DAC deployed to an instance of the Database Engine:

    1. Select the View/Object Explorer menu.

    2. Connect to the instance of the from the Object Explorer pane.

    3. Select the View/Object Explorer Details menu.

    4. Select the server node in Object Explorer that maps to the instance, and then navigate to the Management\Data-tier Applications node.

    5. The list view in the top pane of the details page lists each DAC deployed to the instance of the Database Engine. Select a DAC to display the information in the detail pane at the bottom of the page.

    The right-click menu of the Data-tier Applications node is also used to deploy a new DAC or delete an existing DAC.

    Via a SQL statement

    SELECT instance_name, type_version FROM msdb.dbo.sysdac_instances
    

    Via a SQL statement on Azure

    SELECT instance_name, type_version FROM master.dbo.sysdac_instances
    

    Programmatically using .NET code

    Note that in DacFx 3.0 this is no longer valid. See my other answer for a way to do it.

    C#

    ServerConnection serverConnection;
    string databaseName;
    
    // Establish a connection to the SQL Server instance.
    using (SqlConnection sqlConnection =
        new SqlConnection(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString))
    {
        serverConnection = new ServerConnection(sqlConnection);
        serverConnection.Connect();
    
        // Assumes default database in connection string is the database we are trying to query.
        databaseName = sqlConnection.Database;
    }
    
    // Get the DAC info.
    DacStore dacstore = new DacStore(serverConnection);
    var dacInstance = dacstore.DacInstances[databaseName];
    System.Diagnostics.Debug.Print("Database {0} has Dac pack version {1}.", databaseName, dacInstance.Type.Version);
    

    VB.NET

    Dim serverConnection As ServerConnection
    Dim databaseName As String
    
    ' Establish a connection to the SQL Server instance.
    Using sqlConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("DefaultConnection").ConnectionString)
        serverConnection = New ServerConnection(sqlConnection)
        serverConnection.Connect()
    
        ' Assumes default database in connection string is the database we are trying to query.
        databaseName = sqlConnection.Database
    End Using
    
    ' Get the DAC info.
    Dim dacstore As New DacStore(serverConnection)
    Dim dacInstance = dacstore.DacInstances(databaseName)
    System.Diagnostics.Debug.Print("Database {0} has Dac pack version {1}.", databaseName, dacInstance.Type.Version)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using SQL Server to store historical time series data for a couple
i'm using three tier architecture with c# and sql server database as the data
Has anyone encountered this error using SQL Server 2005 and Data access application blocks
I am using SQL Server 2008 spatial data types. I have a table with
I am using SQL Server 2008 and I need to select all data from
I am using SQL Server 2000, Data stored in the database is Photo data
I'm using SQL Server 2008 with Hibernate 3.0 at data access layer of my
I'm using SQL Server 2008 and the following query to implement paged data retrieval
The question is about Armenian. I'm using sql server 2005, collation SQL_Latin1_General_CP1_CI_AS, data mostly
How can I retrieve data from a SQL Server using LINQ and display each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.