CLR function with temp table

  • I have written a CLR function that posts product information to a web service.

    Every thing is working perfect but when I replace permanent tables with temp tables they are not accessible with in CLR function.

    Please help.

  • I guess you are using a conventional DB connection string in your CLR function. If yes replace it with

    SqlConnection connection = new SqlConnection("context connection=true")

    This will use the connection of the calling context, therefore temporary tables in that context will be available to the CLR function.

    If this doesnt work or your have already done this than share the CLR code for further help

  • GREAT..its working fine now..

    thanxx.

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

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