{"id":540,"date":"2016-03-11T21:15:10","date_gmt":"2016-03-11T15:45:10","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=540"},"modified":"2016-03-11T21:15:10","modified_gmt":"2016-03-11T15:45:10","slug":"iib-v9-odbc-configuration-error","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2016\/03\/11\/iib-v9-odbc-configuration-error\/","title":{"rendered":"IIB v9 ODBC Configuration Error"},"content":{"rendered":"<p>IIB v9 ODBC Configuration Error while setting up and validating SQLServer database.<\/p>\n<p>Following error messages are displayed while validating the SQLServer database,<\/p>\n<p>BIP2393E: Database error: ODBC return code &#8216;-1&#8217; from data source<\/p>\n<p>BIP2322E: Database error: SQL State &#8221;01000&#8221;; Native Error Code &#8216;0&#8217;;<\/p>\n<p><span style=\"text-decoration: underline;\">Resolution<\/span><\/p>\n<p>While using SQLSERVER Database make sure that you are giving proper .so file path and this has to be right one other wise above mentioned error will be displayed. SQL Server driver <span class=\"ph filepath\">UKsqls26.so<\/span> was introduced with <span class=\"ph\">IBM Integration Bus<\/span> V9.0.0.3. If you are at an earlier version than V9.0.0.3, SQL Server driver <span class=\"ph filepath\">UKmsss26.so<\/span> should be used.<\/p>\n<p>So the path used in the ODBC.ini file should be as below,<\/p>\n<p>IIB v9.0.0.2 and v9.0.0.1 use: &lt;Your Broker install directory&gt;\/ODBC\/V7.0\/lib\/UKmsss26.so<\/p>\n<p>Above IIB v9.0.0.3 use: &lt;Your Broker install directory&gt;\/ODBC\/V7.0\/lib\/UKsqls26.so<\/p>\n<p>So the ODBC.ini file will be update as below (assuming v9.0.0.3),<\/p>\n<p>;# UNIX to SQLServer stanza<br \/>\n[SQLSERVERDB]<br \/>\nDriver=&lt;Your Broker install directory&gt;\/ODBC\/V7.0\/lib\/UKsqls26.so<br \/>\nDescription=DataDirect 7.1 ODBC SQL Server Wire Protocol<br \/>\nAddress=&lt;Your SQLServer Machine Name&gt;,&lt;Your SQLServer Port Number&gt;<br \/>\n;# Alternative way to locate server using a named instance<br \/>\n;# Address=&lt;Your SQLServer Machine Name&gt;\\&lt;Your SQLServer Instance Name&gt;<br \/>\nAnsiNPW=Yes<br \/>\nDatabase=&lt;Your Database Name&gt;<br \/>\nQuotedId=No<br \/>\nColumnSizeAsCharacter=1<\/p>\n<p>&nbsp;<\/p>\n<p>Please note that an alternative way is mentioned to locate server using a named instance. We can either use<\/p>\n<p>1. &lt;Your SQLServer Machine Name&gt;,&lt;Your SQLServer Port Number&gt;<\/p>\n<p>or<\/p>\n<p>2. &lt;Your SQLServer Machine Name&gt;\\&lt;Your SQLServer Instance Name&gt;<\/p>\n<p>If 1 fails please use 2 for connecting to the SQLServer instance.<\/p>\n<p>&nbsp;<\/p>\n<p>IBM Integration Bus Command to validate the Database is,<\/p>\n<p>mqsicvp &lt;brokername&gt; -n &lt;DB name&gt;<\/p>\n<p>As mentioned in previous blog <a href=\"http:\/\/www.middlewareprimer.com\/blog\/2016\/03\/10\/iib-v9-odbc-configuration-setup\/\"><span style=\"text-decoration: underline;\">entry<\/span><\/a>, proper editing of the ODBC ini file will resolve these errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IIB v9 ODBC Configuration Error while setting up and validating SQLServer database. Following error messages are displayed while validating the SQLServer database, BIP2393E: Database error: ODBC return code &#8216;-1&#8217; from data source BIP2322E: Database error: SQL State &#8221;01000&#8221;; Native Error Code &#8216;0&#8217;; Resolution While using SQLSERVER Database make sure that you are giving proper .so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-540","post","type-post","status-publish","format-standard","hentry","category-ibm-integration-bus"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":2,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"predecessor-version":[{"id":542,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/540\/revisions\/542"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}