The sp_rename procedure is not avialable in SQL CE! In Sql Server 2005 Management Studio you have to create a new column with the new name, then you have to update it with the values from your old column and then you have to delete your old column. T…
1) 表转移Schema和重命名表 ALTER SCHEMA Stage TRANSFER dbo.Stage_AAA; EXEC sp_rename 'Stage.Stage_AAA', 'AAA'; 2)重命名列 USE [MyDB] GO IF EXISTS(SELECT * FROM sys.columns WHERE name = N'Column' AND object_id = object_id('[dbo].[Table]')) BEGIN EXEC sp_rename '[d…