<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>CUBRID Q&amp;A</title>
        <link>http://www.cubrid.org/?mid=questions</link>
        <description>CUBRID Q&amp;A</description>
        <language>en</language>
        <pubDate>Fri, 21 Oct 2011 02:37:10 -0800</pubDate>
        <lastBuildDate>Mon, 20 May 2013 01:15:17 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>How to instal CUBRID server with .net aplications in windows 7</title>
            <dc:creator></dc:creator>
            <link>http://www.cubrid.org/questions/432328</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/432328</guid>
                                    <description><![CDATA[<p>


How to use CUBRID server as a database for .NET applications on Windows server? What are all the components I need to download. What's the order of installation? Are there any tutorial to work with CUBRID? How to write procedures as in SQL? How to connect to CUBRID server from a .net application?</p>]]></description>
                        <pubDate>Wed, 19 Sep 2012 21:50:03 -0800</pubDate>
                        <category>driver</category>
                        <category>Windows</category>
                        <category>.NET</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to pass a custom Object to a Stored Procedure function?</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/365755</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/365755</guid>
                                    <description><![CDATA[<p>


hi I have the following function.</p><p></p><div editor_component="code_highlighter" code_type="Sql" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">CREATE FUNCTION "tblpacientesinsertar"("paciente" OBJECT) RETURN STRING<br />AS LANGUAGE JAVA <br />NAME 'TblPacientes.Insertar(cubrid.sql.CUBRIDOID) return java.lang.String'</div><p></p><p>I want to pass a custom object class, but I dont know if CUBRIDOID is the right type.</p><p>My custom type is <strong><span style="font-family: monospace; ">public class BoPacientes</span></strong>.</p><p>My stored procedure is <b><span style="font-family: monospace; ">public static String Insertar(BoPacientes paciente)</span></b>.</p><p>C# code looks like:</p><p></p><div editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;"><p>public BoPacientes Insertar(BoPacientes objeto)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.....//code code </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CUBRIDCommand com = new CUBRIDCommand();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; com.Connection = con;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; com.CommandText = "select tblpacientesinsertar(" + objeto + ")";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open();</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .......//some code logical</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;</p></div><p>The error I receive is:</p><p></p><div editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url('./modules/editor/components/code_highlighter/code.png') no-repeat top right;">Semantic: Dev9.DataAccess.Pacientes.BoPacientes is not defined.<br />select tblpacientesinsertar(Dev9.DataAccess.Pacientes.BoPacientes)&nbsp;</div><p>I have a java object called BoPacientes.Class registered in CUBRID.</p><div id="endic_ext_wrapper" style="display: none; "></div>]]></description>
                        <pubDate>Sat, 26 May 2012 11:09:41 -0800</pubDate>
                        <category>Java</category>
                        <category>ADO.NET</category>
                        <category>Stored Procedure</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>ADO.NET return error &quot;Don&apos;t know how to write the parameter!&quot;</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/363386</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/363386</guid>
                                    <description><![CDATA[<p>


Hi, I am trying to insert a image into the database, my database is type BLOB and in C# is type byte[].</p><p>When I try to do the insert the error is:<font size="1">&nbsp;</font><b>Don't know how to write the parameter!</b></p><p><font size="1"><span style="font-size: 13px;">Whats is wrong? how can I get a more technical&nbsp;description&nbsp;error from database.</span></font></p><p><font size="1"><span style="font-size: 13px;">Why has error with BLOB type?</span></font></p><p></p><div id="endic_ext_wrapper" style="display: none; "></div>]]></description>
                        <pubDate>Tue, 22 May 2012 16:50:13 -0800</pubDate>
                        <category>SQL</category>
                        <category>ADO.NET</category>
                        <category>BLOB</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to call Java Stored Procedure from C#? (Solved)</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/357198</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/357198</guid>
                                    <description><![CDATA[<p>Hi, I am trying to get some value from the database using ado.net.</p><p>I am using the java stored procedures but in the manager this works, in my C# code not.</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">
public class SpCubrid{<br />
&nbsp; public static String HelloCubrid() {<br />
&nbsp;&nbsp;&nbsp; return "Hello, Cubrid !!";<br />&nbsp; }<br />&nbsp; public static int SpInt(int i) {<br />&nbsp;&nbsp;&nbsp; return i + 1;<br />&nbsp; }<br />&nbsp; public static void outTest(String[] o) {<br />&nbsp;&nbsp;&nbsp; o[0] = "Hello, CUBRID";<br />&nbsp; }<br />}</div>
<br />
<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">
CREATE FUNCTION "hello"() RETURN STRING<br />AS LANGUAGE JAVA <br />NAME 'SpCubrid.HelloCubrid() return java.lang.String'</div>

<p>result on server:</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">
Hello, Cubrid !!</div>

<p>my C# code</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" editor_component="code_highlighter" code_type="CSharp" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="true">using System;<br />using System.Data;<br />using System.Windows.Forms;<br />using CUBRID.Data.CUBRIDClient;<br />using System.Data.Common;<br /><br />

namespace WindowsFormsApplication1<br />{<br />&nbsp;&nbsp;&nbsp; public partial class Form1 : Form<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public Form1()<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InitializeComponent();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void Form1_Load(object sender, EventArgs e)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string ConnectionString = "server=localhost;database=demodb;port=30000;user=dba;password=123456";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DataTable dt = new DataTable();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CUBRIDConnection con = new CUBRIDConnection(ConnectionString);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CUBRIDCommand com = new CUBRIDCommand("hello", con);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; com.CommandType = CommandType.StoredProcedure;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Open();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DbDataReader reader = com.ExecuteReader();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CustomAdapter da = new CustomAdapter();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; da.FillFromReader(dt, reader); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; con.Close();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string text = dt.Rows[0].ToString();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //dataGridView1.DataSource = dt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //MessageBox.Show(reader.ToString());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp; public class CustomAdapter : System.Data.Common.DbDataAdapter<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public int FillFromReader(DataTable dataTable, IDataReader dataReader)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return this.Fill(dataTable, dataReader);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override System.Data.Common.RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow a, IDbCommand b, StatementType c, System.Data.Common.DataTableMapping d)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (System.Data.Common.RowUpdatedEventArgs)new EventArgs();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override System.Data.Common.RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow a, IDbCommand b, StatementType c, System.Data.Common.DataTableMapping d)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (System.Data.Common.RowUpdatingEventArgs)new EventArgs();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override void OnRowUpdated(System.Data.Common.RowUpdatedEventArgs value)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; protected override void OnRowUpdating(System.Data.Common.RowUpdatingEventArgs value)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; } <br />}</div>]]></description>
                        <pubDate>Thu, 10 May 2012 16:04:37 -0800</pubDate>
                        <category>Java</category>
                        <category>Stored Procedure</category>
                        <category>ADO.NET</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Semantic: Cannot coerce host var to type date.</title>
            <dc:creator>castle79</dc:creator>
            <link>http://www.cubrid.org/questions/358410</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/358410</guid>
                                    <description><![CDATA[<p>
I am very unhappy, this database has many bugs with ADO.NET.</p><p>I am trying to insert to datetime to database.</p>

<div style="background: url(&quot;./modules/editor/components/code_highlighter/code.png&quot;) no-repeat right top rgb(250, 250, 250); border-width: 1px 1px 1px 5px; border-style: dotted dotted dotted solid; border-color: rgb(102, 102, 102) rgb(102, 102, 102) rgb(102, 102, 102) rgb(34, 170, 238); padding: 5px;" nocontrols="false" nogutter="false" collapse="false" first_line="1" description="" file_path="" code_type="CSharp" editor_component="code_highlighter">#region FechaNacimiento<br />CUBRIDParameter tblpacientesfechanacimiento = new CUBRIDParameter();<br />tblpacientesfechanacimiento.CUBRIDDataType = CUBRIDDataType.CCI_U_TYPE_DATE;<br />tblpacientesfechanacimiento.Direction = System.Data.ParameterDirection.Input;<br />tblpacientesfechanacimiento.ParameterName = "?p11";<br />tblpacientesfechanacimiento.Value = objeto.tblPacientesFechaNacimiento;<br />#endregion<br />com.Parameters.Add(tblpacientesfechanacimiento);</div>

<p>tblPacientesFechaNacimiento is type "DateTime"</p><p>When can give me a feedback, I have 3 days fighting with this database, is very annoying!! has many problems!!! I am thinking in rollback to postgresql.</p><div id="endic_ext_wrapper" style="display: none; "></div>]]></description>
                        <pubDate>Sun, 13 May 2012 11:56:51 -0800</pubDate>
                        <category>SQL</category>
                        <category>ADO.NET</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to add alternative hosts to a connection string in ADO.NET?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/299585</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/299585</guid>
                                    <description><![CDATA[<p>In CUBRID it is possible to indicate alternative hosts (brokers) in the connection string as a measurement for broker fail-over. <a href="/manual/841/en/Connection%20Configuration" target="_self">JDBC manual</a> provides an example for this.</p><p>However, I could not find a way to pass alternative hosts to <a href="/wiki_apis/entry/connection-string" target="_self">ADO.NET connection string</a>. How can I do this?</p>]]></description>
                        <pubDate>Mon, 20 Feb 2012 20:14:57 -0800</pubDate>
                        <category>ADO.NET</category>
                        <category>connection string</category>
                        <category>broker</category>
                        <category>alternative host</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How can I translate ADO.NET Driver&apos;s localization messages?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/263229</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/263229</guid>
                                    <description><![CDATA[<p>I can see that the new CUBRID ADO.NET driver provides built-in support for localization. I would wish to translate the messages to Russian. Which files should I translate?</p><p>


</p>]]></description>
                        <pubDate>Sun, 15 Jan 2012 18:06:57 -0800</pubDate>
                        <category>driver</category>
                        <category>ADO.NET</category>
                        <category>localization</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>Nhibernate support for CUBRID</title>
            <dc:creator>swanotets</dc:creator>
            <link>http://www.cubrid.org/questions/234430</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/234430</guid>
                                    <description><![CDATA[<p>Hi guys,</p>
<p>&nbsp;</p>
<p>I've been wondering if it is&nbsp;possible to use&nbsp;Nhibernate with CUBRID. Is there any documentation about it?</p>
<p>&nbsp;</p>
<p>Best regards,</p>
<p>Ivan</p>]]></description>
                        <pubDate>Thu, 03 Nov 2011 02:15:54 -0800</pubDate>
                        <category>Tools</category>
                        <category>.NET</category>
                        <category>driver</category>
                        <category>Nhibernate</category>
                                    <slash:comments>3</slash:comments>
                    </item>
        										        <item>
            <title>CUBRID .Net driver</title>
            <dc:creator>bashawy</dc:creator>
            <link>http://www.cubrid.org/questions/241869</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/241869</guid>
                                    <description><![CDATA[<p>Dear Experts,</p><p>Is there any possibility of connecting .Net clients to CUBRID server? My server is a Windows based one.<br /></p><p>Thanks.</p>]]></description>
                        <pubDate>Fri, 25 Nov 2011 10:31:12 -0800</pubDate>
                        <category>.NET</category>
                        <category>driver</category>
                                    <slash:comments>1</slash:comments>
                    </item>
            </channel>
</rss>
