About 12,400 results
Open links in new tab
  1. sql server - Get size of all tables in database - Stack Overflow

    Oct 25, 2011 · To use this for all tables at once: USE MyDatabase; GO sp_msforeachtable 'EXEC sp_spaceused [?]' GO You can also get disk usage from within the right-click Standard Reports …

  2. How to fix Recovery Pending State in SQL Server Database?

    Sep 14, 2018 · Rename the DB and the Log files (Database Properties -> Files) In the Object Explorer window in SQL Management Studio, refresh the 'Databases Folder', if you see that there is another …

  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. sql - Find out current database name (MSSQL) - Stack Overflow

    Sep 15, 2022 · 7 With the MSSQL queries below, you can check the current database: SELECT DB_NAME() GO master In addition, if you don't specify a database on sqlcmd, "master" database is …

  5. sql - How to find a string inside a entire database? - Stack Overflow

    I have one specific string, such as "123abcd" for example but I don't know the name of the table or even the name of the column inside the table on my SQL Server Database. I want to find it with a ...

  6. How do I search an SQL Server database for a string?

    Dec 8, 2019 · I need to search an SQL Server database for all mentions of a specific string. For example, I would like to search all tables, views, functions, stored procedures, ... for string …

  7. SQL Server 2008: How to query all databases sizes?

    I have MS SQL 2008 R2, 500 databases. What is the most efficient, easiest and 'modern' way to query all databases sizes. The output should have columns: DatabaseName DataFilesSize LogFilesSize

  8. How to fetch the row count for all tables in a SQL SERVER database

    Feb 8, 2010 · I am searching for a SQL Script that can be used to determine if there is any data (i.e. row count) in any of the tables of a given database. The idea is to re-incarnate the database in case there ...

  9. Is there a limit size for a SQL Server database? - Stack Overflow

    Nov 26, 2024 · A database is composed of files, which store the data. A database can grow as large as the memory available which stores it.

  10. Import / Export database with SQL Server Server Management Studio

    Copied database.mdf and database_log.ldf from the above mentioned folder (SQL 2012), then transferred those 2 files to a new server with different version (SQL Express 2014) of SQL …