
-- SQLAzureMWParseTSQL TSQL Output File:
-- Generated at: 3/1/2014 3:07:23 PM

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}usp_nadev_EventImages_GetAllImages]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
	drop procedure {databaseOwner}[{objectQualifier}usp_nadev_EventImages_GetAllImages]
GO

create procedure {databaseOwner}[{objectQualifier}usp_nadev_EventImages_GetAllImages]
(
 @eventId int
)

as

	select * from {databaseOwner}[{objectQualifier}tblNaDevEventImages] 
		where eventId != @eventId
			order by DisplayOrder asc

return

GO
