Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide Caution: Changing any part of an object name could break scripts and stored procedures

Tags:

sql

sql-server

In my database I am renaming a table. I tried to rename it by using

exec sp_rename Student,Students

but I got the message:

Caution: Changing any part of an object name could break scripts and stored procedures.

How can I avoid getting this message?

like image 980
Dhanalakshmi Avatar asked May 13 '16 08:05

Dhanalakshmi


1 Answers

Unfortunately, this message cannot be suppressed.*

There was a Microsoft Connect ticket submitted by our very own Aaron Bertrand, but it was closed as won't fix.

Keep in mind that this message isn't an error - it's not even a warning - it's just a cautionary message saying, "Be careful."


*Okay, it can be suppressed, but it involves modifying the source code of sp_rename, which is not recommended.

like image 163
Aaroninus Avatar answered Oct 03 '22 02:10

Aaroninus