开发者

Is assembly running in SQL Server or from a Windows app

开发者 https://www.devze.com 2023-01-31 06:37 出处:网络
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.IsAvailableFollowing code should return d

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

精彩评论

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