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.
Related
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
I have a SQL database created and I am trying to deploy/move that database to the Azure Cloud by using the Deploy Database to SQL Azure Wizard in SQL Server Management Studio. But I have ran into an error after trying to deploy it. I am using the SQL Authentication to log in with my credentials. I also tried installing the Data Migration Application.
The error is:
TITLE: Microsoft SQL Server Management Studio
One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71624: The permission 'CONNECT' is not valid for the target object 'guest' in Microsoft Azure SQL Database v12.
(Microsoft.SqlServer.Dac)
BUTTONS:
OK
I don't understand what this error means and also I don't understand why this error is happening. I looked on the internet for possible solutions but could not find any information. Please help me.
SQL Azure and regular SQL Server aren't entirely compatible.
One of the things that is enabled on regular SQL Server is the guest login. This login allows connection to instance, with a default database of master. Once connected, the user can switch to a different database (use [thedatabase]) if they have the authority to do so.
But in SQL Azure, you connect directly to a single database, and can't switch databases on the connection. So the guest account has no function.
On your source instance (the one you want to migrate), you can revoke this ability so that the wizard won't try to migrate it. Execute revoke connect from guest on your on premise instance.
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?
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.
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.