Search code examples
azurestored-proceduresazure-cosmosdbudf

DocumentDB, Is it possible to call UDF from within a SP?


In Azure DocumentDB, is it possible to call UDF from within a SP ?


Solution

  • Unfortunately, this is not supported. However, you can include your UDF code as a function within the sproc itself. documentdb-utils has functionality for modularly including code into sprocs so you can maintain DRY principles.