title: How to conditionally execute SQL code specific for Azure SQL Managed Instance?
body: <p>I have a TSQL code where some parts are not applicable to Managed Instance. Is there a way to determine in 
  TSQL code is the code executed on Managed Instance and run the code only in that case?</p>