<?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: How to import a data table from SQLQuery2 into Databricks notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15004#M9404</link>
    <description>&lt;P&gt;Would someone provide example with IntegratedSecurity instead of user name and password?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible with Databricks? We do have Azure AD sync'd. Any additional steps to allow IntegratedSecurity in connection string for better security control? &lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 14:55:07 GMT</pubDate>
    <dc:creator>DBXC</dc:creator>
    <dc:date>2023-04-26T14:55:07Z</dc:date>
    <item>
      <title>How to import a data table from SQLQuery2 into Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15001#M9401</link>
      <description>&lt;P&gt;Can anyone show me a few commands to import a table, say "mytable2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From: Microsoft SQL Server&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Into: Databricks Notebook using spark dataframe or at least pandas dataframe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:18:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15001#M9401</guid>
      <dc:creator>moski</dc:creator>
      <dc:date>2022-12-22T14:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a data table from SQLQuery2 into Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15002#M9402</link>
      <description>&lt;P&gt;You can read any table from MSSQL. You would need to authenticate to the db, so your would need the connection string:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;def dbProps():
 return {
  "user" : "db-user",
  "password" : "your password",
  "driver" : "com.microsoft.sqlserver.jdbc.SQLServerDriver"
 }&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you use the above function to authenticate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then read using the below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;url ="jdbc:sqlserver://servername.database.windows.net:1433;database=db-test"
df = spark.read.jdbc(url=url, table="dbo.tablename", properties=dbProps())
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 21:28:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15002#M9402</guid>
      <dc:creator>irfanaziz</dc:creator>
      <dc:date>2022-12-22T21:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a data table from SQLQuery2 into Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15003#M9403</link>
      <description>&lt;P&gt;absolutely right but make sure that you have firewall enabled for SQL server&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2022 03:37:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15003#M9403</guid>
      <dc:creator>Aviral-Bhardwaj</dc:creator>
      <dc:date>2022-12-23T03:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a data table from SQLQuery2 into Databricks notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15004#M9404</link>
      <description>&lt;P&gt;Would someone provide example with IntegratedSecurity instead of user name and password?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible with Databricks? We do have Azure AD sync'd. Any additional steps to allow IntegratedSecurity in connection string for better security control? &lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:55:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-import-a-data-table-from-sqlquery2-into-databricks/m-p/15004#M9404</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-04-26T14:55:07Z</dc:date>
    </item>
  </channel>
</rss>

