Skip to content
This repository was archived by the owner on Feb 9, 2024. It is now read-only.
This repository was archived by the owner on Feb 9, 2024. It is now read-only.

Using DACPAC file to analyze database dependencies #3

@Dirkster99

Description

@Dirkster99

I am looking at using a DacPac approach to reverse engineer a live database.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/49e0f0aa-72e5-46c6-91e0-7dbffbf21bd6/sql-dependency-walk-like-javadoc-or-doxygen-but-for-sql-server?forum=ssdt

For this I have setup a demo database using this script:
https://github.com/Dirkster99/NextLevel/wiki/Create-INTERFACE-Database
...and followed this workflow to create a DacPac file:
https://github.com/Dirkster99/NextLevel/wiki/Create-DacPac-from-Demo-Database

My problem is that the DacPac file is not created because the schema contains references to objects
(stored procedures) that are not contained in the database. Now its easy to work around this issue by
removing these invalid references but some live databases that came into this world without an
engineering process do contain such things :-( ...

So, I am wondering if it is possible to convert the error message into a warning and create the DacPac
file anyway? Maybe, there is a command line tool option or something else that gives me a chance to
extract the database into a DacPac file even if the database contains errors?

I have downloaded the project at www.github.com/Microsoft/DacExtensions and got it to compile and run since the documentation on the pre-requisites is quit good but I cannot find a sample that lets me connect to a database, download and analyze the schema (from a live database). What am I missing? Could you please refer me to a specific sample/option to get me on my way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions