
SQL Server query to find all permissions/access for all users in a database
Aug 13, 2011 · I would like to write a query on a sql 2008 that will report all the users that have access to a specific database, or objects within the database such as tables, views, and stored procedures, either
sql server - Get size of all tables in database - Stack Overflow
Oct 25, 2011 · 802 If you are using SQL Server Management Studio (SSMS), instead of running a query (which in my case returned duplicate rows) you can run a standard report. Right click on the …
How can I generate an entity–relationship (ER) diagram of a database ...
128 I want to generate an ER diagram of an SQL database using Microsoft SQL Server Management Studio (SMSS). However, I don’t know how to. I found this technique online: Making ER Diagram …
How can I set an SQL Server connection string? - Stack Overflow
May 8, 2017 · I'm developing a simple C# application, and I'd like to know this: When I connect my application to SQL Server on my PC, I know the connection string (server name, password, etc.), but …
Wait on the Database Engine recovery handle failed. Check the SQL ...
During service startup, SQL Server begins the database recovery process to ensure database consistency. Part of this database recovery process involves consistency checks on the underlying …
Listing users and their roles in SQL Server - Stack Overflow
Aug 31, 2010 · I want to get a list of all the users in the SQL server database and their roles. What I'm trying to do is to find out if certain users have privileges to more than one database. Is there a query w...
Create Local SQL Server database - Stack Overflow
Apr 11, 2017 · After installation you need to connect to Server Name : localhost to start using the local instance of SQL Server. Once you are connected to the local instance, right click on Databases and …
SQL Server: how do I export entire database? - Stack Overflow
7 Using SQL Server Management Studio, you use feature. And Obviously, you restore to another SQL Server database instance (a "database instance" can contain multiple databases.). The version of …
How do I see active SQL Server connections? - Stack Overflow
Jan 21, 2019 · I am using SQL Server 2008 Enterprise. I want to see any active SQL Server connections, and the related information of all the connections, like from which IP address, connect …
How to fix Recovery Pending State in SQL Server Database?
Sep 14, 2018 · One way to end up with a database that is in "Recovery Pending" state, is in the context of restoring a backup of an encrypted database (encrypted with TDE) on a new SQL Server instance.