<?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 OLE DB connection to MS SQL 2008 database table in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589900#M22809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Sir / Madam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to connect ArcCatalog 10.0 via OLE DB Connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can preview all tables in the database except for one stating "The selection cannot be previewed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This table contains x/y coordinates and if I try to create a feature clase it causes the error below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There was an error trying to process this table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An underlying database error occured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An underlying database error occured.[dbo.xxx.tablename]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple-step OLE DB operation generated errors.&amp;nbsp; Check each OLE DB status&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value, if available.&amp;nbsp; No work was done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a log file that would provide more detail as to what ArcCatalog does not like about this table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any particular MS SQL 2008 column data types that should be avoided?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(table currently has 63 columns of data types int, varchar, datetime, tinyint, bit, numeric, nvarchar and xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be greatfully appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards, Adrian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 21:09:31 GMT</pubDate>
    <dc:creator>AdrianGomez</dc:creator>
    <dc:date>2012-07-11T21:09:31Z</dc:date>
    <item>
      <title>OLE DB connection to MS SQL 2008 database table</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589900#M22809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Sir / Madam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to connect ArcCatalog 10.0 via OLE DB Connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can preview all tables in the database except for one stating "The selection cannot be previewed"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This table contains x/y coordinates and if I try to create a feature clase it causes the error below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There was an error trying to process this table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An underlying database error occured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An underlying database error occured.[dbo.xxx.tablename]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple-step OLE DB operation generated errors.&amp;nbsp; Check each OLE DB status&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;value, if available.&amp;nbsp; No work was done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a log file that would provide more detail as to what ArcCatalog does not like about this table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any particular MS SQL 2008 column data types that should be avoided?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(table currently has 63 columns of data types int, varchar, datetime, tinyint, bit, numeric, nvarchar and xml)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions would be greatfully appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards, Adrian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 21:09:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589900#M22809</guid>
      <dc:creator>AdrianGomez</dc:creator>
      <dc:date>2012-07-11T21:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB connection to MS SQL 2008 database table</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589901#M22810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adrian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find the Sql Server logs in the DATA folder typically found in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files\Microsoft Sql Server\MSSQL10_50.MACHINE\MSSQL\DATA.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;They won't tell you much in direct relation to ArcGIS but they will let you know what Sql Server is complaining about.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you query the table in Sql Server Management Studio?&amp;nbsp; This is often a datatype problem. Make sure the fields in the table are acceptable and do not contain special characters or reserved words.&amp;nbsp; Make sure you are passing valid datatypes to whatever is going on in the database.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know about the query in Sql Server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 00:25:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589901#M22810</guid>
      <dc:creator>KenGalliher1</dc:creator>
      <dc:date>2012-07-24T00:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB connection to MS SQL 2008 database table</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589902#M22811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ken,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate the reply.&amp;nbsp; I can successfully query the table in SQL Server Management Studio.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By way of process of elimination a View of the Table was created introducing one field at a time until it failed to preview in ArcCatalog.&amp;nbsp; The offending field is called strNatureOfCall.&amp;nbsp; Originally the Supplier had the datatype for strNatureOfCall as TEXT.&amp;nbsp; Following some research I recommended that datatype VARCHAR be used to keep field content in unicode characters.&amp;nbsp; This has now been implemented by our Supplier.&amp;nbsp; However they implemented as varchar(MAX) which did not resolved the issue with preview in ArcCatalog.&amp;nbsp; ArcCatalog saw field datatype varchar(MAX) as datatype BLOB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After your reply gave me a steer I did some more research and found this article (albeit for an older version) &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisserver/9.3/dotnet/index.htm#geodatabases/sql_server_data_types.htm"&gt;http://webhelp.esri.com/arcgisserver/9.3/dotnet/index.htm#geodatabases/sql_server_data_types.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After reading I understood that ArcGIS will convert varchar above 8000 to datatype blob.&amp;nbsp; Went&amp;nbsp; back to Supplier go them to change the datatype from varchar(max) to varchar(4000) and that enabled ArcCatalog to maintain the datatype as a text datatype rather than convert it to a blob datatype.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the great steer which helped me on the way to resolve the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;all the best, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adrian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 08:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589902#M22811</guid>
      <dc:creator>AdrianGomez</dc:creator>
      <dc:date>2012-07-24T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: OLE DB connection to MS SQL 2008 database table</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589903#M22812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Adrian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good catch on the BLOB conversion.&amp;nbsp; I'm glad I could help but it looks like you did all the heavy lifting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 18:11:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/ole-db-connection-to-ms-sql-2008-database-table/m-p/589903#M22812</guid>
      <dc:creator>KenGalliher1</dc:creator>
      <dc:date>2012-07-26T18:11:05Z</dc:date>
    </item>
  </channel>
</rss>

