I'm trying to automate the database deploy process an I'm using the SqlPackage.exe
.
I have some database deployment process working with this exe
but recently I've been facing an problem to a new database.
When I try to run:
"C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe" /a:Script /op:p_dbprm003.sql /sf:c:\p_dbprm003.dacpac /TargetServerName:servernamexyzw /TargetDatabaseName:p_dbprm003 /Profile:c:\p_dbprm003.publish.xml
I get the message:
The reference to the element with the name '[xxx_user ]' could not be resolved. More than one element with this name exists. To resolve the error, you must add one or more disambiguators.
I really don't know what does it means.
I have a user [xxx_user]
and a schema [xxx_user]
with the same name. Do you think that it could be an possible cause of the error?