相关文章推荐
失望的斑马  ·  atan, atanf, atanl, ...·  8 月前    · 
完美的海龟  ·  DataGrip 连接sqlserver ...·  1 年前    · 
乐观的蚂蚁  ·  java - Jetty ...·  2 年前    · 

调用存储过程代码如下:

EXEC sp_rename @objname = 'student.stusno1', @newname = 'stusno2', @objtype = 'index'
/*或者如下*/
EXEC sp_rename '表名.旧索引名', '新索引名', 'index'

调用存储过程时会出现:

注意: 更改对象名的任一部分都可能会破坏脚本和存储过程。

这时命令已经成功执行了。