if Exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_LastPriceAnbar]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
Drop Procedure [dbo].[sp_LastPriceAnbar]