Skip to content

Commit 00eb9d2

Browse files
authored
right-click your server -> right-click the AdventureWorks2012 database
When right-clicking the server, by default the query is connected to the `master` database. Therefore, in the next step, `EXECUTE dbo.WorkOrdersForBlade` will fail with the following error: ``` Msg 2812, Level 16, State 62, Line 1 Could not find stored procedure 'dbo.WorkOrdersForBlade'. ``` Right-clicking the AdventureWorks2012 database ensures that the query will be connected to the database where the stored procedure has been previously created. In this case, `EXECUTE dbo.WorkOrdersForBlade` succeeds.
1 parent 57f45ee commit 00eb9d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/ssms/tutorials/lesson-3-2-create-custom-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ms.workload: "On Demand"
6868
6969
8. Press F5 to execute this script, creating the **WorkOrdersForBlade** procedure.
7070
71-
9. In Object Explorer, right-click your server, and then click **New Query**. A new Query Editor window opens.
71+
9. In Object Explorer, right-click the **AdventureWorks2012** database, and then click **New Query**. A new Query Editor window opens.
7272
7373
10. In Query Editor, type **EXECUTE dbo.WorkOrdersForBlade**, and then press F5 to execute the query. Confirm that the **Results** pane returns a list of work orders for blades.
7474

0 commit comments

Comments
 (0)