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();
精彩评论