About 50 results
Open links in new tab
  1. 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

  2. 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 …

  3. sql server - Database stuck in "Restoring" state - Stack Overflow

    I had this situation restoring a database to an SQL Server 2005 Standard Edition instance using Symantec Backup Exec 11d. After the restore job completed the database remained in a "Restoring" …

  4. 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 …

  5. Get all table names of a particular database by SQL query?

    Oct 12, 2010 · SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE' But it is giving table names of all databases of a particular server but I …

  6. 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 …

  7. SQL Server: how do I export entire database? - Stack Overflow

    I need to export database from one server and import it into another server. How do I export the entire database to a file, or two files mdf, ldf (either option is fine) How do I import it into a new

  8. 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.

  9. Copy tables from one database to another in SQL Server

    Dec 8, 2013 · SQL Server Management Studio's "Import Data" task (right-click on the DB name, then tasks) will do most of this for you. Run it from the database you want to copy the data into. If the …

  10. How to drop all tables in a SQL Server database?

    Dec 9, 2011 · 532 You can also delete all tables from a database using only the SSMS UI tools (without using a SQL script). Sometimes, this method can be more convenient, especially if it is performed …