About 33,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 names you can use select * from sys.databases. When user select the database you can change your connection string and get the column info.

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

    Aug 23, 2009 · The INFORMATION_SCHEMA schema is a good place to start: SELECT * FROM INFORMATION_SCHEMA.TABLES SELECT * FROM INFORMATION_SCHEMA.VIEWS ...and so on. You might also want to have a look at using SMO, an …

  3. How do I obtain a list of all schemas in a Sql Server database

    Sep 15, 2010 · If you are using Sql Server Management Studio, you can obtain a list of all schemas, create your own schema or remove an existing one by browsing to: Databases - [Your Database] - Security - Schemas

  4. Getting Started with SQL Schemas - MSSQLTips.com - SQL Server

    Dec 12, 2022 · Schemas logically group related objects into a single container that keeps them separate from other database objects in other containers (schemas). Schemas are database oriented. This allows for the same schema in a different database, and they will …

  5. A Walkthrough of SQL Schema - SQL Shack

    Oct 9, 2019 · This article gives an overview of SQL Schema and its usage in SQL Server. Introduction to Schema. A SQL database contains multiple objects such as tables, views, stored procedures, functions, indexes, triggers.

  6. Retrieving database schema information - ADO.NET Provider for SQL Server

    Jun 25, 2024 · Obtaining schema information from a database is accomplished with the process of schema discovery. Schema discovery allows applications to request that managed providers find and return information about the database schema, …

  7. Database Schema in SQL Server - TutorialsTeacher.com

    In SQL Server, a schema is a logical collection of database objects such as tables, views, stored procedures, indexes, triggers, functions. It can be thought of as a container, created by a database user. The database user who creates a schema is the schema owner.

  8. List schemas in SQL Server database

    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 this script .

  9. How to view schema of Microsoft SQL Server? - Stack Overflow

    Feb 17, 2018 · I need a schema of Microsoft SQL Server like in this screenshot: I created a schema according to Create Schema in SSMS , but I can not view it in Microsoft SQL Server Management Studio. Databases -> [YourDatabase] -> Security -> Schemas …

  10. How to Write Efficient Queries to Get Database Schema in SQL Server

    Dec 11, 2024 · Efficiently querying the database schema in SQL Server is essential for database administrators and developers to understand the structure of their databases. By following best practices, leveraging system views, and optimizing queries, you …