So I was trying to rename a column in my table from Conversion_Fee_PerShare to just Conversion Fee.
I looked up online and found the syntax
Never mind I found out:
ALTER TABLE dbo.AllocationDetails
DROP COLUMN [[Conversion_Fee]]]
OR
sp_RENAME 'dbo.AllocationDetails.[[Conversion_Fee]]]' , 'Conversion_Fee', 'COLUMN'
these will work fine. :)
Using Double Quotes:
exec sp_rename 'dbo.AllocationDetails."[Conversion_Fee]"' , 'Conversion_Fee', 'COLUMN'
will also work.