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

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[LessKala]'))
drop View [dbo].[LessKala]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[LESS_Mojodi_Drug]'))
drop function [dbo].[LESS_Mojodi_Drug]

