You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. The create stored procedure snippet has two fields set up for quick edit, *StoredProcedureName* and *SchemaName*. Select *StoredProcedureName*, right-click and select **Change All Occurrences**. Now type *getCustomer* and all *StoredProcedureName* entries change to *getCustomer*.
71
+
3. The create stored procedure snippet has two fields set up for quick edit, *StoredProcedureName* and *SchemaName*. Select *StoredProcedureName*, right-click, and select **Change All Occurrences**. Now type *getCustomer* and all *StoredProcedureName* entries change to *getCustomer*.
5. Change all occurrences of *SchemaName* to *dbo*.
76
-
6. The snippet contains placeholder parameters and body text that needs updating. The *EXECUTE* statement also contains placeholder text because it doesn't know how many parameters your procedure will ultimately have. For this tutorial update the snippet so it looks like the following:
76
+
6. The snippet contains placeholder parameters and body text that needs updating. The *EXECUTE* statement also contains placeholder text because it doesn't know how many parameters the procedure will have. For this tutorial update the snippet so it looks like the following code:
77
77
78
78
```sql
79
79
-- Create a new stored procedure called 'getCustomer' in schema 'dbo'
@@ -108,7 +108,7 @@ SQL Operations Studio proivides many built-in T-SQL snippets for quickly creatin
108
108
109
109
5. To create the stored procedure and give it a test run, press **F5**.
110
110
111
-
The stored procedure is now created, and the **RESULTS** pane displays the returned customer in JSON. Click the returned record to see formatted JSON.
111
+
The stored procedure is now created, and the **RESULTS** pane displays the returned customer in JSON. To see formatted JSON, click the returned record.
112
112
113
113
114
114
## Use Peek Definition
@@ -126,7 +126,7 @@ SQL Operations Studio provides the ability to view an objects definition using t
126
126
@json_val nvarchar(max)
127
127
```
128
128
129
-
4. Replace the body of the stored procedure with the following:
129
+
4. Replace the body of the stored procedure with the following code:
130
130
```sql
131
131
INSERT INTOdbo.Customers
132
132
```
@@ -148,7 +148,7 @@ SQL Operations Studio provides the ability to view an objects definition using t
148
148
)
149
149
```
150
150
7. Delete (or comment out) the *EXECUTE* command at the bottom of the query.
151
-
8. The entire statement should be the following ():
151
+
8. The entire statement should look like the following code:
152
152
153
153
```sql
154
154
-- Create a new stored procedure called 'setCustomer' in schema 'dbo'
@@ -179,7 +179,7 @@ SQL Operations Studio provides the ability to view an objects definition using t
179
179
180
180
8. To create the *setCustomer* stored procedure, press **F5**.
181
181
182
-
## Use save query results as JSON to test our stored procedure
182
+
## Use save query results as JSON to test the setCustomer stored procedure
183
183
184
184
The *setCustomer* stored procedure created in the previous section requires JSON data be passed into the *@json_val* parameter. This section shows how to get a properly formatted bit of JSON to pass into the parameter so you can test the stored procedure.
185
185
@@ -225,7 +225,7 @@ In this tutorial, you learned how to:
225
225
> * Learn about database object details using Peek Definition and Go to Definition
226
226
227
227
228
-
To learn how to enable the **five slowest queries**sample insight, complete the next tutorial:
228
+
To learn how to enable the **five slowest queries**widget, complete the next tutorial:
229
229
230
230
> [!div class="nextstepaction"]
231
231
> [Enable the slow queries sample insight widget](tutorial-qds-sql-server.md)
0 commit comments