 .NOTE
 Author: Ned Otter
 Original link: http://nedotter.com/archive/2017/10/in-memory-oltp-diagnostic-script/
+Version: 1.0
+
+Modified: 2017-12-06
+Author: Aleksey Nagorskiy
+Version: 1.1
+
+Modified: 2017-12-13
+Author: Konstantin Taranov
+Version: 1.2
+
+Modified: 2017-12-14
+Author: Konstantin Taranov
+Version: 1.3
 */
 AS BEGIN TRY
 

        AND (name = @dbName OR @dbName = 'ALL')
        AND state_desc = 'ONLINE';

    IF @dbName IS NULL AND @instanceLevelOnly = 0
    BEGIN
        SET @errorMessage = '@dbName IS NULL, please specify database name or ALL';


.DESCRIPTION
    Get detailed information about In-Memory SQL Server objects
    Tested on SQL Server: 2014, 2016, 2017

.PARAMETER @instanceLevelOnly
    Only check instance In-Memory related information
