I'm trying to access an existing database via the Microsoft.FSharp.Data.TypeProviders.SqlDataConnection type. There are some stored procedures that are not provided (but most are).
I'm trying to determine what differentiates the unprovidable procedures from the others -- I believe that custom types are one reason the type-provision might fail, but they don't appear to be present here.
For what other reasons might our stored procedures be unprovidable?
Edit:
I've identified the following block as one that causes unprovidability:
EXEC @intReturn = te_audit_log @action = 'I',
@user_id = @intUserId,
@table_id = 1,
@audit_action = 'A',
@data_id = @intStatus,
@session_guid = @session_guid,
@effective_date = @actual_timedate,
@employee_id = @employee_id
...I think it is because the sproc that is being "exec"ed also having paths that return values from a temp table.
I assume that type provider cannot get stored procedures(or other db object), because type provider cannot get metadata about result set. Check sp_describe_first_result_set and SET FMTONLY
Reasons are specified in documenation in remark section:
DB objects and queries that contain above cases are simply not present.
Checking if TSQL Stored Procedure return correct metadata
SELECT * FROM sys.dm_exec_describe_first_result_set ('[schema].[name]',<params> , 0)
;