I want to change my view's name using T-SQL (not trough SSMS features)
In Microsoft Docs it says that we can use sp_rename to do this, but doesn't explain how exactly to do that
I've tried these two approaches, but neither worked:
exec sp_rename 'dbo.priceMoreThan5', 'priceMoreThan10', 'VIEW
exec sp_rename @objname = 'dbo.priceMoreThan5', @newname= 'priceMoreThan10'
Does anyone know how to do this??