Is there a way to grant execute permissions for a role or a user using GUI (not T-SQL)? I'm using SQL Server 2008 SP1.
Yes, there is a way. Use Permissions page of Database Properties window.
Once database properties windows is displayed, follow steps 1-4 and press OK.
Using steps A, B you can verify it is creating exactly the expected GRANT EXECUTE TO command.
Check out Microsoft SQL Server Management Studio.
It is part of the SQL Server Client Tools package but there's also a free version called Microsoft SQL Server Management Studio Express.
Related resources:
How to grant Permissions on a Stored Procedure (SQL Server Management Studio)
Permissions (SQL Server Database Engine)
Related
After domain migration I am not able to see the databases in SQL management studio from a Windows 2016 server.
With the same user on a terminal or the SQL server I am able to see all the databaes in SSMS.
Now I am getting stuck with Exact, I can find the server but not the databases from that specific server. On a Terminal server with the same user I am able to login to the database from Exact and SSMS.
I am able to see the databases when I use odbcad.exe and connect with one of the databases.
The user is sysadmin in SQL.
What did I forgot to do?
I tried to use the cliconf.exe with protocols, nothing worked for this situation.
I want to create a new database on SQL Server 2012 using SQL Server Management studio. I ran SQL Server Management studio as administrator and logged in using Windows Authentication, but I still get this error:
Create Database permission denied in database master (Microsoft SQL Server, Error 262)
From this blog and also from this link
Run your SQL Server Management Studio Express.exe as an administrator. That's it.
I faced same problem and I tried to run my SQL Server Management Studio Express.exe as an administrator then it worked.
I'm new to Azure SQL database.
I managed to migrate my database to the cloud.
Now I'm trying to modify a stored procedure using Microsoft SQL Server Management Studio (the latest edition - 2014). But get the following error message:
USE statement is not supported to switch between databases. Use a new
connection to connect to a different database.
Any idea how can I do this?
Also, is there any alternatives to Microsoft SQL Server Management Studio to work with Azure SQL Database?
USE in sql is used to switch between databases not to modify stored procedures. You cannot use USE on Azure SQL as per the specification. You should be able to right-click on the database name in Microsoft SQL Server Management Studio (SSMS) and select New Query, or you can use the dropdown list in the menu to switch databases. You can then use ALTER PROCEDURE (https://msdn.microsoft.com/en-GB/library/ms189762.aspx) to alter your procedure.
You can use Visual Studio as an alternative to SSMS but IMHO Visual Studio is not as productive. It doesnt matter which client you use though, because USE wont work in any of them.
I am new to sql server express and i installed sql server express 2008 R2 with windows authentication as an administrator of the machine.
My objective is to create a database, run some scripts to create tables and data and connect to this database from an asp application.
I created a new database abc with owner as default.
I create a new login and lets call it bob with sql server authentication.(am i doing it right?) Here i chose default database for that login as abc
THen i created a new user (same name bob) within the folder of my database and mapped to the existing login bob.
Is what i am doing right???
when i try to connect through sql server management studio with sql server authentication and entered the username and password for the user bob, i get an error saying that i cant connect.
please clarify what steps i am missing.
Thanks.
As I understand your question, your server uses Windows authentification, but you are trying to connect using SQL Server autentification.
If you need to connect using SQL Server authentication, you need to turn it on. In SQL Server Management Studio (SSMS), select this instance, select Properties, and then on Security tab check the "SQL Server and Windows Authentication mode".
After that you need to restart the SQL Server service (using SSMS or Services from Administrative Tools).
I added a couple of stored procedures to a SQL Server 2005 database at our company. The database uses Windows Authentication. Other users cannot see the procedures, although they can view the database/tables/stored procedures using SQL Server Management Express. What am I missing?
Make sure you grant execute permissions to the SPs:
GRANT EXECUTE ON [sp name] TO [user/role]