# Microsoft SQL Server

## Create Microsoft SQL Server Integration

When inside a workbook, click **View** > **Databases**, then click the **+** icon and follow the on-screen instructions.

![Create a Microsoft SQL Server connection](https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2FIeY3MQnsQyx5xY4rm5H1%2FScreenshot%202023-06-30%20at%2014.07.22.png?alt=media\&token=b6ac1f1c-1a26-4241-9ec5-41d204650610)

For detailed instructions, see [connect-your-data-to-workspace](https://datalab-docs.datacamp.com/connect-to-data/connect-your-data-to-workspace "mention").

If you want to experiment with SQL Server without setting up a connection, you can use our sample database with Bicycle Sales data ([source](https://www.sqlservertutorial.net/sql-server-sample-database/)).&#x20;

## Query the database

You can now query the SQL Server database with a [sql-cell](https://datalab-docs.datacamp.com/work/sql-cell "mention"). Select it in the **Select source** dropdown in the top left corner of a SQL cell, or select the sample SQL Server database.

![Example of a SQL cell using the MSSQL Demo database connection. The query result is available as df.](https://4179539225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZqboFGZzD87nn7oPsm%2Fuploads%2F059dHKa1toQ00wN5T7Mk%2Fimage.png?alt=media\&token=d713b24d-bc67-4daf-84ba-8b8d36f4de97)

###
