Floating FB popout byF5debug

SQL Azure – Creating New Database Stored Procedure in Azure Portal



In this article we are going to see how to create a new database stored procedure using the new Azure portal instead of using the SQL Server Management Studio.


Stored procedures are created normally using the SQL Serve management studio, with the latest version of SQL Azure we have option to create a user stored procedure directly online without need to have a local interface. This way we have some control of using it anywhere anytime to do some updates regularly. 


Let us see how to create the Stored procedure in Azure portal step by step.


Log in to the Azure portal using the below link. You can see the screen look similar to below



Login to the portal using your Microsoft Windows Live credentials with Azure credentials to the management portal and you will see the screen as shown in the screen below


Now we can see the Database Menu at the bottom left, Click on that will go to the Database Subscription window as shown in the screen below


Clicking on the subscription name will provide the complete details of the server created and the new database created as shown in the screen below


Now we have a database created(LearnAzure) with a Max size of 1GB and ready to use it for the application based on the requirement. To create a new Stored Procedure click on Manage at the top menu tool bar as shown in the screen below


Check my previous article on how to connect to the manage portal using the credentials and the firewall using the link. Once logged in you screen will look like below


To create a new stored procedure click on New Stored procedure menu at the top and we will see a script window as shown in the screen below


Now we will write our customized stored procedure for the EmpDetails table which we created in our earlier tutorial(Check my previous article for table creation) as shown in the screen below


Once we create the structure for the stored procedure as shown in the above screen we need to save it. Once save we can use the stored procedure to execute the same as shown in the screen below. We need to navigate to the new query window in the Database section and write a execute command as shown below.


We can create n Number of stored procedure as per the requirement and use it across the process which we normally do with the traditional SQL Server locally.


So in this article we have seen how to create a new Stored procedure using the new SQL Azure management portal and use it across our requirement.

About Author: Karthikeyan Anbarasan, Microsoft MVP (Most Valuable Professional) in ASP.NET/IIS Architecture. He is the Founder and Chief Editor of the www.f5debug.net website and has authored books on Windows Phone and Business Intelligence(SSIS). He is also a Passionate Speaker and a Blogger on Microsoft Technologies.

You can Join Me On: Facebook, Twitter, Google Plus, LinkedIn

Pingbacks and trackbacks (1)+

Add comment

  Country flag

  • Comment
  • Preview

Recent Posts

Random Posts

Most Viewed

URL Shortner

Create your own short urls!!!

Site Counter

free counters


This is a personal weblog. The opinions expressed here represent my own and not those of my employer. For accuracy and official reference refer to MSDN/ TechNet. I have documented my personal experience on this blog.

Protected by Copyscape Web Plagiarism Finder

Site Meter