This tutorial looks at how to create a custom Stored Procedure with parameters and add it to the connected database.
- [Voiceover] To create a custom stored procedure…right click on the Stored Procedures folder,…choose Add New Stored Procedure.…You'll get this boilerplate text.…The top line is creating procedure,…you should provide a meaningful name here.…Then you're gonna specify your parameters here.…This is a parameter of type int that has a default value.…This is a parameter of type int that…doesn't have a default value.…You can also send up output parameters,…then you have a SELECT statement…or IF statements and ELSE clauses and things like that,…and then if you want you can also return a status code.…
I'm not going to return a status code so I'll remove that.…Next I'll go over to my view that I created earlier,…and I'll copy my SELECT statement,…and then return to my stored procedure.…I can use an Order by in my stored procedure…so I'll uncomment that line of code.…Clean up my code somewhat so it's…more aligned the way I like it.…And then, finally, I want to change this value…from five to a parameter, and this value…from ten to a parameter.…
- Exploring integration with Azure data sources and other Microsoft databases
- Working with SQL Server Express LocalDB
- Connecting to databases with Server Explorer
- Working with database tables
- Manipulating tables with the SQL Server Object Explorer
- Creating queries and custom views
- Creating stored procedures
- Comparing databases
- Building a data project in Visual Studio
- Refactoring a database object
- Deploying the database
- Connecting to Azure databases
- Deploying data projects to Azure
- Integrating Visual Studio with Entity Framework
Skill Level Beginner
Q: This course was updated on 08/23/2017. What changed?
A: The following topics were updated: installing the SSDT features and why LocalDB is essential for developers.
1. Database and Data Integration
The Azure data sources2m 35s
2. SQL Server Express LocalDB
3. Server Explorer
4. SQL Server Object Explorer
5. Queries, Views, and Stored Procedures
6. Compare databases
7. SQL Server Data Project
8. Azure Data
Get an Azure account1m 10s
9. Entity Framework
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.