我想这个脚本来重命名销售架构指数:重命名的SQL Server索引在MS SQL Server
EXEC sp_rename N'sales.table.IX1', N'IX2', N'INDEX';
,但我得到这个错误:
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
我怎样才能解决呢?
我想这个脚本来重命名销售架构指数:重命名的SQL Server索引在MS SQL Server
EXEC sp_rename N'sales.table.IX1', N'IX2', N'INDEX';
,但我得到这个错误:
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
我怎样才能解决呢?
SQL是用于查询数据库的语言。什么是你的DBMS? –
你在正确的数据库中吗?你确定没有错字吗? https://msdn.microsoft.com/en-us/library/ms190776.aspx – Pred
尝试把方括号,如下所述:http://stackoverflow.com/questions/3091609/how-can-i-solve-either参数objname是模棱两可的或声明的objt – sudheeshix