Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing sp_rename from an application
Message
From
16/10/2014 11:42:40
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Executing sp_rename from an application
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01609538
Message ID:
01609538
Views:
50
In my application, the connection string specifies the database. So, when I do database management, I do not have to specify the database.

However, when I have to do this:
EXEC sp_rename 'ReportApplication.Size', 'SizeTest', 'COLUMN'
...as this is calling a SQL Server procedure, do I have to prefix the first parameter with the database name?

I am using sp_rename here as it seems SQL Server does not support ALTER COLUMN. If there is a way to do it, let me know.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform