开发者

Is assembly running in SQL Server or from a Windows app

How can I determine if an assembly is running from a SQL Server CLR stored procedure or if it is 开发者_如何学Crunning from a Windows app?


Check out SqlContext.IsAvailable


Following code should return different assembly information in both cases.

System.Reflection.Assembly.GetEntryAssembly();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜