"Interesting" or general Mathematical User-defined Functions

Click For Summary
SUMMARY

User-defined functions (UDFs) in MSSQL 2014 are discouraged due to potential future compatibility issues with different SQL dialects. The discussion highlights the risks associated with using UDFs, particularly the need for rewriting these functions when migrating to another database engine. The consensus is to adhere to standard SQL practices to ensure long-term maintainability and compatibility of database systems.

PREREQUISITES
  • Understanding of MSSQL 2014 features and limitations
  • Familiarity with standard SQL syntax and practices
  • Knowledge of database migration challenges
  • Basic concepts of user-defined functions in SQL
NEXT STEPS
  • Research the implications of using user-defined functions in MSSQL 2014
  • Learn about standard SQL practices to enhance database compatibility
  • Explore database migration strategies and tools
  • Investigate alternative methods for mathematical operations in SQL without UDFs
USEFUL FOR

Database developers, database administrators, and anyone involved in SQL database design and maintenance, particularly those concerned with future-proofing their database systems.

WWGD
Science Advisor
Homework Helper
Messages
7,806
Reaction score
13,120
Hi all, just curious. I am just learning about user-defined functions in MSSQL2014.
What kind of Math can we do with it? Didn't get much useful from my search.
 
Technology news on Phys.org
(shudder) My advice: Stay away from user-defined functions and anything else that is not standard SQL. Some time in the far future (say next year) somebody will require your data base to be converted to another database engine with a different SQL dialect - and then all your user-defined functions must be rewritten (or worse).
 
  • Like
Likes   Reactions: WWGD

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
12K