<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by NadirDoctor on Medium]]></title>
        <description><![CDATA[Stories by NadirDoctor on Medium]]></description>
        <link>https://medium.com/@nadird3?source=rss-45a8007adc49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sswdUf3Oq53Uo_qIOrJGZQ.jpeg</url>
            <title>Stories by NadirDoctor on Medium</title>
            <link>https://medium.com/@nadird3?source=rss-45a8007adc49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 06:19:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nadird3/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Snowflake — Business Continuity and Disaster Recovery]]></title>
            <link>https://medium.com/@nadird3/snowflake-business-continuity-and-disaster-recovery-1d0a984e919b?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d0a984e919b</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[recovery]]></category>
            <category><![CDATA[disaster-recovery]]></category>
            <category><![CDATA[business-continuity]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Sun, 22 Nov 2026 21:28:20 GMT</pubDate>
            <atom:updated>2026-11-24T04:15:39.712Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*QGuXE0dQLd_mR3rSKYMf6w.png" /><figcaption>Better safe than sorry!</figcaption></figure><p>Storms and floods are the most frequent natural disasters worldwide — recent increase noted with the Global Warming phenomenon.</p><p>Besides severe weather, an extended power outage may also occur with several other disasters:<br>• Earthquake<br>• Fire — in the wild and also due to extreme temperatures and droughts<br>• Volcanic eruption</p><p><a href="https://docs.snowflake.com/en/user-guide/replication-intro"><strong>Replication</strong></a> is an advantageous feature for implementing more helpful Business Continuity and Disaster Recovery.</p><p>Snowflake provides both replication and failover groups involving many <a href="https://docs.snowflake.com/en/user-guide/account-replication-intro#replicated-objects">objects</a>.</p><p>Some code which assists and preferably run from the primary/source account:</p><pre>use role accountadmin;<br>show replication groups;<br>-- lists both replication and failover groups when existent<br><br>select get_ddl (&#39;[replication|failover]_group&#39;, &#39;&lt;group_name&gt;&#39;);<br>-- use the &quot;name&quot; from above output where &quot;is_primary&quot; = &#39;true&#39;<br>-- if replication_schedule is null, then do a manual refresh when needed</pre><p>A replication group can’t be converted into a failover group in place via a single command and these steps can be used:</p><p>• Create a new failover group and move the objects into it<br>• Create the secondary failover group on the target account with <em>create failover group … as replica of</em>, then refresh it<br>• A database can only belong to one group at a time, so it has to leave the replication group before it can join the failover group</p><p><strong>Plan to do a Disaster Recovery validation which includes a connection failover and fallback — at least once in a year!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d0a984e919b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake Safeguards for AI, Cortex]]></title>
            <link>https://medium.com/@nadird3/snowflake-safeguards-for-ai-cortex-ed36b940ba63?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed36b940ba63</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Thu, 12 Nov 2026 08:14:58 GMT</pubDate>
            <atom:updated>2026-11-20T16:12:57.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVZB5gKZxQ6_rXT15ceQdA.png" /><figcaption>Added protection in the cloud!</figcaption></figure><p>Several helpful options are available to further protect one’s data from unauthorized changes when dealing with AI, Cortex agents and their interactions:</p><p>• <a href="https://docs.snowflake.com/en/user-guide/agent-identity">Agent Identity</a><br>• <a href="https://docs.snowflake.com/en/user-guide/restricted-session-scope">Restricted Session Scope</a><br>• <a href="https://docs.snowflake.com/en/user-guide/data-protection-policies-snowsight#label-data-protection-policies-agentic">Data protection policies</a><br>• <a href="https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-ai-guardrails">Guardrails</a><br>• <a href="https://docs.snowflake.com/en/user-guide/trust-center/overview#label-ai-security-scanner-package">Trust center AI_SECURITY scanner package</a><br>• Your CoCo chat is set to read-only — plan mode<br>• Parameters at the account level<br> o CORTEX_CLIENT_READ_ONLY<br> o CORTEX_MCP_SERVER_FORCE_SQL_EXEC_READ_ONLY</p><p>Some useful sample code which ensure that Cortex AI and agents can’t alter data -</p><pre>use role accountadmin;<br><br>-- configure a restricted session scope policy<br>create session policy if not exists<br>    &lt;database_name&gt;.&lt;schema_name&gt;.CORTEX_AGENT_RSS_POLICY<br>    agent_restricted_session_scope = &#39;SNOWFLAKE$DATA_READ_WITH_AI&#39;<br>    comment = &#39;RSS for Cortex Users: agents can read data and use<br>               Cortex AI but cannot write, create objects, or escalate<br>               privileges&#39;;<br><br>-- enable ai guardrails<br>alter account set ai_settings = $$<br>  guardrails:<br>    advanced_prompt_injection:<br>      - enabled: true<br>$$;<br><br>-- enable and schedule the ai_security scanner package once a week<br>--   on Sun AM<br>-- this can be done alternatively by the snowsight gui but limitation<br>--   with that is that it can&#39;t be done in parallel for multiple packages!<br>call snowflake.trust_center.set_configuration(<br>    &#39;ENABLED&#39;, &#39;TRUE&#39;, &#39;AI_SECURITY&#39;, false);<br>call snowflake.trust_center.set_configuration(<br>    &#39;SCHEDULE&#39;, &#39;USING CRON 0 5 * * 0 UTC&#39;, &#39;AI_SECURITY&#39;);<br><br>-- these parameters are undocumented but description explains in the output<br>show parameters like &#39;cortex_%_read_only&#39; in account;</pre><p><strong>Note that a restricted session scope policy can be set at an account level or at a more granular user level — former would apply to all users in the account.</strong></p><p>An amusing quote: If you want to have your computer 100% secure, then install VPN, firewall, and anti-virus on it … oh, and don’t forget to shut it down!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed36b940ba63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Resize of Warehouses vs Advantages with Using Adaptive Compute]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-resize-of-warehouses-vs-advantages-with-using-adaptive-compute-bd4b69cba136?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd4b69cba136</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[fine-tuning]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[scalability]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Sun, 06 Sep 2026 00:29:03 GMT</pubDate>
            <atom:updated>2026-09-06T19:37:47.644Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OlY97sVtOyJvpIvu-L-Row.png" /><figcaption>Auto-Scaling and Less Management Headache!</figcaption></figure><p>It has always been quite a challenge to resize warehouses appropriately due to workloads which involve varying data volume.</p><p>One can grant modify privilege on a warehouse to a role for increase of warehouse size, when needed, and a reset thereafter. This operation may also be done with a stored procedure via <strong>execute as owner</strong> rights, which is the default, and grant usage on it to requisite role. However, these are manual operations and being human, one may accidentally skip the subsequent reduction in size. This leads to an unwarranted surprise in your monthly bill for the warehouse compute cost component in an account!</p><p>Some helpful statements are provided below:</p><pre>-- report on roles with modify warehouse privilege<br>set privilege_value = &#39;MODIFY&#39;;<br>set obj_type        = &#39;WAREHOUSE&#39;;<br>select<br>    current_account_name() as account_name,<br>    created_on as granted_on_ts,<br>    privilege,<br>    name as wh_name,<br>    grantee_name<br>from<br>    snowflake.account_usage.grants_to_roles<br>where<br>    true<br>    and deleted_on is null<br>    and privilege = $privilege_value<br>    and granted_on = $obj_type<br>    and grantee_name not in (&#39;ACCOUNTADMIN&#39;, &#39;SECURITYADMIN&#39;, &#39;SYSADMIN&#39;)<br>    -- super-roles are excluded<br>order by<br>    name;<br><br>-- summary report on warehouse resize done in a month<br>set start_date = &#39;2026-08-01&#39;;<br>set end_date   = &#39;2026-09-01&#39;;<br>set q_type     = &#39;ALTER&#39;;<br>set q_text     = &#39;alter warehouse%warehouse_size%&#39;;<br>select<br>    current_account_name() as account_name,<br>    qh.user_name,<br>    u.login_name,<br>    count(qh.query_text) as stmt_count<br>from<br>    snowflake.account_usage.query_history qh<br>    left join snowflake.account_usage.users u<br>    on qh.user_name = u.name and u.deleted_on is null<br>where<br>    true<br>    and qh.query_type = $q_type<br>    and qh.query_text ilike $q_text<br>    and qh.start_time &gt;= $start_date<br>    and qh.end_time &lt; $end_date<br>group by<br>    all<br>order by<br>    u.login_name;<br><br>-- detailed report on warehouse resize done in a month<br>select<br>    current_account_name() as account_name,<br>    qh.user_name,<br>    u.login_name,<br>    qh.start_time,<br>    qh.query_text,<br>    qh.bind_values<br>from<br>    snowflake.account_usage.query_history qh<br>    left join snowflake.account_usage.users u <br>    on qh.user_name = u.name and u.deleted_on is null<br>where<br>    true<br>    and qh.query_type = $q_type<br>    and qh.query_text ilike $q_text<br>    and qh.start_time &gt;= $start_date<br>    and qh.end_time &lt; $end_date<br>order by<br>    qh.start_time desc;</pre><p><a href="https://docs.snowflake.com/en/user-guide/warehouses-adaptive"><strong>Adaptive Compute</strong></a> is now available for use which offer several noteworthy benefits:</p><p>• Simpler warehouse management<br>• Auto-scalability<br>• Potential cost reduction<br>• Better overall performance in the window completion</p><p>An existing warehouse, 4-XL or smaller, can be converted to an adaptive one without downtime. Post alter completion, review warehouse settings and tweak, if needed.</p><p>Kapil Arora’s informative <a href="https://medium.com/snowflake/the-last-warehouse-youll-ever-configure-adaptive-compute-in-snowflake-955fb5122536">blog </a>— Enjoy using this new functionality!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd4b69cba136" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Object Dependency Reporting for a Semantic View]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-object-dependency-reporting-for-a-semantic-view-c8d111d7a7c1?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8d111d7a7c1</guid>
            <category><![CDATA[reporting]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[semantic-search]]></category>
            <category><![CDATA[snowflake-cortex]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 01:20:09 GMT</pubDate>
            <atom:updated>2026-07-21T03:46:07.925Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axaPJxWYL7xYZ3Sh59ffcQ.png" /></figure><p>A semantic view sits next to your tables and stores five kinds of business meaning:</p><p>· <strong>Semantic Tables</strong> — Business names for physical tables, like “Customers”, not “cust_dim_v2”</p><p>· <strong>Semantic Relationships</strong> — How entities join, like orders to customers, customers to regions</p><p>· <strong>Semantic Dimensions</strong> — Ways to slice data, like by region, by category, by month</p><p>· <strong>Semantic Facts</strong> — Row-level numbers, like the sale amount on a single order</p><p>· <strong>Semantic Metrics</strong> — Agreed calculations, like “Net Revenue” always aggregates the same way</p><p>The dependent objects for a semantic view aren’t listed in output of snowflake.account_usage.object_dependencies view but available in various other views:</p><p>· snowflake.account_usage.semantic_tables</p><p>· snowflake.account_usage.semantic_relationships</p><p>· snowflake.account_usage.semantic_dimensions</p><p>· snowflake.account_usage.semantic_facts</p><p>· snowflake.account_usage.semantic_metrics</p><p><strong>This sample code provides a component summary for a semantic view -</strong></p><pre>-- Component summary for a semantic view<br>set semantic_vw_db_name    = &#39;&lt;database_name&#39;;<br>set semantic_view_sch_name = &#39;&lt;schema_name&#39;;<br>set semantic_vw_name       = &#39;&lt;object_name&gt;&#39;;<br>set semantic_view          = ( select concat($semantic_vw_db_name, &#39;.&#39;, <br>                               $semantic_view_sch_name, &#39;.&#39;, <br>                               $semantic_vw_name) );<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Tables&#39; as component,<br>    count(*) as component_count<br>from<br>    snowflake.account_usage.semantic_tables<br>where<br>    true<br>    and semantic_view_name = $semantic_vw_name<br>    and semantic_view_database_name = $semantic_vw_db_name<br>    and semantic_view_schema_name = $semantic_view_sch_name<br>    and deleted is null<br>union all<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Relationships&#39; as component,<br>    count(*) as component_count<br>from<br>    snowflake.account_usage.semantic_relationships<br>where<br>    true<br>    and semantic_view_name = $semantic_vw_name<br>    and semantic_view_database_name = $semantic_vw_db_name<br>    and semantic_view_schema_name = $semantic_view_sch_name<br>    and deleted is null<br>union all<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Dimensions&#39; as component,<br>    count(*) as component_count<br>from<br>    snowflake.account_usage.semantic_dimensions<br>where<br>    true<br>    and semantic_view_name = $semantic_vw_name<br>    and semantic_view_database_name = $semantic_vw_db_name<br>    and semantic_view_schema_name = $semantic_view_sch_name<br>    and deleted is null<br>union all<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Facts&#39; as component,<br>    count(*) as component_count<br>from<br>    snowflake.account_usage.semantic_facts<br>where<br>    true<br>    and semantic_view_name = $semantic_vw_name<br>    and semantic_view_database_name = $semantic_vw_db_name<br>    and semantic_view_schema_name = $semantic_view_sch_name<br>    and deleted is null<br>union all<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Metrics&#39; as component,<br>    count(*) as component_count<br>from<br>    snowflake.account_usage.semantic_metrics<br>where<br>    true<br>    and semantic_view_name = $semantic_vw_name<br>    and semantic_view_database_name = $semantic_vw_db_name<br>    and semantic_view_schema_name = $semantic_view_sch_name<br>    and deleted is null<br>order by<br>    component;</pre><p>It’s okay for a semantic view to have 0 relationships and 0 metrics — the view will still be valid and functional, though with limited capabilities.</p><p><strong>Relationships (0 is acceptable but limiting):</strong></p><ul><li>A semantic view with no relationships means it only covers a single table (or tables that aren’t joined)</li><li>Cortex Analyst can still answer questions about that single table’s columns and dimensions</li><li>One won’t be able to ask questions that require joining across tables</li></ul><p><strong>Metrics (0 is acceptable but limiting):</strong></p><ul><li>Without metrics, Cortex Analyst won’t have pre-defined business calculations (e.g., “revenue”, “conversion rate”)</li><li>It can still answer questions using raw columns and basic aggregations (COUNT, SUM, AVG) inferred from the data types</li><li>Adding metrics improves answer quality because they encode business logic (e.g., revenue = price * quantity * (1 — discount)), making responses more accurate and consistent</li></ul><p><strong>In summary:</strong> A semantic view with 0 relationships and 0 metrics is technically valid and will deploy, but adding both significantly improves the quality and breadth of questions Cortex Analyst can answer. Think of them as optional but highly recommended for production use.</p><p><strong>Other helpful sample reports on base table dependencies, semantic relationships and semantic attributes:</strong></p><pre>-- Report on base table dependencies<br>select<br>    $semantic_view as semantic_view,<br>    st.semantic_table_name,<br>    concat (<br>        st.base_table_database_name,<br>        &#39;.&#39;,<br>        base_table_schema_name,<br>        &#39;.&#39;,<br>        base_table_name<br>    ) as base_table,<br>    t.row_count,<br>    st.created,<br>    st.last_altered,<br>    st.comment<br>from<br>    snowflake.account_usage.semantic_tables st<br>    left join snowflake.account_usage.tables t <br>    on t.table_catalog = st.base_table_database_name<br>    and t.table_schema = st.base_table_schema_name<br>    and t.table_name = st.base_table_name<br>    and t.deleted is null<br>where<br>    true<br>    and st.semantic_view_name = $semantic_vw_name<br>    and st.semantic_view_database_name = $semantic_vw_db_name<br>    and st.semantic_view_schema_name = $semantic_view_sch_name<br>    and st.deleted is null<br>order by<br>    st.semantic_table_name;<br><br>-- Report on semantic relationships (joins between tables)<br>select<br>    $semantic_view as semantic_view,<br>    sr.semantic_relationship_name,<br>    sr.semantic_table_name,<br>    concat (<br>        st.base_table_database_name,<br>        &#39;.&#39;,<br>        st.base_table_schema_name,<br>        &#39;.&#39;,<br>        st.base_table_name<br>    ) as base_table,<br>    sr.foreign_keys,<br>    sr.ref_semantic_table_name,<br>    concat (<br>        st2.base_table_database_name,<br>        &#39;.&#39;,<br>        st2.base_table_schema_name,<br>        &#39;.&#39;,<br>        st2.base_table_name<br>    ) as ref_base_table,<br>    sr.ref_keys,<br>    sr.created,<br>    sr.last_altered<br>from<br>    snowflake.account_usage.semantic_relationships sr<br>    left join snowflake.account_usage.semantic_tables st<br>    on sr.semantic_table_id = st.semantic_table_id<br>    and st.deleted is null<br>    left join snowflake.account_usage.semantic_tables st2<br>    on sr.ref_semantic_table_id = st2.semantic_table_id<br>    and st2.deleted is null<br>where<br>    true<br>    and sr.semantic_view_name = $semantic_vw_name<br>    and sr.semantic_view_database_name = $semantic_vw_db_name<br>    and sr.semantic_view_schema_name = $semantic_view_sch_name<br>    and sr.deleted is null<br>order by<br>    sr.semantic_relationship_name;<br><br>-- Report on semantic attributes<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Semantic Dimension&#39; as attribute,<br>    sd.semantic_dimension_name as semantic_attribute_name,<br>    concat (<br>        st.base_table_database_name,<br>        &#39;.&#39;,<br>        st.base_table_schema_name,<br>        &#39;.&#39;,<br>        st.base_table_name<br>    ) as base_table,<br>    sd.semantic_table_name,<br>    sd.data_type,<br>    sd.expression,<br>    sd.synonyms,<br>    sd.comment<br>from<br>    snowflake.account_usage.semantic_dimensions sd<br>    left join snowflake.account_usage.semantic_tables st<br>    on sd.semantic_table_id = st.semantic_table_id<br>    and st.deleted is null<br>where<br>    true<br>    and sd.semantic_view_name = $semantic_vw_name<br>    and sd.semantic_view_database_name = $semantic_vw_db_name<br>    and sd.semantic_view_schema_name = $semantic_view_sch_name<br>    and sd.deleted is null<br>union all<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Semantic Fact&#39; as attribute,<br>    sf.semantic_fact_name as semantic_attribute_name,<br>    concat (<br>        st.base_table_database_name,<br>        &#39;.&#39;,<br>        st.base_table_schema_name,<br>        &#39;.&#39;,<br>        st.base_table_name<br>    ) as base_table,<br>    sf.semantic_table_name,<br>    sf.data_type,<br>    sf.expression,<br>    sf.synonyms,<br>    sf.comment<br>from<br>    snowflake.account_usage.semantic_facts sf<br>    left join snowflake.account_usage.semantic_tables st<br>    on sf.semantic_table_id = st.semantic_table_id<br>    and st.deleted is null<br>where<br>    true<br>    and sf.semantic_view_name = $semantic_vw_name<br>    and sf.semantic_view_database_name = $semantic_vw_db_name<br>    and sf.semantic_view_schema_name = $semantic_view_sch_name<br>    and sf.deleted is null<br>union all<br>select<br>    $semantic_view as semantic_view,<br>    &#39;Semantic Metric&#39; as attribute,<br>    sm.semantic_metric_name as semantic_attribute_name,<br>    concat (<br>        st.base_table_database_name,<br>        &#39;.&#39;,<br>        st.base_table_schema_name,<br>        &#39;.&#39;,<br>        st.base_table_name<br>    ) as base_table,<br>    sm.semantic_table_name,<br>    sm.data_type,<br>    sm.expression,<br>    sm.synonyms,<br>    sm.comment<br>from<br>    snowflake.account_usage.semantic_metrics sm<br>    left join snowflake.account_usage.semantic_tables st<br>    on sm.semantic_table_id = st.semantic_table_id<br>    and st.deleted is null<br>where<br>    true<br>    and sm.semantic_view_name = $semantic_vw_name<br>    and sm.semantic_view_database_name = $semantic_vw_db_name<br>    and sm.semantic_view_schema_name = $semantic_view_sch_name<br>    and sm.deleted is null<br>order by<br>    attribute,<br>    semantic_table_name,<br>    semantic_attribute_name;</pre><p>Some useful <a href="https://docs.snowflake.com/en/user-guide/views-semantic/best-practices-dev">best practices for semantic views</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8d111d7a7c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Snowpipe High-Performance Architecture]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-snowpipe-high-performance-architecture-257613dca0cc?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/257613dca0cc</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Sat, 23 May 2026 22:41:29 GMT</pubDate>
            <atom:updated>2026-05-24T13:03:39.565Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l6u1-Oo4E_QU55zURSNA3g.png" /><figcaption>Obtain insight from your data — it is gold!</figcaption></figure><p><a href="https://docs.snowflake.com/en/user-guide/snowpipe-streaming/data-load-snowpipe-streaming-overview">Real time data ingestion</a> will arrive as a default <a href="https://docs.snowflake.com/en/user-guide/snowpipe-streaming/snowpipe-streaming-classic-deprecation">soon</a>.</p><p>An <a href="https://docs.snowflake.com/user-guide/snowpipe-streaming/snowpipe-streaming-high-performance-comparison">architecture comparison</a> and a <a href="https://docs.snowflake.com/en/user-guide/snowpipe-streaming/snowpipe-streaming-high-performance-migration">migration guide</a> is available to assist for it.</p><p>To determine snowpipe usage across your organization, this statement provides a helpful consolidated report -</p><pre>select<br>    a.account_name,<br>    count(p.account_name) as pipe_count,<br>    case<br>        when pipe_count = 0 then &#39;N&#39;<br>        else &#39;Y&#39;<br>    end as pipes_exist<br>from<br>    snowflake.organization_usage.accounts a<br>    left join snowflake.organization_usage.pipes p<br>    on a.account_name = p.account_name and p.deleted is null<br>where<br>    true<br>    and a.deleted_on is null<br>group by<br>    a.account_name<br>order by<br>    pipe_count desc,<br>    account_name;</pre><p>For a specific account -</p><pre>select<br>    current_account_name() as account_name,<br>    count(pipe_name) as pipe_count,<br>    case<br>        when pipe_count = 0 then &#39;N&#39;<br>        else &#39;Y&#39;<br>    end as pipes_exist<br>from<br>    snowflake.account_usage.pipes<br>where<br>    true<br>    and deleted is null;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=257613dca0cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Open Trust Center Severities in your Organization]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-open-trust-center-severities-in-your-organization-8418524d7739?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/8418524d7739</guid>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[trust]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 05:19:12 GMT</pubDate>
            <atom:updated>2026-03-24T16:24:19.639Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*QwANZLDRifvcMWAXs6kd1A.png" /><figcaption>A chain is only as strong as its weakest link!</figcaption></figure><p>A prior post, 4 months back, discussed <a href="https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-using-trust-center-to-advantage-47eafc7c1b6c">Snowflake SQL in a Nutshell: Using Trust Center to Excellent Advantage</a>. In this one, we focus on obtaining a consolidated report on open Trust Center Severities in your Organization.</p><p>A trust center finding state has 3 values:<br>o Open<br>o Resolved Manually<br>o Resolved</p><p>The 4 categories of trust center severity are: Critical | High | Medium | Low.</p><p>Below is some helpful sample code -</p><pre>set tcf_state = &#39;Open&#39;;<br>select<br>    tcf.account_name,<br>    a.region,<br>    tcf.severity,<br>    tcf.scanner_id,<br>    s.short_description,<br>    tcf.state,<br>    tcf.updated_on<br>from<br>    snowflake.organization_usage.trust_center_findings tcf<br>    left join snowflake.organization_usage.accounts a<br>        on tcf.account_name = a.account_name<br>    left join snowflake.trust_center.scanners s<br>        on tcf.scanner_id   = s.id<br>where<br>    true<br>    and a.deleted_on is null<br>    and tcf.state = $tcf_state<br>order by<br>    tcf.account_name,<br>    case<br>        tcf.severity<br>            when &#39;CRITICAL&#39; then 1<br>            when &#39;HIGH&#39;     then 2<br>            when &#39;MEDIUM&#39;   then 3<br>            when &#39;LOW&#39;      then 4<br>    end,<br>    tcf.scanner_id;</pre><p><strong>The case statement assists with a quick sort since severity doesn’t have a natural hierarchical alphabetic order.</strong></p><p>Will end with Benjamin Franklin’s quote: “An ounce of prevention is worth a pound of cure” or an equivalent one: “A stitch in time saves nine” !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8418524d7739" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Consolidated report on Super-Role Grants in your Organization]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-consolidated-report-on-super-role-grants-in-your-organization-e5841cc746c5?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/e5841cc746c5</guid>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[compliance]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 20:36:34 GMT</pubDate>
            <atom:updated>2026-03-12T07:00:23.874Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*On-I0JOL2aDPJ7cy-cTxlw.png" /><figcaption>Ensure proper security of all your data from unauthorized access!</figcaption></figure><p>There are various helpful super-roles which can be granted -<br>o Globalorgadmin<br>o Orgadmin<br>o Accountadmin<br>o Sysadmin<br>o Securityadmin<br>o Useradmin</p><p>The statement below provides a consolidated report on super-role grants to individual/service users in your organization:</p><pre>--report on super-role grants to users in an organization<br>select<br>    a.account_name,<br>    gtu.role as role_name,<br>    max(gtu.created_on) as granted_on,<br>    gtu.grantee_name,<br>    u.login_name,<br>    u.last_success_login,<br>    u.type,<br>    u.has_mfa<br>from<br>    snowflake.organization_usage.accounts a<br>    left join snowflake.organization_usage.grants_to_users gtu<br>        on a.account_name = gtu.account_name<br>    left join snowflake.organization_usage.users u<br>        on a.account_name = u.account_name and gtu.grantee_name = u.name<br>where<br>    true<br>    and gtu.deleted_on is null<br>    and u.deleted_on   is null<br>    and u.disabled     = &#39;false&#39;<br>    and gtu.role in (<br>        &#39;ACCOUNTADMIN&#39;,<br>        &#39;GLOBALORGADMIN&#39;,<br>        &#39;ORGADMIN&#39;,<br>        &#39;SECURITYADMIN&#39;,<br>        &#39;SYSADMIN&#39;,<br>        &#39;USERADMIN&#39;<br>    )<br>group by<br>    all<br>order by<br>    case<br>        role_name<br>          when &#39;GLOBALORGADMIN&#39; then 1<br>          when &#39;ORGADMIN&#39;       then 2<br>          when &#39;ACCOUNTADMIN&#39;   then 3<br>          when &#39;SYSADMIN&#39;       then 4<br>          when &#39;SECURITYADMIN&#39;  then 5<br>          when &#39;USERADMIN&#39;      then 6<br>    end,<br>    a.account_name,<br>    u.login_name;</pre><p><strong>The case statement assists with a quick sort since role_name doesn’t have a natural hierarchical alphabetic order.</strong></p><p>Similarly, a consolidated report on super-role grants to custom roles in your organization can be obtained:</p><pre>--report on super-role grants to custom roles in an organization<br>select<br>    a.account_name,<br>    gtr.name as role_name,<br>    gtr.created_on as granted_on,<br>    gtr.grantee_name,<br>    gtr.privilege,<br>    gtr.grant_option<br>from<br>    snowflake.organization_usage.accounts a<br>    left join snowflake.organization_usage.grants_to_roles gtr<br>        on a.account_name = gtr.account_name<br>where<br>    true<br>    and a.deleted_on is null<br>    and gtr.deleted_on is null<br>    and gtr.name in (<br>        &#39;ACCOUNTADMIN&#39;,<br>        &#39;GLOBALORGADMIN&#39;,<br>        &#39;ORGADMIN&#39;,<br>        &#39;SECURITYADMIN&#39;,<br>        &#39;SYSADMIN&#39;,<br>        &#39;USERADMIN&#39;<br>    )<br>    and gtr.grantee_name not in (<br>        &#39;ACCOUNTADMIN&#39;,<br>        &#39;GLOBALORGADMIN&#39;,<br>        &#39;ORGADMIN&#39;,<br>        &#39;SECURITYADMIN&#39;,<br>        &#39;SYSADMIN&#39;,<br>        &#39;USERADMIN&#39;<br>    )<br>order by<br>    case<br>      role_name<br>        when &#39;GLOBALORGADMIN&#39; then 1<br>        when &#39;ORGADMIN&#39;       then 2<br>        when &#39;ACCOUNTADMIN&#39;   then 3<br>        when &#39;SYSADMIN&#39;       then 4<br>        when &#39;SECURITYADMIN&#39;  then 5<br>        when &#39;USERADMIN&#39;      then 6<br>    end,<br>    a.account_name;</pre><p><strong>As this can complicate audit reports, such grants should be avoided — as much feasible!</strong></p><p>Since a role may also be granted to another role or user, don’t forget to check further via a <em>show grants of role &lt;role_name&gt; .</em></p><p>Note: If no <a href="https://docs.snowflake.com/en/user-guide/organization-accounts">organization account</a>, then this code will assist -</p><pre>--report on super-role grants to users in a specific account<br>--the globalorgadmin role will be absent now<br>select<br>    current_account_name() as account_name,<br>    gtu.role as role_name,<br>    max(gtu.created_on) as granted_on,<br>    gtu.grantee_name,<br>    u.login_name,<br>    u.last_success_login,<br>    u.type,<br>    u.has_mfa<br>from<br>    snowflake.account_usage.grants_to_users gtu<br>      left join snowflake.account_usage.users u on gtu.grantee_name = u.name<br>where<br>    true<br>    and gtu.deleted_on is null<br>    and u.deleted_on   is null<br>    and u.disabled     = &#39;false&#39;<br>    and gtu.role in (<br>        &#39;ACCOUNTADMIN&#39;,<br>        &#39;ORGADMIN&#39;,<br>        &#39;SECURITYADMIN&#39;,<br>        &#39;SYSADMIN&#39;,<br>        &#39;USERADMIN&#39;<br>    )<br>group by<br>    all<br>order by<br>    case<br>        role_name<br>          when &#39;ORGADMIN&#39;       then 1<br>          when &#39;ACCOUNTADMIN&#39;   then 2<br>          when &#39;SYSADMIN&#39;       then 3<br>          when &#39;SECURITYADMIN&#39;  then 4<br>          when &#39;USERADMIN&#39;      then 5<br>    end,<br>    u.login_name;</pre><p>and</p><pre>--report on super-role grants to custom roles in a specific account<br>--the globalorgadmin role will be absent now<br>select<br>    current_account_name() as account_name,<br>    name as role_name,<br>    created_on as granted_on,<br>    grantee_name,<br>    privilege,<br>    grant_option<br>from<br>    snowflake.account_usage.grants_to_roles<br>where<br>    true<br>    and deleted_on is null<br>    and name in (<br>        &#39;ACCOUNTADMIN&#39;,<br>        &#39;ORGADMIN&#39;,<br>        &#39;SECURITYADMIN&#39;,<br>        &#39;SYSADMIN&#39;,<br>        &#39;USERADMIN&#39;<br>    )<br>    and grantee_name not in (<br>        &#39;ACCOUNTADMIN&#39;,<br>        &#39;ORGADMIN&#39;,<br>        &#39;SECURITYADMIN&#39;,<br>        &#39;SYSADMIN&#39;,<br>        &#39;USERADMIN&#39;<br>    )<br>order by<br>    case<br>      role_name<br>        when &#39;ORGADMIN&#39;       then 1<br>        when &#39;ACCOUNTADMIN&#39;   then 2<br>        when &#39;SYSADMIN&#39;       then 3<br>        when &#39;SECURITYADMIN&#39;  then 4<br>        when &#39;USERADMIN&#39;      then 5<br>    end<br>;</pre><p><strong>Enjoy peace of mind with excellent data security!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e5841cc746c5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Determine Usage of Reporting Tools in your Organization]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-determine-usage-of-reporting-tools-in-your-organization-5a1c3bbd94d7?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a1c3bbd94d7</guid>
            <category><![CDATA[reporting]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[dashboard]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Sun, 18 Jan 2026 01:33:08 GMT</pubDate>
            <atom:updated>2026-03-12T06:48:21.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*KBL9tswzgBD8VswsBDxv_Q.png" /><figcaption>Save money via advantageous usage of your reporting apps!</figcaption></figure><p>A plethora of dashboard, reporting and data visualization software are available and some popular ones are listed below:<br>o Alteryx<br>o Google Looker<br>o Microsoft Excel<br>o Microsoft Power BI<br>o Microstrategy<br>o Python packages (like Altair, Matplotlib, Plotly, Seaborn)<br>o Qlik<br>o Tableau (now acquired by Salesforce)<br>o ThoughtSpot</p><p><strong>Consider using Apache Arrow Database Connectivity (ADBC) which uses an in-memory columnar format, designed for high-speed analytics and data transfer</strong> — like Power BI’s engine. JDBC, ODBC utilize row-based methods.</p><p>The in-memory columnar format is also used by the <a href="https://pkg.go.dev/github.com/snowflakedb/gosnowflake">Go Snowflake driver</a>.</p><p>Discussing with an example — determination of Power BI usage is tricky due to these factors:</p><p><strong>1.</strong> Individual users can run adhoc reports with authentication via Power BI Desktop and ADSSO — this needs a security integration to be created with type EXTERNAL_OAUTH.</p><p>There isn’t a view presently in snowflake.account_usage schema which one could query for such integrations and thus similarly, no such view available in snowflake.organization_usage .</p><p><strong>2.</strong> Scheduled reports can use Power BI Gateways and can authenticate via Programmatic Access Token (PAT) — RSA key-pair, which assist with minimal application downtime during credential rotation, isn’t supported yet.</p><p><strong>3.</strong> One of the application name patterns is a little cryptic.</p><p>This snippet provides a summary report on Power BI usage in an account -</p><pre>set app_pattern1 = &#39;%MashupEngine%&#39;;<br>set app_pattern2 = &#39;%PowerBIDesktop%&#39;;<br>set duration     = 90;<br><br>select<br>    s.user_name,<br>    lh.client_ip,<br>    s.client_application_id,<br>    parse_json(s.client_environment):APPLICATION::string as app,<br>    count(s.session_id) as session_count<br>from<br>    snowflake.account_usage.sessions s<br>    left join snowflake.account_usage.login_history lh<br>        on s.login_event_id = lh.event_id<br>where<br>    true<br>    and s.created_on &gt;= current_date - $duration<br>    and (<br>        app ilike $app_pattern1<br>        or app ilike $app_pattern2<br>    )<br>group by<br>    all<br>order by<br>    session_count desc;</pre><p>Some tweak needed when referencing the organization_usage schema:</p><pre>set app_pattern1 = &#39;%MashupEngine%&#39;;<br>set app_pattern2 = &#39;%PowerBIDesktop%&#39;;<br>set duration     = 90;<br><br>select<br>    lh.account_name,<br>    s.user_name,<br>    lh.client_ip,<br>    s.client_application_id,<br>    parse_json(s.client_environment):APPLICATION::string as app,<br>    count(s.session_id) as session_count<br>from<br>    snowflake.organization_usage.sessions s<br>    left join snowflake.organization_usage.login_history lh<br>        on s.account_name = lh.account_name<br>        and s.login_event_id = lh.event_id<br>where<br>    true<br>    and s.created_on &gt;= current_date - $duration<br>    and (<br>        app ilike $app_pattern1<br>        or app ilike $app_pattern2<br>    )<br>group by<br>    all<br>order by<br>    lh.account_name asc,<br>    session_count desc;</pre><p>The above is helpful for a consolidated report in your organization!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a1c3bbd94d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My top dozen Snowflake features released in 2025]]></title>
            <link>https://medium.com/@nadird3/my-top-dozen-snowflake-features-released-in-2025-75cf5537e03f?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/75cf5537e03f</guid>
            <category><![CDATA[product]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[features]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Sat, 20 Dec 2025 18:35:59 GMT</pubDate>
            <atom:updated>2025-12-20T19:00:39.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uumeL8SKvuOkid4fyjDXuQ.jpeg" /><figcaption>Budding Up!</figcaption></figure><p>As 2025 comes to a close, reflecting on an incredible year! In this special year-end post, celebrating the highlights that made 2025 unforgettable — showcasing the innovations that brought us closer to a mission of empowering data-driven teams.</p><p>These are my favorite cherry-picked product functionalities and listed in no specific order:</p><p>o <a href="https://docs.snowflake.com/en/developer-guide/snowflake-python-api/snowflake-python-demos">Snowflake Python Demos API</a><br>o <a href="https://docs.snowflake.com/en/user-guide/ui-snowsight-integrations">Managing integrations in Snowsight</a><br>o <a href="https://docs.snowflake.com/en/user-guide/snowflake-cortex/snowflake-intelligence">Overview of Snowflake Intelligence</a><br>o <a href="https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-agents-manage">Configure and interact with Agents</a><br>o <a href="https://docs.snowflake.com/en/developer-guide/snowpark/python/reading-data-from-external-sources">Using the Snowpark Python DB-API</a><br>o <a href="https://docs.snowflake.com/en/user-guide/backups">Backups for disaster recovery and immutable storage</a><br>o <a href="https://docs.snowflake.com/en/user-guide/data-quality-ui-monitor">Monitoring data quality checks in Snowsight</a><br>o <a href="https://docs.snowflake.com/en/user-guide/data-quality-profile">Use data profiling to understand your data</a><br>o <a href="https://docs.snowflake.com/en/sql-reference/bind-variables#label-bind-variables-retrieving-values">Retrieve bind variable values</a><br>o <a href="https://docs.snowflake.com/en/user-guide/trust-center/trust-center-extensions">Using Trust Center extensions</a><br>o <a href="https://docs.snowflake.com/en/user-guide/data-quality-anomaly">Detecting anomalies in data quality</a><br>o <a href="https://docs.snowflake.com/en/user-guide/snowflake-postgres/about">Snowflake Postgres</a></p><p>Look forward to continue working with several of these in 2026 — Happy Holidays and Best Wishes for the New Year!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75cf5537e03f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snowflake SQL in a Nutshell: Using Trust Center to Advantage]]></title>
            <link>https://medium.com/@nadird3/snowflake-sql-in-a-nutshell-using-trust-center-to-advantage-47eafc7c1b6c?source=rss-45a8007adc49------2</link>
            <guid isPermaLink="false">https://medium.com/p/47eafc7c1b6c</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[snowflake]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[NadirDoctor]]></dc:creator>
            <pubDate>Thu, 27 Nov 2025 07:17:17 GMT</pubDate>
            <atom:updated>2025-12-02T00:14:39.951Z</atom:updated>
            <content:encoded><![CDATA[<h3>Snowflake SQL in a Nutshell: Using Trust Center to Excellent Advantage</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9w0vI_I0l6Pi9wNsBjVH9A.jpeg" /><figcaption>Implement Robust End-to-End Security</figcaption></figure><p>Useful scanner packages are available within Snowflake which bundle various scanners — this is a current summary snapshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXMPGFxKagI2kmQhtW-xdQ.png" /></figure><p>Several helpful views are also provided in the snowflake.trust_center schema — 10, as of today:</p><p>ACCOUNT_NOTIFICATION_RECIPIENTS<br>CONFIGURATION_VIEW<br>EXTENSIONS<br>FINDINGS<br>FINDING_ACTIVITY_HISTORY<br>FINDING_COMMENTS<br>OVERVIEW_METRICS<br>SCANNERS<br>SCANNER_PACKAGES<br>TIME_SERIES_DAILY_FINDINGS</p><p>The snowflake.organization_usage.trust_center_findings view can be used advantageously with snowflake.trust_center.scanners to generate an important security report since the scanner_id is quite cryptic:</p><pre>select<br>    tcf.account_name,<br>    tcf.scanner_package_id,<br>    tcf.scanner_id,<br>    s.short_description,<br>    tcf.severity,<br>    tcf.state,<br>    s.description<br>from<br>    snowflake.organization_usage.trust_center_findings tcf<br>    inner join snowflake.trust_center.scanners s<br>        on tcf.scanner_package_id = s.scanner_package_id<br>        and tcf.scanner_id = s.id<br>where<br>    true<br>group by<br>    all<br>order by<br>    tcf.account_name,<br>    tcf.scanner_package_id,<br>    tcf.scanner_id,<br>    tcf.severity,<br>    tcf.state;<br><br>/*<br>    In case you&#39;re not already using an organization account, <br>    replace organization_usage with account_usage in the above <br>    code snippet and exclude account_name<br>*/<br></pre><p><strong>A valuable bonus is the complimentary get_user_email_verification_status stored procedure which accepts a JSON array of user_names as a parameter and returns an object:</strong></p><pre>use role securityadmin;<br>use snowflake;<br>grant application role TRUST_CENTER_ADMIN to role &lt;role_name&gt;;<br><br>use role &lt;role_name&gt;;<br>call snowflake.trust_center.get_user_email_verification_status(&#39;[ &quot;&lt;user_name1&gt;&quot;, &quot;&lt;user_name2&gt;&quot;, ... ]&#39;);</pre><p>Sample output -</p><pre>{<br>  &quot;error&quot;: &quot;false&quot;,<br>  &quot;result&quot;: &quot;[{\&quot;userName\&quot;:\&quot;<strong>&lt;user_name1</strong>&gt;\&quot;,\&quot;isActiveUser\&quot;:true,\&quot;hasVerifiedEmail\&quot;:<strong>false</strong>},<br>              {\&quot;userName\&quot;:\&quot;&lt;<strong>user_name2</strong>&gt;\&quot;,\&quot;isActiveUser\&quot;:true,\&quot;hasVerifiedEmail\&quot;:<strong>true</strong>}<br>              ...<br>             ]&quot;<br>}</pre><p>Every user needs their email <a href="https://docs.snowflake.com/en/user-guide/ui-snowsight-profile#verify-your-email-address">validated</a> to receive email notifications — unless a distribution list email is used.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47eafc7c1b6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>