Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Stored procedure to fill data that needs to be populated in dropdownlist in MVC Application

STORED PROCEDURE

USE [DB_obj]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[sp_FillUserRoles] 
	-- Add the parameters for the stored procedure here
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	SELECT * from Roles_tbl
END

Explanation

This Procedure will return all data from Roles_tbl table.



This post first appeared on BUG FIXES AND CODING SOLUTIONS, please read the originial post: here

Share the post

Stored procedure to fill data that needs to be populated in dropdownlist in MVC Application

×

Subscribe to Bug Fixes And Coding Solutions

Get updates delivered right to your inbox!

Thank you for your subscription

×