Q
Problem solve Get help with specific problems with your technologies, process and projects.

Any way to alias a call to functions?

Is there any way to alias a call to functions such as trim so that the database owner name is not required to be prepended to the function name (e.g. dbo.trim)?

Oracle and DB2 seemed to provide this aliasing without much fuss, and we are faced with the prospect of modifying a lot of source code to get stuff to play in SQL Server if we can't find an aliasing mechanism or some other work-around.

No. Currently, user defined functions require the use of the owner name.

Dig Deeper on Microsoft SQL Server Performance Monitoring and Tuning

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close