문제

I'm trying to use the vsdbcmd.exe command to deploy a SQL DB Project. However, when I try to build said project using MSBuild, or even in VS (2013), it is not generating a dbschema file (as documented here).

Can anyone offer any suggestions as to why this might be? I have permissions in the solution and project directory. I've tried build, rebuild, msbuild /t:Build c:\DB\DB.sqlproj, but I can't see the .dbschema file anywhere.

도움이 되었습니까?

해결책

You're using the wrong command for the job. You're using either SSDT or the native VS2013 projects. Those generate *.dacpac files (which are glorified zip files and contain the dbschema and other files). You need to use SQLPackage.exe to publish those.

I've got some articles about the SSDT process on my blog: http://schottsql.blogspot.com/2013/10/all-ssdt-articles.html

This article in particular likely pertains to your issue: http://schottsql.blogspot.com/2012/11/ssdt-publishing-your-project.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top