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



Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'tblCover_Bime'
IF not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'Nezam_No')
  ALTER TABLE dbo.tblCover_Bime ADD Nezam_No nvarchar(10) NULL