Skip to content

Instantly share code, notes, and snippets.

@MarkPryceMaherMSFT
Created May 22, 2025 08:17
Show Gist options
  • Save MarkPryceMaherMSFT/a244cf5e4ff58ec2a89c7d330342cceb to your computer and use it in GitHub Desktop.
Save MarkPryceMaherMSFT/a244cf5e4ff58ec2a89c7d330342cceb to your computer and use it in GitHub Desktop.
Useful information about the workspace/warehouse/sql ae
-- Is it a lakehouse or warehouse
SELECT db_name() as db_name, DATABASEPROPERTYEX(db_name(), 'Edition') as [Type]
-- Whats the workspace id?
SELECT DATABASEPROPERTYEX('master', 'workspaceid') AS workspaceid
-- What is the artifact id?
SELECT DATABASEPROPERTYEX(db_name(), 'ArtifactId') AS ArtifactId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment