<?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 How to pass a dynamic query to source server from databricks in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-a-dynamic-query-to-source-server-from-databricks/m-p/78431#M3395</link>
    <description>&lt;P&gt;I have this usecase wherein i am supposed to pass a dynamic query to get data from source I have tried the query option but its giving error&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;SparkConnectGrpcException: &lt;/SPAN&gt;&lt;SPAN&gt;(com.microsoft.sqlserver.jdbc.SQLServerException) Incorrect syntax near the keyword 'exec'.&lt;BR /&gt;I have tried executing same query in sql server and it works fine.Does anyone know how can i acheive it?&lt;BR /&gt;&lt;BR /&gt;i have also tried the prepare_query option and tried to pass two queries it was helpful when i was passing cte but not when a dynamic query is created.&lt;BR /&gt;&lt;BR /&gt;can anyone help?&lt;BR /&gt;&lt;BR /&gt;#jdbc#databricks#dynamicQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2024 02:43:14 GMT</pubDate>
    <dc:creator>Rajani</dc:creator>
    <dc:date>2024-07-12T02:43:14Z</dc:date>
    <item>
      <title>How to pass a dynamic query to source server from databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-a-dynamic-query-to-source-server-from-databricks/m-p/78431#M3395</link>
      <description>&lt;P&gt;I have this usecase wherein i am supposed to pass a dynamic query to get data from source I have tried the query option but its giving error&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;SparkConnectGrpcException: &lt;/SPAN&gt;&lt;SPAN&gt;(com.microsoft.sqlserver.jdbc.SQLServerException) Incorrect syntax near the keyword 'exec'.&lt;BR /&gt;I have tried executing same query in sql server and it works fine.Does anyone know how can i acheive it?&lt;BR /&gt;&lt;BR /&gt;i have also tried the prepare_query option and tried to pass two queries it was helpful when i was passing cte but not when a dynamic query is created.&lt;BR /&gt;&lt;BR /&gt;can anyone help?&lt;BR /&gt;&lt;BR /&gt;#jdbc#databricks#dynamicQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2024 02:43:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-pass-a-dynamic-query-to-source-server-from-databricks/m-p/78431#M3395</guid>
      <dc:creator>Rajani</dc:creator>
      <dc:date>2024-07-12T02:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a dynamic query to source server from databricks</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-pass-a-dynamic-query-to-source-server-from-databricks/m-p/78734#M3411</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;BR /&gt;thanks for your reply,&lt;BR /&gt;I have used foreign catalouge to fetch required data from information schema&amp;nbsp; then i am creating the dynamic query in databricks and then passing in query this is working for me!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 03:46:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-pass-a-dynamic-query-to-source-server-from-databricks/m-p/78734#M3411</guid>
      <dc:creator>Rajani</dc:creator>
      <dc:date>2024-07-15T03:46:34Z</dc:date>
    </item>
  </channel>
</rss>

