Grant someone the right to show the indicative execution plan - sql-server

How can I grant someone the right to run the execution plan in Management Studio 2012.
My details for the MSSQL Server Management Studio are the following:
Microsoft SQL Server Management Studio 11.0.2100.60
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 2.6 3.0 4.0 6.0
Microsoft Internet Explorer 9.10.9200.17054
Microsoft .NET Framework 4.0.30319.34209
Operating System 6.1.7601
I hope that is sufficient information.
Edit:
I have the full rights as the system administrator.

You can use:
USE db
Go
GRANT SHOWPLAN To User

Related

VS and SSMS Crashing

I'm not very expert on SQL, and I would ask your support.
I have a SQL Server 2016 std
Microsoft SQL Server 2016 (SP2-CU13) (KB4549825) - 13.0.5820.21 (X64)
May 22 2020 07:24:35 Copyright (c) Microsoft Corporation Standard
Edition (64-bit) on Windows Server 2016 Standard 10.0 (Build
14393: ) (Hypervisor)
with Microsoft SQL Managed Studio 18
SQL Server Management Studio 15.0.18338.0
SQL Server Management Objects (SMO) 16.100.41011.9
Microsoft Analysis Services Client Tools 15.0.19205.0
Microsoft Data Access Components (MDAC) 10.0.14393.0
Microsoft MSXML 3.0 6.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 10.0.14393
and Microsoft SQL Management Studio 16 (installed for Integration Service Compatibility)
Microsoft SQL Server Management Studio 13.0.16106.4
Microsoft Analysis Services Client Tools 13.0.1700.441
Microsoft Data Access Components (MDAC) 10.0.14393.0
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.14393.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.14393
installed on Windows Server 2016 Std (VM on Microsoft Hyper-V with 80 GB RAM and 8 vCPU).
The users received a crash system
I cancelled the folder:
C:\Users<user profile>\AppData\Local\Microsoft\SQL Server Management
Studio\
But the problem was not solved.
Another problem from the users is:
In the Windows Application Events viewer log I see these:
The COM+ Event System failed to fire the Logoff method on event class
{D5978630-5B9F-11D1-8DD2-00AA004ABD5E} for publisher and subscriber .
The display name of the subscription is "Visual Studio ISensLogon
Subscription". The HRESULT was 8001010a.
and these:
Application 'C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE\devenv.exe' (pid 24456) cannot be restarted - Application SID does not match Conductor SID..
In the Windows System Events viewer I see this:
The application-specific permission settings do not grant Local
Activation permission for the COM Server application with CLSID
{8D8F4F83-3594-4F07-8369-FC3C3CAE4919} and APPID
{F72671A9-012C-4725-9D2F-2A4D32D65169} to the user NT
AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC)
running in the application container Unavailable SID (Unavailable).
This security permission can be modified using the Component Services
administrative tool.
What I can check to resolve my problems?
Thanks for the support
Marco

SQL Server database back up incompatibility due to version difference [duplicate]

This question already has answers here:
SQL Server database backup restore on lower version
(13 answers)
Closed 4 years ago.
I am currently using Microsoft SQL Server 2012 (Version: 11.0.2100.60). When I restore backup file from the client database, I get this message:
When I search google for version 12.00.2269, there is no for such kind of version (maybe I am not found).
Please let me know where can I download for that version and after upgrading, it can still restore the database from the backup file 12.00.2269 to 11.0.2100.60?
**
Update
**
Here is my SQL server info:
Microsoft SQL Server Management Studio 11.0.2100.60
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 5.0 6.0
Microsoft Internet Explorer 9.11.9600.19035
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.1.7601
Here is my Client's SQL server info :
Microsoft SQL Server Management Studio 11.0.2100.60
Microsoft Data Access Components (MDAC) 6.1.7601.17514
Microsoft MSXML 3.0 4.0 6.0
Microsoft Internet Explorer 9.11.9600.18837
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.1.7601
Only different things is Internet Explorer Version and MSXML version.I have no idea why error message shows the version is higher than us.
Sql server doesn't have the backward compatibility feature for database restoring function,
It is not possible to downgrade a database. 11.0.2100.60 is the SQL Server 2012 version. There is absolutely no way you can restore or attach this database to the SQL Server 2014 instance you are trying to restore on (11.0.2100.60 is SQL Server 2012). Your only options are:
Upgrade this instance to SQL Server 2014 (12.00.2269)
Restore the backup you have on a SQL Server 2012 instance, export all the data and import it on a SQL Server 2014 database.
Sql server version details :- http://sqlserverversions.000webhostapp.com/

Can I get USER/PWD for MYSQL from WINDOWS SERVER

I 'v been trying to get user/pwd for a database in a Windows server.
Server is using : Microsoft SQL server management studio - 2017
Microsoft SQL Server Management Studio 14.0.17213.0
Microsoft Analysis Services Client Tools 14.0.1016.232
Microsoft Data Access Components (MDAC) 6.3.9600.17415
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.9600.18861
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.9600
You can't get an existing password since only a hash is stored. If you are an administrator on the box, you can reset the sa password as described here and then add accounts and/or reset passwords as needed.

SSMS 2014 - Failed to retrieve data for this request - unknown property IsMemoryOptimized

I get the following error when I try to expand keys for a table using SSMS 2014 on Azure SQL Server (13.0.702). If I use "Script Table as" I can get a working query. Has anyone else experienced this?
Error:
Microsoft SQL Server Management Studio
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
ADDITIONAL INFORMATION:
unknown property IsMemoryOptimized (Microsoft.SqlServer.Management.Sdk.Sfc)
Information from SSMS:
Microsoft SQL Server Management Studio 12.0.2000.8
Microsoft Analysis Services Client Tools 12.0.2000.8
Microsoft Data Access
Components (MDAC) 10.0.10240.16384
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.11.10240.16384
Microsoft .NET Framework 4.0.30319.42000
Operating System 6.3.10240
The solution for me was to download the lastest cumulative update to SQL Server from http://sqlserverbuilds.blogspot.com.es/
I downloaded the newest version of SSMS, currently Community Technology Preview 3 (CTP3) and now everything works. Link to latest SSMS:
https://msdn.microsoft.com/en-US/library/mt238290.aspx

How do I open Localdb SQL ProjectV12

Short question: I have a visual studio 2015 database project. In my solution. I am using the database first approach for handling my datalayer. How do I open the actual database for management. I can not seem to find any type of SQL server database management tool.
Long question: I am creating a visual studio 15 web application. I am using the visual studio database project for creating and managing the database schema. I was able to create the database during the database compare and update. My server name was "(localdb)\ProjectsV12". I was also able to create my entities from the database. So I know the database exists somewhere. I have never installed anything more than the SQL server express on my local box (I usually use Azure SQL).
According to the error log it is a Microsoft SQL Server 2014 - 12.0.2000.8 (X64) ,Express Edition (64-bit) on Windows NT 6.3 (Build 10240: )
I also have a windows 10 box running Visual Studio 15. So where is the sql management tool?
The localDB is only for development
it can be accessed from server explorer in VS2015 --> Data Connections
connect to server "(localdb)\ProjectsV12" and your DB name
Be aware that you can have multiple SqlLocalDB instances installed on your computer and you can list them by opening up a CMD Window and executing the following command
sqllocaldb versions
For your reference:
The Visual Studio Server Explorer probably gives you all you need, but note you can also connect to localdb from SQL Server Management Studio (download), which is the de facto standard for managing SQL Server databases.

Resources