if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_EC_GetStateList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[usp_EC_GetStateList] GO CREATE PROCEDURE [dbo].[usp_EC_GetStateList] -- 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 Id,StateName from State END