Creating CLR table function with T-SQL producing error msg 6208.

  • I created an assembly using T-SQL. I then tried to create the function using T-SQL but I get the error:

    "CREATE FUNCTION failed because the parameter count for the FillRow method should be one more than the SQL declaration for the table valued CLR function."

    I couldn't find anything helpful on the web.

    C# code and T-SQL statement attached.

    Any help would be greatly appreciated.

    Thanks!

  • The T-SQL declaration of the function includes a column FilePath that is missing in the code of the assembly.


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • Thanks Hugo,

    I just caught that as well. I've updated the code .NET code and it's working now.

    Have a great da.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply