Step 1: Create the view
Step 2: Join with sys.sysdatabases and sys.dm_exec_connections check the connection details
In this article, we will learn how to use Visual Studio to query Azure SQL Data Warehouse tables and how to create a new table.
SQL Server database developers seem reluctant to use diagrams when documenting their databases. It is probably because it has, in the past, been difficult to automatically draw precisely what you want, other than a vast Entity-relationship diagram. However, you can do it without buying any third-party tool, just using some existing Java-based open-source tools; and can even automate it entirely, using SQL and PowerShell. Phil Factor shows how.