dbo.usp_EC_GetCountryList.sql 519 Bytes
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[usp_EC_GetCountryList]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[usp_EC_GetCountryList]
GO

CREATE PROCEDURE [dbo].[usp_EC_GetCountryList] 
	-- 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;

SELECT Id, CountryName
FROM Country
ORDER BY (case CountryCode when 'US' THEN 0 ELSE Id END)

END