Declare @ColumnName Varchar(20)
Declare @ConstraintName varchar(100)

Select @ColumnName = column_name, @ConstraintName = CONSTRAINT_NAME 
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
WHERE OBJECTPROPERTY(OBJECT_ID(constraint_name), 'IsPrimaryKey') = 1
AND table_name = 'TblBasket_Kala'



IF UPPER(@ConstraintName) = 'PK_TBLBASKET_KALA'    
  Exec ('ALTER TABLE [dbo].[TblBasket_Kala] DROP CONSTRAINT ' + @ConstraintName)
