<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948256#M2199</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268213" data-lia-user-login="Element115" class="lia-mention lia-mention-user"&gt;Element115&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you create the view? Can you please share the code here?&lt;/P&gt;
&lt;P&gt;If you create the view using the tables present in lakehouse, then it would be shown in the sql query result.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2024 17:35:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-24T17:35:32Z</dc:date>
    <item>
      <title>QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948194#M2195</link>
      <description>&lt;P&gt;Why do the following 2 TSQL queries return an empty result set?&amp;nbsp; Also nothing with a WHERE clause on a table name in the LH.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *
FROM INFORMATION_SCHEMA.VIEW_COLUMN_USAGE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *
FROM INFORMATION_SCHEMA.VIEW_TABLE_USAGE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:11:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948194#M2195</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-05-24T17:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948216#M2196</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268213" data-lia-user-login="Element115" class="lia-mention lia-mention-user"&gt;Element115&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;If you have any views in the lakehouse, then the queries will return some data.&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;I had no views in Lakehouse_2:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;In other case I created a view in another lakehouse:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any other questions.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:19:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948216#M2196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-24T17:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948228#M2197</link>
      <description>&lt;P&gt;Oh I am sorry.&amp;nbsp; It's the column and table usage of any VIEWS.&amp;nbsp; I was reading this as the verb 'to view' the column and/or table usages of tables, not views.&amp;nbsp; Need another coffee.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&amp;nbsp; I have no views, so ofc it's empty.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:21:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948228#M2197</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-05-24T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948254#M2198</link>
      <description>&lt;P&gt;Actually, I take back my previous answer.&amp;nbsp; I just tried running both TSQL queries on a LH that has a view, and as you can see in my screenshot, it does not work on my end:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:32:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948254#M2198</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-05-24T17:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948256#M2199</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268213" data-lia-user-login="Element115" class="lia-mention lia-mention-user"&gt;Element115&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you create the view? Can you please share the code here?&lt;/P&gt;
&lt;P&gt;If you create the view using the tables present in lakehouse, then it would be shown in the sql query result.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948256#M2199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-24T17:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948259#M2200</link>
      <description>&lt;LI-CODE lang="markup"&gt;CREATE VIEW vTABLE_NAMES 
AS 
SELECT * 
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'dbo'
;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 May 2024 17:36:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948259#M2200</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-05-24T17:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948270#M2202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268213" data-lia-user-login="Element115" class="lia-mention lia-mention-user"&gt;Element115&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Create a view using table present in lakehouse and retry.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:43:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948270#M2202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-24T17:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948280#M2203</link>
      <description>&lt;P&gt;In this case, with a VIEW on a user created table, it works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why does it not work for VIEWs on the&amp;nbsp;&lt;SPAN&gt;INFORMATION_SCHEMA?&amp;nbsp; Ahhh because they are all views in this schema and not tables. Duh.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:51:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948280#M2203</guid>
      <dc:creator>Element115</dc:creator>
      <dc:date>2024-05-24T17:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: QUESTION::SQL ENDPOINT::INFORMATION_SCHEMA::QUERY RETURN NOTHING</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948284#M2204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="268213" data-lia-user-login="Element115" class="lia-mention lia-mention-user"&gt;Element115&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The information_schema.VIEW_TABLE_USAGE is an information schema view that returns one row for each table in the current database that is used in a view. Here the current database is the lakehouse. So if the view is created using the table present in lakehouse, then the data will be displayed in the information schema. This view provides information about the objects to which the current user has permissions.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Here are some of the columns you might find in information_schema.VIEW_TABLE_USAGE:&lt;/P&gt;
&lt;P&gt;VIEW_CATALOG: View qualifier.&lt;BR /&gt;VIEW_SCHEMA: Name of schema that contains the view.&lt;BR /&gt;VIEW_NAME: View name.&lt;BR /&gt;TABLE_CATALOG: Table qualifier.&lt;BR /&gt;TABLE_SCHEMA: Name of schema that contains the base table.&lt;BR /&gt;TABLE_NAME: Base table that the view is based on.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 17:55:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/QUESTION-SQL-ENDPOINT-INFORMATION-SCHEMA-QUERY-RETURN-NOTHING/m-p/3948284#M2204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-24T17:55:05Z</dc:date>
    </item>
  </channel>
</rss>

