Is assembly running in SQL Server or from a Windows app Is assembly running in SQL Server or from a Windows app sql sql

Is assembly running in SQL Server or from a Windows app


Following code should return different assembly information in both cases.

System.Reflection.Assembly.GetEntryAssembly();