zoukankan      html  css  js  c++  java
  • use MSBuild cmd to build and deploy the database project.

    You can use the below command to implement it.

    SET TargetDBName="Database name"
    SET DataBaseServer="DB Server name"
    SET DbProjectPath="database project folder"
    
    
    C:WindowsMicrosoft.NETFrameworkv4.0.30319MSBuild.exe /t:Deploy /p:TargetDatabase=%TargetDBName%;TargetConnectionString="Data Source=%DataBaseServer%;User ID=XXX;Password=XXX;Pooling=False" "%DbProjectPath%DataBaseProjectName.sqlproj"

    You may need to add a user on the DB server. Then you can connect the database server with it.

    The problem that you may come accross.

    Problem 1: error MSB4019: The imported project "C:Program Files(x86)MSBuildMicrosoftVisualStudiov10.0SSDTMicrosoft.Data.Tools.Schema.SqlTasks.targets" was not found. Confirm that the path in the <Import> declaration is correc

    t, and that the file exists on disk.

    Solution1:

    Solution2:

    Problem2: Could not load file or assembly 'Microsoft.Data.Tools.Components, Version=10.3.0.0' or one of its dependencies

    Solution1:

    稍后继续。。。

  • 相关阅读:
    WindowsServer 2016激活
    selenium浏览器复用与原理分析
    react脚手架: 配置代理
    网络请求方式
    Java: Excel导入导出
    react 组件通信方式
    react: reactrouterdom
    react: 高阶函数及函数柯里化
    react: 事件处理
    react: 生命周期
  • 原文地址:https://www.cnblogs.com/bg57/p/3469613.html
Copyright © 2011-2022 走看看