Why prefix sql function names?

Posted by AaronLS on Stack Overflow See other posts from Stack Overflow or by AaronLS
Published on 2010-12-28T18:57:24Z Indexed on 2010/12/28 19:54 UTC
Read the original article Hit count: 249

Filed under:
|
|
|

What is a scenario that exemplifies a good reason to use prefixes, such as fn_GetName, on function names in SQL Server? It would seem that it would be unnecessary since usually the context of its usage would make it clear that it's a function. I have not used any other language that has ever needed prefixes on functions, and I can't think of a good scenario that would show why SQL is any different.

My only thinking is that perhaps in older IDE's it was useful for grouping functions together when the database objects were all listed together, but modern IDE's already make it clear what is a function.

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server