sqlproj

Publish to SQL Azure fails with 'Cannot drop the external data source' message

こ雲淡風輕ζ 提交于 2020-01-15 10:45:27
问题 I've got an SQL Project (.sqlproj) in my solution with target platform 'Microsoft Azure SQL Database V12'. Recently I've added an external data source and several external tables targeting this data source. ExternalCSVLists.sql file: CREATE EXTERNAL DATA SOURCE [ExternalCSVLists] WITH ( TYPE = RDBMS, LOCATION = 'location.windows.net', DATABASE_NAME = '$(CSVLists)', CREDENTIAL = RemoteConnectionCredential ) Example of external table ( IntegerListContent.sql file) CREATE EXTERNAL TABLE [WebApp]

Cannot open .sqlproj because it is not supported

我只是一个虾纸丫 提交于 2019-12-23 19:21:53
问题 I have inherited a VS2010 project that includes a .SQLPROJ. I'm not having any problems with the .csproj. But I am having a problem opening the .SQLPROJ in the solution. When I try to open the .SQLPROJ, I get the following error: MyDBProject.sqlproj cannot be opened because its project type (.sqlproj) is not supported by this version of the application. To open it, please use a version that supports this type of project. It's my understanding that this solution was developed using VS2010. But

C# VS 2013 Error 02019: Invalid target type for /target: must specify 'exe', 'winexe', 'library', 'module', 'appcontainerexe' or 'winmdobj' CSC

社会主义新天地 提交于 2019-12-14 02:51:17
问题 I work on a website that uses various class libraries that are occasionally updated. One of the libraries is a sqlproj file and I believe it was made with VS2010. It is a dependency for other libraries and I'm not able to build/rebuild my solution because I keep getting this error, thus the DLLs will not generate. When I first open the project in VS2013, I get a migration report that opens in my browser. But the migration states that it's successful. When I try building the project, I get the

SSDT publish script recreates procedures with no changes

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 10:30:28
问题 I have a database imported into a .sqlproj , and a .publish.xml publish profile which publishes changes to a remote DB. My understanding is that when I right click -> Publish -> Generate Script, it should calculate the diff between the local definitions and the remote DB, and generate a script to bring the remote DB in line. This all seems to work OK, however, the script it generates always contains ALTER FUNCTION and ALTER PROCEDURE statements for the same 40 or so functions and procedures

How to include created database project created dacpac into a cs project

时光总嘲笑我的痴心妄想 提交于 2019-12-07 11:19:01
问题 I have a separate database project that I’d like to build within the same solution and then reference the created dacpac. When I try adding the database project it builds fine and the dll is added to the secondary project file, but the dacpac is not. Is there a way that I can have the dacpac copied into my main project through the msbuild? I keep on thinking that there should be a way to modify either the sqlproj file or csproj file so that the dacpac is included as one of the project outputs

How to include created database project created dacpac into a cs project

大城市里の小女人 提交于 2019-12-05 11:47:45
I have a separate database project that I’d like to build within the same solution and then reference the created dacpac. When I try adding the database project it builds fine and the dll is added to the secondary project file, but the dacpac is not. Is there a way that I can have the dacpac copied into my main project through the msbuild? I keep on thinking that there should be a way to modify either the sqlproj file or csproj file so that the dacpac is included as one of the project outputs. My knowledge of msbuild is not extensive, I’ve not been able to figure it out. It seems to me that I