HttpWebRequest runs slowly first time within SQLCLR

前端 未结 6 738
一生所求
一生所求 2021-02-06 14:47

When making an HttpWebRequest within a CLR stored procedure (as per the code below), the first invocation after the Sql Server is (re-)started or after a given (but indeterminat

6条回答
  •  逝去的感伤
    2021-02-06 15:09

    There is always a delay the first time SQLCLR loads the necessary assemblies. That should be the case not only for your function MakeWebRequest, but also for any .NET function in the SQLCLR.

提交回复
热议问题