Command Line Script Error
creejohson
Posts: 3
Hi --
I'm trying to execute a package from the command line and want to upgrade an existing db. The arguments I'm using are below:
/server:myserver /database:mydb /username:myuser /password:mypassword /quiet
This fails with error: CREATE DATABASE permission denied in database master
I read in the forum that giving the calling user those permissions will allow the script to be run successfully. I don't have that luxury unfortunately. Is there another way to execute an upgrade using this tool?
Thanks
Chris
I'm trying to execute a package from the command line and want to upgrade an existing db. The arguments I'm using are below:
/server:myserver /database:mydb /username:myuser /password:mypassword /quiet
This fails with error: CREATE DATABASE permission denied in database master
I read in the forum that giving the calling user those permissions will allow the script to be run successfully. I don't have that luxury unfortunately. Is there another way to execute an upgrade using this tool?
Thanks
Chris
Comments
What permissions does the user that will want to run the upgrade package have?
The CREATE DATABASE permission should only be needed for a new database package and not an upgrade package.
Thanks,
Redgate Foundry
When we choose a "Package a Script" project the command line execution always try to "create a database".
i have the same problem...
There should be an argument as /upgrade, instead of /makedatabase
There is a bug in SQL Packager that is causing a database to be created whenever an existing script is packaged. The workaround for this is described in our knowledge base.
Sorry for the inconvenience.