<?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 connect to a MS SQL Server query result in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-connect-to-a-ms-sql-server-query-result/m-p/160816#M8968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've a table in MS SQL Server that I'm going to use in a join with a shapefile. To realize this join, I have to combine two columns of this table and doing this at MS SQL Server is much more easier. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Expression used at MS SQL Server):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT [Column 01] + '/' + [Column 02]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM [Database].[dbo].[tb_table]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I would like to connect the ArcGIS server with this MS SQL query result to execute the join. Is it possible? How? I would like to avoid the creation of a view in MS SQL Server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be solved if ArcGIS could accept commands like the one described above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already connected the MS SQL Server database to ArcGIS using the ArcCatalog (Add OLE DB Connection -&amp;gt; Microsoft OLE DB Provider for SQL Server) and I use the ArcGIS 9.3.1 SP2 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 14:42:07 GMT</pubDate>
    <dc:creator>Junior_</dc:creator>
    <dc:date>2011-05-16T14:42:07Z</dc:date>
    <item>
      <title>How to connect to a MS SQL Server query result</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-connect-to-a-ms-sql-server-query-result/m-p/160816#M8968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've a table in MS SQL Server that I'm going to use in a join with a shapefile. To realize this join, I have to combine two columns of this table and doing this at MS SQL Server is much more easier. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Expression used at MS SQL Server):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT [Column 01] + '/' + [Column 02]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM [Database].[dbo].[tb_table]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I would like to connect the ArcGIS server with this MS SQL query result to execute the join. Is it possible? How? I would like to avoid the creation of a view in MS SQL Server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be solved if ArcGIS could accept commands like the one described above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've already connected the MS SQL Server database to ArcGIS using the ArcCatalog (Add OLE DB Connection -&amp;gt; Microsoft OLE DB Provider for SQL Server) and I use the ArcGIS 9.3.1 SP2 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 14:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-connect-to-a-ms-sql-server-query-result/m-p/160816#M8968</guid>
      <dc:creator>Junior_</dc:creator>
      <dc:date>2011-05-16T14:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to a MS SQL Server query result [Solved]</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-connect-to-a-ms-sql-server-query-result/m-p/160817#M8969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found the solution using the model builder. After separate from the SQL table the data of interest, I've added a new field to allocate the concatenation results. Then, using the tool "Calculate Field", I used the expression [Column1] + "/" + [Column2], and the Add Join Tool worked properly! :cool:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2011 16:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-connect-to-a-ms-sql-server-query-result/m-p/160817#M8969</guid>
      <dc:creator>Junior_</dc:creator>
      <dc:date>2011-05-19T16:25:54Z</dc:date>
    </item>
  </channel>
</rss>

