MSSQL permission issue for AWS schema convertion - sql-server

Trying to connect from AWS schema conversion tool to MS SQL in AWS cloud. In the process got the below error
2023-02-15 18:15:16.742 [ 53] LOADER ERROR Error executing 'get-log-shipping' query: com.microsoft.sqlserver.jdbc.SQLServerException: The SELECT permission was denied on the object 'log_shipping_primary_databases', database 'msdb', schema 'dbo'.
I'm logging into the database using SSMS using the same admin ID created while spinning the sql server in AWS and the same ID to connect to sql server from AWS schema convertion tool too.
Where should I enable the permission for the above log shipping. Is there anyother login credential I should use to enable the above for the user id with above privileges?
Thanks

Related

Data Migration Assistant SQL Server to Azure VIEW Server State

I have a SQL Server 2012 database that I want to migrate to Azure SQL using the Data Migration Assistant v5.2. When I get to the Select Target section, I enter a SQL Authentication account that is in the dbmanager group. I get an error:
VIEW SERVER STATE permission was denied on object 'server', database 'master'.
The user does not have permission to perform this action.
And can go no further.
How do I get past this?
Thank you,
Dep
To run an assessment(DMA), you have to be a member of the SQL Server sysadmin role.
Please ref: https://learn.microsoft.com/en-us/sql/dma/dma-overview?view=sql-server-ver15#prerequisites
There are two workarounds we could found before we migrate the on-premise SQL server to Azure SQL:
Workaround 1:
From the SQL Server Management Studio via statement:
Connect to the on-premise SQL instance
Select New Query
Use the following statement
GRANT VIEW SERVER STATE TO "AccountName"
Workaround 2:
Update your SSMS to a new version.

Unable to select sys.tables on SQL Server on AWS RDS

I'm currently getting the error:
RequestError: The SELECT permission was denied on the object 'tables', database 'mssqlsystemresource', schema 'sys'.
This is from running a migration with knex.js; we've just recently switched our local database instance over to RDS and are now running into this.
The user that knex.js is using is the master/admin user that is setup when configuring RDS; I would expect it to have full permissions.
Is this just something that AWS RDS does not allow? Seems a bit ridiculous.

Connect to SQL Server database (on AWS-RDS) as admin

I've instantiated a SQL Server database using Amazon's RDS tool.
What I want to to generally, is to bulk insert some csv files.
When I connect with the masteruser, I have almost no permissions (e.g no permissions to grant permissions in the database server)
SQL Error [15247] [S0001]: User does not have permission to perform
this action. com.microsoft.sqlserver.jdbc.SQLServerException: User
does not have permission to perform this action.
When I run select current-user I get GUEST.
How can I change to admin?

CREATE TABLE permission denied in database 'master' on Amazon AWS RDS

I followed the instructions on AWS to set up an RDS instance with SQL server Express,
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_NET.quickstart.html
But I find that when I go to run the commane 'Update-Database' that I get:
CREATE TABLE permission denied in database 'master'.
Turns out I'm logged in as 'Guest'??? Despite setting up the db as per instructions.
So I'm expecting that I must have missed something simple, just looking for any hints as to how to get admin access to my own SQL Server hosted on RDS?
The master database is a System database internal to SQL Server. You never need to run CREATE TABLE inside that database. It sounds like you're not in the right database context: you're running commands against that database rather than your own database.

What is the SQL Server least privilege for AppFabric installation?

We are trying to develop a repeatable process for installing AppFabric, using a SQL Server 2012 Standard Edition instance.
I granted the SQL Server login (using Windows Authentication) being used to install AppFabric the db_creator Server Role, since AppFabric clearly needs to create databases. During Installation of AppFabric, they receive the error:
"The EXECUTE permission was denied on the object 'sp_add_category',
database 'msdb', schema 'dbo'. Could not find stored procedure
'ASInternal_ThrowError'.
I can't very well grant EXECUTE to a stored procedure in a database that doesn't exist when I am granting Server Roles to the login. I have been unable to find any documentation regarding the minimum SQL Server permissions required for the AppFabric installation.
I suppose I could just grant the sysadmin Server Role to that user account, but I'd rather not.

Resources