Note that there are some explanatory texts on larger screens.

plurals
  1. POConnecting to Oracle Database in Haskell using HDBC
    primarykey
    data
    text
    <p>I was trying to work with Oracle Database from Haskell and have faced with such problem. So, there is this code. module Main where</p> <pre class="lang-hs prettyprint-override"><code>import Database.HDBC import Database.HDBC.ODBC main :: IO () main = do let connectionString = "Driver={Microsoft ODBC for Oracle};Server=127.0.0.1;Uid=valera;Pwd=2562525;" let ioconn = connectODBC connectionString conn &lt;- ioconn vals &lt;- quickQuery conn "SELECT * FROM PERSONS_TEST" [] print vals return () </code></pre> <p>Pretty simple, huh? But that won't work. With this connection string the error is</p> <pre class="lang-hs prettyprint-override"><code>*** Exception: SqlError {seState = "[\"HY090\"]", seNativeError = -1, seErrorMsg = "sqlGetInfo SQL_TXN_CAPABLE: [\"0: [Microsoft][ODBC driver for Oracle]\\65533... </code></pre> <p>and then 65333 repeats many times. And with this</p> <pre class="lang-hs prettyprint-override"><code>Provider=msdaora;Data Source=127.0.0.1;User Id=valera;Password=2562525; </code></pre> <p>the error is </p> <pre class="lang-hs prettyprint-override"><code>*** Exception: SqlError {seState = "[\"IM002\"]", seNativeError = -1, seErrorMsg = "connectODBC/sqlDriverConnect: [\"0: [Microsoft][\\65533... </code></pre> <p>and 65333 repeats again till the end I suppose, that the problem is in connection string, but I had tried a whole bunch of them (I've used <a href="http://www.connectionstrings.com/" rel="nofollow">http://www.connectionstrings.com/</a>)</p> <p>I'm using Haskell Platform 2011.4.0.0, GHC 7.0.4, Oracle Database XE 11.2 on Windows 7 64-bit. Microsoft MDAC SDK installed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload