Extract a DACPAC to file/folder structure? - Similar to ExtractTarget=SchemaObjectType #201
Unanswered
chadbaldwin
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is similar to another discussion I posted a while back: #123
In that discussion I was asking if it's possible to create a file/folder structure using sqlpackage where the source is a database (connection string). In which case I was able to use
/p:ExtractTarget=SchemaObjectType.Now I have a need to extract a DACPAC into a file/folder structure.
Unfortunately, the
Extractaction does not supportSourceFileas a parameter; Which makes sense when looking at theDacServicesclass. I was hoping I could build my own small utility in C#, but it doesn't appear the classes support it.It seems the only way to produce a file/folder structure is using
DacServices.Extract()and settingextractOptions.ExtractTarget = SchemaObjectType, which doesn't really work when your source is a DacPackage and not a connectionString.I tried looking at the
TSqlModelclass to see if there's any sort of Extract capabilities there, but I couldn't find anything.Beta Was this translation helpful? Give feedback.
All reactions