简体   繁体   中英

Unable to access imported data on Cloud SQL with SQL Server database

I'm trying to export a database from a CloudSQL SQL Server Express Database, that is currently attached on a user other than sqlserver, and import it on a new CloudSQL SQL Server Standard Database. While I can export/import normally with BAK files, I'm unable to create a new user on the destination database and grant it the db_owner on the imported schema, everything always goes only to the sqlserver user. Can someone help me out?

Best regards.

You haven't mentioned what have you tried, for creating users and what output you received when you tried that.

But have you tried creating the user using gcloud cli? gcloud sql users create

https://cloud.google.com/sdk/gcloud/reference/sql/users/create

You can assign the above user to access a specific database once it has been created using the command above.

If the new Standard Database is on a new Cloud SQL instance, you might be using the new default MASTER database. By design, the "db_owner" role cannot be attributed there, so you may create a new database and grant the role on that new one instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM