12 lines
391 B
Batchfile
12 lines
391 B
Batchfile
@echo off
|
|
|
|
SET ServerIP=%1
|
|
SET ServerPort=%2
|
|
SET UserID=%3
|
|
SET Passwd=%4
|
|
SET DBName=%5
|
|
SET Dacpac=%6
|
|
SET OUTPUT=%7
|
|
|
|
::create update sql file
|
|
sqlpackage /Action:Script /SourceFile:%Dacpac% /TargetConnectionString:"server=%ServerIP%,%ServerPort%; user id=%UserID%; password=%Passwd%; database=%DBName%; TrustServerCertificate=true" /OutputPath:".\%OUTPUT%" /p:CommentOutSetVarDeclarations=True |