Hello Kubo さん、<br><br>I downloaded the DBFlute-0.9.7.1-07-SNAPSHOT and i tried,its not connected to the database itself.<br><br>while running jdbc.bat file the connection failed.<br><br>If i use DBFlute-0.9.7.1-06-SNAPSHOT it is connecting.I am using same connection String<br>
<br><b>jdbc:sqlserver://localhost;DatabaseName=MYTEST</b><br><br>and i am using <b>sqljdbc4.jar.</b><br><br>I have attached the log file for both versions.<br><br>What i am doing wrong here?<br><br>Thanks,<br>Tomas.<br><br>
<div class="gmail_quote">2010/6/11 kubo <span dir="ltr">&lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Good morning, thomas<br>
<br>
I&#39;ve got it! Thank you.<br>
I remembered SQLServer&#39;s function<br>
and it can return a table type.<br>
<br>
I could get the same exception in my environment.<br>
I&#39;m surprised:<br>
<br>
The method, getString(&quot;DATA_TYPE&quot;)<br>
of DatabaseMetaData.getProcedureColumns(),<br>
throws NumberFormatException from JDBC driver<br>
(getInt(&quot;DATA_TYPE&quot;) throws NullPointerException)<br>
if it&#39;s SQLServer&#39;s function that returns a table type.<br>
<br>
Please use DBFlute-0.9.7.1-07-SNAPSHOT<br>
which is fixed about it.<br>
(if the Exception occurred, DBFlute ignores it)<br>
And also DBFlute.NET-0.8.9.17-07-SNAPSHOT<br>
is fixed about it.<br>
<br>
By the way, I remembered how to call procedures through outside-SQL.<br>
If a procedure has no OUT parameter, you can call like this:<br>
<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-sqlserver-example/src/main/resources/com/example/dbflute/sqlserver/dbflute/exbhv/various/vendorcheck/VendorCheckBhv_callProcReturnResultSetMore.sql" target="_blank">https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-sqlserver-example/src/main/resources/com/example/dbflute/sqlserver/dbflute/exbhv/various/vendorcheck/VendorCheckBhv_callProcReturnResultSetMore.sql</a><br>

/= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>
-- #df:entity#<br>
<br>
-- !df:pmb!<br>
-- !!String memberStatusCode:cls(MemberStatus)!!<br>
<br>
SP_RETURN_RESULT_SET_MORE @statusCode=/*$pmb.memberStatusCode*/&#39;WDL&#39;<br>
= = = = = = = = = =/<br>
<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-sqlserver-example/src/main/resources/com/example/dbflute/sqlserver/dbflute/exbhv/various/vendorcheck/VendorCheckBhv_selectSimpleTableFunction.sql" target="_blank">https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-sqlserver-example/src/main/resources/com/example/dbflute/sqlserver/dbflute/exbhv/various/vendorcheck/VendorCheckBhv_selectSimpleTableFunction.sql</a><br>

/= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>
-- #df:entity#<br>
<br>
-- !df:pmb!<br>
-- !!String memberStatusCode:cls(MemberStatus)!!<br>
<br>
select * from FN_RETURN_TABLE(/*pmb.memberStatusCode*/&#39;FML&#39;)<br>
= = = = = = = = = =/<br>
<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-sqlserver-example/src/test/java/com/example/dbflute/sqlserver/dbflute/topic/ProcedureTest.java" target="_blank">https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-sqlserver-example/src/test/java/com/example/dbflute/sqlserver/dbflute/topic/ProcedureTest.java</a><br>

/= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>
String path = VendorCheckBhv.PATH_various_vendorcheck_callProcReturnResultSetMore;<br>
ProcReturnResultSetMorePmb pmb = new ProcReturnResultSetMorePmb();<br>
pmb.setMemberStatusCode_Formalized();<br>
Class&lt;ProcReturnResultSetMore&gt; entityType = ProcReturnResultSetMore.class;<br>
<br>
ListResultBean&lt;ProcReturnResultSetMore&gt; memberList<br>
    = vendorCheckBhv.outsideSql().selectList(path, pmb, entityType);<br>
<br>
// If you don&#39;t use OUT parameter, you can call procedures like this.<br>
// But you cannot get second result set. (first result set only)<br>
= = = = = = = = = =/<br>
/= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>
String path = VendorCheckBhv.PATH_various_vendorcheck_callProcReturnResultSetMore;<br>
SimpleTableFunctionPmb pmb = new SimpleTableFunctionPmb();<br>
pmb.setMemberStatusCode_Formalized();<br>
Class&lt;SimpleTableFunction&gt; entityType = SimpleTableFunction.class;<br>
<br>
// ## Act ##<br>
ListResultBean&lt;SimpleTableFunction&gt; memberList =<br>
vendorCheckBhv.outsideSql().selectList(path, pmb, entityType);<br>
= = = = = = = = = =/<br>
<br>
However I didn&#39;t confirm it in DBFlute.NET environment.<br>
(It works in DBFlute(Java) environment)<br>
<br>
<br>
Thanks,<br>
<font color="#888888">Kubo (jflute)<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
seasar-dotnet mailing list<br>
<a href="mailto:seasar-dotnet@ml.seasar.org">seasar-dotnet@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-dotnet" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-dotnet</a><br>
</div></div></blockquote></div><br>