Fetch the DB Object Backed by an External Database
SELECT OBJECT_SCHEMA_NAME(d.referencing_id) AS referencing_schema, OBJECT_NAME(d.referencing_id) AS referencing_object, o.type_desc AS referencing_type,
Search for a command to run...
Articles tagged with #sql-server
SELECT OBJECT_SCHEMA_NAME(d.referencing_id) AS referencing_schema, OBJECT_NAME(d.referencing_id) AS referencing_object, o.type_desc AS referencing_type,
In SQL Server, the sp_helptext system stored procedure is a handy tool for the developers to retrieve the definition of SQL Server objects such as stored procedure, views, triggers and user-defined functions. This is much faster than navigating throu...
SELECT o.name AS ObjectName, SUM(reserved_page_count) * 8.0 / 1024 AS SizeinMB FROM sys.dm_db_partition_stats AS ps INNER JOIN sys.sysobjects AS o ON ps.object_id = o.id GROUP BY o.name ORDER BY SizeinMB DESC;