<?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: pyodbc read only connection. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21694#M14825</link>
    <description>&lt;P&gt;Thanks, I saw in pyodbc issues that not all drivers support it too.&lt;/P&gt;&lt;P&gt;But wanted to ask just to be sure.!&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2022 15:04:34 GMT</pubDate>
    <dc:creator>Orianh</dc:creator>
    <dc:date>2022-05-03T15:04:34Z</dc:date>
    <item>
      <title>pyodbc read only connection.</title>
      <link>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21692#M14823</link>
      <description>&lt;P&gt;Hey Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to open pyodbc read only connection with simba spark driver? &lt;/P&gt;&lt;P&gt;At the moment, I'm able to execute queries such as select , delete, insert into - basically every sql statement using pyodbc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to open pyodbc connection but only with read permissions which means the user won't be able to delete/ create/ change any table - just read data from it. but didn't succeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried open connections in this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;con  = pyodbc.connect(connection_string, autocommit=True, readonly=True)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a built in way already? Or I must check the query that i have been asked to execute?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help me,&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 13:03:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21692#M14823</guid>
      <dc:creator>Orianh</dc:creator>
      <dc:date>2022-05-02T13:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: pyodbc read only connection.</title>
      <link>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21693#M14824</link>
      <description>&lt;P&gt;This readonly=True is working only on some drivers. Just create additional users with granted read-only permission.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 14:50:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21693#M14824</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-05-03T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: pyodbc read only connection.</title>
      <link>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21694#M14825</link>
      <description>&lt;P&gt;Thanks, I saw in pyodbc issues that not all drivers support it too.&lt;/P&gt;&lt;P&gt;But wanted to ask just to be sure.!&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 15:04:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/pyodbc-read-only-connection/m-p/21694#M14825</guid>
      <dc:creator>Orianh</dc:creator>
      <dc:date>2022-05-03T15:04:34Z</dc:date>
    </item>
  </channel>
</rss>

