Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

sp_rename - ERROR

$
0
0
Hi Folks,I tried to rename a column using 'sp_rename' procedure throwing the following error. USE MyDB;GOEXEC sp_rename @objname ='Schema_Name.Table_Name.Old_Column_Name', @newname = 'New_Column_Name', @objtype ='COLUMN';GOMsg 15248, Level 11, State 1, Procedure sp_rename, Line 240Either the parameter @objname is ambiguous or the claimed @objtype (COLUMN) is wrong.But if I use the SSMS designer to rename the column, it works fine.Any one had this issue.Thanks!

Viewing all articles
Browse latest Browse all 6525

Trending Articles