About 6,520,000 results
Open links in new tab
  1. sql server - Query to return database, schema, table, column for …

    Mar 5, 2019 · For SchemaName, TableName, ColumnName, ColumnType can be found in Select * from INFORMATION_SCHEMA.COLUMNS as ColumnNames here. For Getting database …

  2. Get SQL Server schema via a SQL query? - Stack Overflow

    Aug 23, 2009 · My end goal here is to see what tables exist, possibly get a SQL dump of the vital tables, and then recreate the whole thing the right way. The INFORMATION_SCHEMA …

  3. SQL Query to search schema of all tables - Stack Overflow

    Oct 13, 2016 · Is there a SQL query to do this? I would query the information_schema - this has views that are much more readable than the underlying tables. You can also try doing this …

  4. How to use INFORMATION_SCHEMA Views in SQL Server

    May 29, 2024 · In SQL Server, INFORMATION_SCHEMA Views is a collection of views stored in the INFORMATION_SCHEMA database that allows users to retrieve metadata about various …

  5. How to Write Efficient Queries to Get Database Schema in SQL

    Dec 11, 2024 · SQL Server, a popular relational database management system, offers various methods to query and retrieve database schema information. This article delves into the …

  6. How to Query a DB for all it's Schema and Associated Table Names

    Mar 15, 2023 · What is needed is a list of each schema and tables in a DB. I can find a simple query that returns this simple list. Found queries that in addition to above and also columns, …

  7. How do i look at contents of a schema? - Microsoft Q&A

    Apr 25, 2024 · How do i look at contents of a schema? You can query the INFORMATION_SCHEMA views to retrieve information about the objects (tables, views, …

  8. Querying the INFORMATION_SCHEMA - SQLServerCentral

    May 10, 2001 · Obtaining clarity of the database on your own is not always the easiest thing to do. Enter the INFORMATION_SCHEMA views to rapidly aid you in your quest. The …

  9. List schemas in SQL Server database - SQL Server Data Dictionary Queries

    Jun 25, 2018 · Query below lists all schemas in SQL Server database. Schemas include default db_* , sys, information_schema and guest schemas. If you want to list user only schemas use …

  10. INFORMATION_SCHEMA.COLUMNS - SQL Server Tips

    Apr 1, 2025 · The INFORMATION_SCHEMA.COLUMNS view allows you to get information about all columns for all tables and views within a database. By default it will show you this …

Refresh