Skip to main content
Nintex Community Menu Bar

Hi,

 

is it true that Functions (Scalar Functions, Table Valued Function, Inline Table Valued Functions)  are not recognized by the SQL Server Service (SourceCode.SmartObjects.Services.SQL.SqlServerService)?

We have a lot of them (~1.500) on our MS SQL 2016 SQL server.

 

The UDFs are not even mentioned in the documentation: 

https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#ServiceBrokers/SQLServer/SQL_Server_Service.htm%3FTocPath%3DAdminister%7CK2%2520Management%7CIntegration%7CService%2520Types%7CSQL%2520Server%7C_____0

 

What do you recommend to integrate MS SQL Functions?

 

Kind regards,

 

Stephan

 


11431i2CA7D563ACD1780C.png

Hello Stephan,



I am unsure if K2 integrates directly with those. I know that temp tables and the like are not supported by K2 as smartobjects, but you can use Stored Procs to pull back data from multiple sources. 


Hi,


 


I'm not sure if this is going to be possible without building a SQL procedure to call the function(s) since these are not really SQL objects that K2 can see.


https://stackoverflow.com/questions/33449/can-you-call-a-webservice-from-tsql-code


Hi,

 

i see the necessity to clarify my question.

 

I am not talking about CLR Functions. I am talking about normal sql functions:

https://docs.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql

 

They are internal sql objects that are accessible like procudures, type IF, TF, FN, see example query below.

One uses functions because you can combine tables and functions with JOIN clauses. This not possible with Stored Procedures.

 

Kind regards,

Stephan

 

SELECT type_desc, type, COUNT(*)
FROM sys.objects
GROUP BY type_desc, type
ORDER BY COUNT(*) DESC

 

type_desctype#
SYSTEM_TABLE69
DEFAULT_CONSTRAINT64
SQL_INLINE_TABLE_VALUED_FUNCTIONIF25
SQL_STORED_PROCEDURE16
USER_TABLE13
VIEW12
INTERNAL_TABLEIT10
PRIMARY_KEY_CONSTRAINTPK8
SQL_TABLE_VALUED_FUNCTIONTF5
SERVICE_QUEUESQ3
TYPE_TABLETT1
SQL_SCALAR_FUNCTIONFN

1


Reply