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:

    稍后继续。。。

  • 相关阅读:
    第一次极限测试效果图-完整四张
    第一次极限测试效果图
    ajax遍历list数据解决方法
    读书笔记1
    读书笔记2
    读书笔记3
    每日学习
    关于根据数据反选checkbox
    zabbix监控kernel.pid_max
    React 学习项目1
  • 原文地址:https://www.cnblogs.com/bg57/p/3469613.html
Copyright © 2011-2022 走看看