Coder Social home page Coder Social logo

drjohnt / publishdacpac Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 7.0 566 KB

PowerShell to publish (deploy) SQL Database using a DACPAC and DAC Publish Profile

PowerShell 100.00%
ssdt deployment dacpac deploy publish sql database dac sqlserver dac-publish-profile

publishdacpac's People

Contributors

davidaitken avatar drjohnt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

publishdacpac's Issues

Missing Parameters

Hello sir,

When I attempt to use the parameter -DeployScriptPath I receive the following error message:

9 | … \MSSQLLocalDB" -Database: "G1Lifecycle_RMS" -DeployScriptPath "c:\tem …
| ~~~~~~~~~~~~~~~~~
| A parameter cannot be found that matches parameter name 'DeployScriptPath'.

Am I missing something? Most of the parameters appear as soon as I type "-" but some don't like -DeployScriptPath.

Please let me know what I can do to correct this error.

Many thanks in advance!

~ Dave

Support for more SQLpackage arguments

(Great work on this repo!)

Currently, you only support the following arguments for publishing using SQLpackage.exe as per this script:

/Action:Publish
/SourceFile:$DacPacPath
/Profile:$DacPacUpdatedProfilePath

Our use case does not play perfect with the profile.xml since depending on the environment, we'll need some different settings. There can be tens of different environments, all with different SQLCMD variable requirements.

Have you thought about allowing these combinations of arguments (source)?

/Action:Publish
/SourceFile:$sourceFile
/TargetServerName:$targetServerName
/TargetDatabaseName:$targetDBname
/V:SQLCMDVariable1=$SQLCMDVariable1
/v:SQLCMDVariable2=$SQLCMDVariable2

I'll probably be implementing something close to this so if you're open to PRs and if you're not working on this already, I'll be glad to be of help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.