From the course: Microsoft SQL Server 2019 Essential Training
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Create stored procedures - SQL Server Tutorial
From the course: Microsoft SQL Server 2019 Essential Training
Create stored procedures
- [Instructor] I'd like to take a look at creating our first stored procedure using the WideWorldImporters database. To see what stored procedures already exist in the database, you can use the object explore and go into the programmability folder, and then find the stored procedures folder. You'll notice that WideWorldImporters already has a number of stored procedures that have been created in this database. Another way to get to this same information is to run a select statement against one of the system tables, the sys.procedures table. Let me highlight lines six through 11 in my script here and execute the statement. You'll see that the results here mirror the same information that we're seeing over in the stored procedures folder. If you want to explore how a particular stored procedure was created and the commands that it contains, we simply need to find one that we want to work with. I'm going to scroll down and find…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.