About 5,110,000 results
Open links in new tab
  1. OBJECT_SCHEMA_NAME (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 18, 2025 · For example, in the following query, the context of the current database is AdventureWorks2025. The Database Engine tries to return an object schema name for the specified …

  2. Using the OBJECT_SCHEMA_NAME function to return the ... - SQL …

    Jun 4, 2009 · The following query uses multiple joins (via the sys.sysobjects and sys.sysusers System Compatibility Views) to return schema information for each object in the result set.

  3. Understanding SQL Server Schemas and the OBJECT_SCHEMA_NAME

    Dec 26, 2024 · In this article, we will explore the benefits of using schemas and introduce the OBJECT_SCHEMA_NAME () function, which simplifies the retrieval of schema information.

  4. SQL Query to Get Column Names from Table in SQL Server

    Dec 11, 2025 · SQL Query to Get Column Names from Table in SQL Server Why Do You Need to Query Column Names? Before we dive into the code, let’s establish why we are doing this. Dynamic …

  5. sp_rename (Transact-SQL) - SQL Server | Microsoft Learn

    Jun 23, 2025 · The following example creates a statistics object named contactMail1 and then renames the statistic to NewContact by using sp_rename. When you rename statistics, the object must be …

  6. USE DATABASE | Snowflake Documentation

    The following example shows how commands that refer to objects using unqualified names produce different output after a USE command to switch databases. The schemas, tables, table data, and so …

  7. Understanding Schema Prefixes with SQL – My Blog

    May 9, 2024 · Schema prefixes help in disambiguating object names. If two schemas contain tables with the same name, specifying the schema prevents confusion and ensures that the correct table is …

  8. SQL SERVER – Get Schema Name from Object ID using OBJECT_SCHEMA_NAME

    May 15, 2012 · However, I have been using function OBJECT_SCHEMA_NAME to get the schema name. If I have to write the same code from the beginning I would have written the same code as …

  9. Naming conventions for SQL Server stored procedures

    Apr 22, 2025 · This topic covers various options for naming stored procedures so you can create a consistent naming approach for your database objects.

  10. Schema Object Names and Qualifiers - Oracle

    Some schema objects are made up of parts that you can or must name, such as the columns in a table or view, index and table partitions and subpartitions, integrity constraints on a table, and objects that …