| 发表于:2007-02-08 11:34:283楼 得分:0 |
好像不支持,我在msdn上找到的 http://forums.microsoft.com/msdn/showpost.aspx?postid=68777&siteid=1 叶建 说: you can only have one open context connection at a time within a clr procedure ( "context connection=true "). is it possible that in the missing code snippets for your example (... 's) that you are attempting to open another context connection? for instance, calling triggers.connection(true) again anywhere prior to the triggers.connection(false) call would result in this exception. the call stack where the "connection already in use " exception is thrown would be useful to track down this cause. 2) june ctp has a couple of bugs where an exception, especially if due to an attention (i.e. cancel) signal, can cause the connection to not properly clean itself up from one invocation of the procedure to the next. this problem would not be apparent on first invocation of the proc, and would temporarily be cleared by running "dbcc freeproccache ". | | |
|