<?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>question SQOOP --query with SCHEMA in MSSQL in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/53965#M59811</link>
    <description>&lt;P&gt;I'm trying to use the --query option in sqoop to import data from MSSQL. My concern is, how can we declare which schema to use ung --query in MSSQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;P&gt;sqoop \&lt;BR /&gt;--options-file sqoop/aw_mssql.cfg \&lt;BR /&gt;--query "select BusinessEntityId, LoginID, cast(OrganizationNode as string) from Employee where \$CONDITIONS" \&lt;BR /&gt;--hive-table employees \&lt;BR /&gt;--hive-database mssql \&lt;BR /&gt;-- --schema=HumanResources&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still produces an error "Invalid object name 'Employee'".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried --connect "jdbc:sqlserver://192.168.1.17;database=AdventureWorks;schema=HumanResources" but also failed.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:29:49 GMT</pubDate>
    <dc:creator>helpdk</dc:creator>
    <dc:date>2022-09-16T11:29:49Z</dc:date>
    <item>
      <title>SQOOP --query with SCHEMA in MSSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/53965#M59811</link>
      <description>&lt;P&gt;I'm trying to use the --query option in sqoop to import data from MSSQL. My concern is, how can we declare which schema to use ung --query in MSSQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script:&lt;/P&gt;&lt;P&gt;sqoop \&lt;BR /&gt;--options-file sqoop/aw_mssql.cfg \&lt;BR /&gt;--query "select BusinessEntityId, LoginID, cast(OrganizationNode as string) from Employee where \$CONDITIONS" \&lt;BR /&gt;--hive-table employees \&lt;BR /&gt;--hive-database mssql \&lt;BR /&gt;-- --schema=HumanResources&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still produces an error "Invalid object name 'Employee'".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried --connect "jdbc:sqlserver://192.168.1.17;database=AdventureWorks;schema=HumanResources" but also failed.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:29:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/53965#M59811</guid>
      <dc:creator>helpdk</dc:creator>
      <dc:date>2022-09-16T11:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP --query with SCHEMA in MSSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/53992#M59812</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/21731"&gt;@helpdk&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select col1, col2&amp;nbsp;from HumanResources.Employee &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 14:22:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/53992#M59812</guid>
      <dc:creator>saranvisa</dc:creator>
      <dc:date>2017-04-21T14:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQOOP --query with SCHEMA in MSSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/54118#M59813</link>
      <description>My bad, that was the only thing i didn't try lol. BTW, this is the solution. Thanks</description>
      <pubDate>Wed, 26 Apr 2017 09:01:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQOOP-query-with-SCHEMA-in-MSSQL/m-p/54118#M59813</guid>
      <dc:creator>helpdk</dc:creator>
      <dc:date>2017-04-26T09:01:02Z</dc:date>
    </item>
  </channel>
</rss>

