우리는 내가 사용 여부에 따라 다른 변경 스크립트를 생성하는 제작 프로파일과 Visual Studio를 데이터베이스 프로젝트를 비주얼 스튜디오의 명령 줄에서 스크립트 옵션 또는 SQL 패키지 생성 :SqlPackage 스크립트 동작과 VisualStudio 생성 스크립트가 다른 결과를 생성하는 이유는 무엇입니까?
이- 비주얼 스튜디오가 10,455을 만듭니다 KB 파일.
- SqlPackage 다음 명령을 사용하여 8,835킬로바이트 파일을 만듭니다 :
SqlPackage /a:Script /sf:pub.dacpac /pr:pub.profile.xml
VS는 스크립트를 생성하는 데 사용하는 명령 줄을 관찰하는 방법에 대한 어떤 제안? 두 프로세스 모두 다음 게시 프로파일을 사용할 때 차이점은 무엇입니까?
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IncludeCompositeObjects>True</IncludeCompositeObjects>
<TargetDatabaseName>nrc_gateway</TargetDatabaseName>
<DeployScriptFileName>clm_model.publish.sql</DeployScriptFileName>
<BlockOnPossibleDataLoss>False</BlockOnPossibleDataLoss>
<ScriptDatabaseCompatibility>True</ScriptDatabaseCompatibility>
<ProfileVersionNumber>1</ProfileVersionNumber>
<DropDmlTriggersNotInSource>False</DropDmlTriggersNotInSource>
<DropIndexesNotInSource>False</DropIndexesNotInSource>
<TargetConnectionString>Data Source=.;Integrated Security=True;Persist Security Info=False;Pooling=False;MultipleActiveResultSets=False;Connect Timeout=60;Encrypt=False;TrustServerCertificate=True</TargetConnectionString>
<AllowIncompatiblePlatform>True</AllowIncompatiblePlatform>
<DropConstraintsNotInSource>False</DropConstraintsNotInSource>
<DropExtendedPropertiesNotInSource>False</DropExtendedPropertiesNotInSource>
<VerifyDeployment>False</VerifyDeployment>
<BlockWhenDriftDetected>False</BlockWhenDriftDetected>
<RegisterDataTierApplication>False</RegisterDataTierApplication>
<IncludeTransactionalScripts>True</IncludeTransactionalScripts>
<ExcludeUsers>True</ExcludeUsers>
<ExcludeDatabaseRoles>False</ExcludeDatabaseRoles>
<DropObjectsNotInSource>False</DropObjectsNotInSource>
<DoNotDropAggregates>False</DoNotDropAggregates>
<DoNotDropApplicationRoles>False</DoNotDropApplicationRoles>
<DoNotDropAssemblies>False</DoNotDropAssemblies>
<DoNotDropAsymmetricKeys>False</DoNotDropAsymmetricKeys>
<DropPermissionsNotInSource>False</DropPermissionsNotInSource>
<GenerateSmartDefaults>True</GenerateSmartDefaults>
<ScriptNewConstraintValidation>True</ScriptNewConstraintValidation>
</PropertyGroup>
</Project>
파일의 다른 점은 무엇입니까? 윈디프 (windiff)는 무엇을 생각합니까? –