Skip to content

Commit 302188d

Browse files
authored
Indentation corrections
1 parent e860e96 commit 302188d

1 file changed

Lines changed: 54 additions & 54 deletions

File tree

docs/azure-data-studio/quickstart-sql-server.md

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ If you don't have access to a SQL Server, select your platform from the followin
3636

3737
3. This article uses *SQL Login*, but *Windows Authentication* is supported. Fill in the fields as follows:
3838

39-
- **Server Name:** Enter server name here. For example, localhost.
40-
- **Authentication Type:** SQL Login
41-
- **User name:** User name for the SQL Server
42-
- **Password:** Password for the SQL Server
43-
- **Database Name:** \<Default\>
44-
- **Server Group:** \<Default\>
39+
- **Server Name:** Enter server name here. For example, localhost.
40+
- **Authentication Type:** SQL Login
41+
- **User name:** User name for the SQL Server
42+
- **Password:** Password for the SQL Server
43+
- **Database Name:** \<Default\>
44+
- **Server Group:** \<Default\>
4545

4646
![New Connection Screen](media/quickstart-sql-server/new-connection-screen.png)
4747

@@ -53,22 +53,22 @@ The following steps create a database named **TutorialDB**:
5353

5454
2. Paste the following snippet into the query window: and then select **Run**.
5555

56-
```sql
57-
USE master
58-
GO
59-
IF NOT EXISTS (
60-
SELECT name
61-
FROM sys.databases
62-
WHERE name = N'TutorialDB'
63-
)
64-
CREATE DATABASE [TutorialDB];
65-
GO
66-
IF SERVERPROPERTY('ProductVersion') > '12'
67-
ALTER DATABASE [TutorialDB] SET QUERY_STORE=ON;
68-
GO
69-
```
70-
71-
After the query completes, the new **TutorialDB** appears in the list of databases. If you don't see it, right-click the **Databases** node and select **Refresh**.
56+
```sql
57+
USE master
58+
GO
59+
IF NOT EXISTS (
60+
SELECT name
61+
FROM sys.databases
62+
WHERE name = N'TutorialDB'
63+
)
64+
CREATE DATABASE [TutorialDB];
65+
GO
66+
IF SERVERPROPERTY('ProductVersion') > '12'
67+
ALTER DATABASE [TutorialDB] SET QUERY_STORE=ON;
68+
GO
69+
```
70+
71+
After the query completes, the new **TutorialDB** appears in the list of databases. If you don't see it, right-click the **Databases** node and select **Refresh**.
7272
7373
![Create database](media/quickstart-sql-server/create-database.png)
7474
@@ -85,52 +85,52 @@ The query editor is still connected to the *master* database, but we want to cre
8585
> [!NOTE]
8686
> You can append this too, or overwrite the previous query in the editor. Note that clicking **Run** executes only the query that is selected. If nothing is selected, clicking **Run** executes all queries in the editor.
8787
88-
```sql
89-
-- Create a new table called 'Customers' in schema 'dbo'
90-
-- Drop the table if it already exists
91-
IF OBJECT_ID('dbo.Customers', 'U') IS NOT NULL
92-
DROP TABLE dbo.Customers;
93-
GO
94-
-- Create the table in the specified schema
95-
CREATE TABLE dbo.Customers
96-
(
97-
CustomerId int NOT NULL PRIMARY KEY, -- primary key column
98-
Name nvarchar(50) NOT NULL,
99-
Location nvarchar(50) NOT NULL,
100-
Email nvarchar(50) NOT NULL
101-
);
102-
GO
103-
```
88+
```sql
89+
-- Create a new table called 'Customers' in schema 'dbo'
90+
-- Drop the table if it already exists
91+
IF OBJECT_ID('dbo.Customers', 'U') IS NOT NULL
92+
DROP TABLE dbo.Customers;
93+
GO
94+
-- Create the table in the specified schema
95+
CREATE TABLE dbo.Customers
96+
(
97+
CustomerId int NOT NULL PRIMARY KEY, -- primary key column
98+
Name nvarchar(50) NOT NULL,
99+
Location nvarchar(50) NOT NULL,
100+
Email nvarchar(50) NOT NULL
101+
);
102+
GO
103+
```
104104
105105
After the query completes, the new **Customers** table appears in the list of tables. You might need to right-click the **TutorialDB > Tables** node and select **Refresh**.
106106
107107
## Insert rows
108108
109109
- Paste the following snippet into the query window and click **Run**:
110110
111-
```sql
112-
-- Insert rows into table 'Customers'
113-
INSERT INTO dbo.Customers
114-
([CustomerId], [Name], [Location], [Email])
115-
VALUES
116-
( 1, N'Orlando', N'Australia', N''),
117-
( 2, N'Keith', N'India', N'keith0@adventure-works.com'),
118-
( 3, N'Donna', N'Germany', N'donna0@adventure-works.com'),
119-
( 4, N'Janet', N'United States', N'janet1@adventure-works.com')
120-
GO
111+
```sql
112+
-- Insert rows into table 'Customers'
113+
INSERT INTO dbo.Customers
114+
([CustomerId], [Name], [Location], [Email])
115+
VALUES
116+
( 1, N'Orlando', N'Australia', N''),
117+
( 2, N'Keith', N'India', N'keith0@adventure-works.com'),
118+
( 3, N'Donna', N'Germany', N'donna0@adventure-works.com'),
119+
( 4, N'Janet', N'United States', N'janet1@adventure-works.com')
120+
GO
121121
```
122122
123123
## View the data returned by a query
124124
125-
1. Paste the following snippet into the query window and click **Run**:
125+
- Paste the following snippet into the query window and click **Run**:
126126
127-
```sql
128-
-- Select rows from table 'Customers'
129-
SELECT * FROM dbo.Customers;
130-
```
127+
```sql
128+
-- Select rows from table 'Customers'
129+
SELECT * FROM dbo.Customers;
130+
```
131131
132132
![Select results](media/quickstart-sql-server/select-results.png)
133133
134134
## Next steps
135135
136-
Now that you've successfully connected to SQL Server and run a query try out the [Code editor tutorial](tutorial-sql-editor.md).
136+
Now that you've successfully connected to SQL Server and run a query try out the [Code editor tutorial](tutorial-sql-editor.md).

0 commit comments

Comments
 (0)