Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'tblGuy_Info'
if  NOT EXISTS(SELECT * FROM syscolumns WHERE id = @Id and Name = 'KalaKhadamatName')
  Alter table tblGuy_Info Add KalaKhadamatName nvarchar(50) null
  
                           
Select @Id = Id From sysobjects Where Name = 'tblGuy_Info'
if NOT  Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'ForoshandeName')
  Alter table tblGuy_Info Add ForoshandeName nvarchar(40) null
  
  
                             
Select @Id = Id From sysobjects Where Name = 'tblGuy_Info'
if NOT  Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'HcForoshandeTypeCode')
  Alter table tblGuy_Info Add HcForoshandeTypeCode TINYINT null
      
 
                              
Select @Id = Id From sysobjects Where Name = 'tblGuy_Info'
if Not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'HcForoshandeType1Code')
  Alter table tblGuy_Info Add HcForoshandeType1Code TINYINT null
    
                            
Select @Id = Id From sysobjects Where Name = 'tblGuy_Info'
if Not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'StateCode')
  Alter table tblGuy_Info Add StateCode varchar(2) null 


Select @Id = Id From sysobjects Where Name = 'tblGuy_Info'
if Not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'CityCode')
  Alter table tblGuy_Info Add CityCode varchar(7) null 



Select @Id = Id From sysobjects Where Name = 'Guy'
if NOT  Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'AccountNumber')
  Alter table Guy Add AccountNumber varchar(30) null


Select @Id = Id From sysobjects Where Name = 'Guy'
if NOT  Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'BankName')
  Alter table Guy Add BankName varchar(30) null


Select @Id = Id From sysobjects Where Name = 'Guy'
if NOT  Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'RegNumber')
  Alter table Guy Add RegNumber varchar(10) null



ALTER TABLE Guy ALTER COLUMN economic_code VARCHAR(16)