i have a website hosted on GoDaddy and I need to create a database for it. So headed to the Databases section and created a MS SQL Database then on my local pc I tried to access the database via SQL Server Management studio, I was able to login to the database but I cannot make any operations. I get it does not exist or you do not have permission. So deciced to go the Security tab, then Login and tried to change my username that I'm using to systemadmin role but I also got Cannot alter the server role 'sysadmin', because it does not exist or you do not have permission. What could be the problem? There are no other accounts on it. The default sa account is disbaled and I can't enable it coz it will prompt no permissions etc.
I don't understand it. Why GoDaddy allows me to create a database but with no permissions or rather I cannot alter it. Anyone facing the same issue? Thanks
Well it's quite clear. You cannot set yourself as an SA. This would be a great security breach!
You need to add a Login in your database for your account. I think you headed to the server logins. The server login seem to be ok, as you already said. You can connect to the server itself. You need to add a login or a loginmapping to your server login inside your database.
I don't know the backend of goDaddy, but I'm pretty sure that you have some credentials provided after creating your database.
Related
we launched new SQL Server on AWS. Everything looks great, I can access the server via SSMS. However, I can't set up new credentials for one specific database.
This database should be accessible via MS Access. It works in MS Access, when admin login and password, but I would like to give the users access only to the specific database.
I read this article and I guess I should created SQL user with password:
https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-database-user?view=sql-server-2017
Unfortunately, I do not see this option in SSMS.
Don't you have any idea please, why it is so?
So my comprehensive requirement:
1. I need to set up password protected database.
2. This database will serve linked tables for MS Access.
Thank you very much for help,
Vaclav
I have already found a solution. My login didn't have an appropriate server rights. To create a new user and define his permissions you have to "Server role" - securityadmin assigned to your login.
It is described here:
https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/server-level-roles?view=sql-server-2017
Best regards,
Vaclav
I migrated my Access Backend to SQL Server using SQL Server Migration Assistant. During the Installation of SQL Server I made sure that my windows account was set up as the sys admin. When I view my login "office/dave" I can see that I have sys admin server role. I have access to every objects in the SQL Backend when I am browsing through SSMS but I could not access the database diagrams.
I did fix this issue by changing the database owner to [sa] from "office/dave" in the database properties and this let me access the database diagram but I do not understand why this fixed the problem.
I was connected as sys admin and database owner. Why is this fix needed?
This might help someone in the future. This error can occur which did for me because I was logged in as Domain User and was not connected to local User. This error can be fixed by changing the database owner to [sa] account.
I have refreshed the development database manually from production database backup. After refreshing the database, the Dev team is unable to login and access to that database. Please let me know your thoughts to troubleshoot systematically to resolve this issue.
Thanks and regards
Unable to login coz:
1. users are don't have a permission to access your database.
2. Check Sql service if running on you system Services.
3. if on server or another pc, Check server ip if you'd be able to ping it.(Network Connectivity).
Hope it helps.
First thing First.
Do Check the Server Name and Authentication
If you have updated your DB in your local machine. Then the Server Name must be like:
SystemName\SQLEXPRESS
Do Also check out the Login with the permission
After refreshing the database, all the data level user access will be lost. Only SysAdmin users will be able to access the database. For any database level users need to be granted access again.
I am using Sql server 2008-r2 and connect it using windows authentication.
when i create database then i am getting error
Create database permission denied in database Master
What may be the reason of it and how can it be resolved?
I even forgot the sql server authentication password also to connect it.
Go into the master security settings and try to give your user SA permissions.
It may be that your Windows Authentication has security rights, but not create rights.
If that doesn't work, you might have to install a new instance of SSMS and create a linked server to the data that you need.
PS: This should be a comment, but I can't make comments for another 7 reputation.
I'm not very knowledgeable of ASP.NET or MS SQL at all, but was asked to migrate a website based on ASP.NET to a new host. I am moving the site to a HostGator Windows Shared account.
There is a small admin section of the site that has a MS SQL database behind it. I obtained a copy of this database in a .bak file from the previous host.
I was a able to create a MS SQL database in HostGator and import the backup file into it. The database came with a user that was being used to connect to the database from the website.
Although before being able to connect to the DB with this user, HostGator forced me change it's username to conform to their format of "HostGatorUserName_UserName".
Then after successfully connecting to the DB with this user, I got the "Cannot find stored procedure" error. I found out this is probably due to the user not having permission to access any of the stored procedures it did before. I believe this is probably due to the username having been changed.
Now I have no idea how to restore permissions to these stored procedures to the user. HostGator does not provide any web admin for MS SQL although I was able to connect to the database (with the same user) with Oracle SQL Developer (I'm on a Mac). I've googled how to grant permissions to a stored procedure to a user, but of course I cannot grant permissions to myself. I can't find anywhere in Plesk on HostGator where I can manage permissions for existing users or ones I create.
If this is the only login HostGator has provided you, then they need to elevate the rights (probably by adding the user to the dbo role). This may not be what you want, but it's not clear to me what was in place before this database got restored. Did you have a login to the server that could access other databases?
If they also gave you a different login to connect with, that login is probably in the dbo role. So you can login as that user and then:
GRANT EXEC ON dbo.procedure_name TO HostGatorUserName_UserName;
(Sorry but I don't know anything about Plesk. And you'll probably get better answers if you talk to HostGator support to get your access rights straightened out.)