use master;alter database [A] modify name=[B] 转载于:https://www.cnblogs.com/huanglong1987/p/7077300.html