A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/get-started-ssms below:

Connect to Synapse SQL with SQL Server Management Studio - Azure Synapse Analytics

Connect to Synapse SQL with SQL Server Management Studio

In this article

You can use SQL Server Management Studio (SSMS) to connect to and query Synapse SQL in Azure Synapse Analytics through either serverless SQL pool or dedicated SQL pool resources.

Note

Supported tools for serverless SQL pool:

Prerequisites Connect to Synapse SQL

To connect to Synapse SQL using dedicated SQL pool, follow these steps:

  1. Open SQL Server Management Studio (SSMS).

  2. In the Connect to Server dialog box, fill in the fields, and then select Connect:

  3. Expand your Azure SQL Server in Object Explorer. You can view the databases associated with the server, such as the sample AdventureWorksDW database. You can expand the database to see the tables:

To connect to Synapse SQL using serverless SQL pool, follow these steps:

  1. Open SQL Server Management Studio (SSMS).

  2. In the Connect to Server dialog box, fill in the fields, and then select Connect:

  3. To explore, expand your Azure SQL server. You can view the databases associated with the server. Expand demo to see the content in your sample database.

Run a sample query

After you establish a database connection, you can query the data.

  1. Right-click your database in SQL Server Object Explorer.

  2. Select New Query. A new query window opens.

  3. Copy the following Transact-SQL (T-SQL) query into the query window:

    SELECT COUNT(*) FROM dbo.FactInternetSales;
    
  4. Run the query by selecting Execute or use the following shortcut: F5.

  5. Look at the query results. In the following example, the FactInternetSales table has 60,398 rows.

After you establish a database connection, you can query the data.

  1. Right-click your database in SQL Server Object Explorer.

  2. Select New Query. A new query window opens.

  3. Copy the following Transact-SQL (T-SQL) query into the query window:

    SELECT COUNT(*) FROM demo.dbo.usPopulationView;
    
  4. Run the query by selecting Execute or use the following shortcut: F5.

  5. Look at the query results. In this example, the usPopulationView view has 3,664,512 rows.

Additional resources

In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4