Monday, January 12, 2009

MS Sql Server

//Modify Table column type
ALTER TABLE dbo.Investor4_head
alter column investorId varchar(32) not null;

//Drop index of table.
drop index tableName.IndexName

//Update Column values
UPDATE tableName
SET columnName = ''
WHERE columnName='-1'