Stored procedure is not available in the New Data Set dialog [message #656472] |
Fri, 25 February 2011 15:05  |
Eclipse User |
|
|
|
Hello,
I am new to using BIRT... I apologize if my question is too simple.
I am following the ClassicModels tutorial that came with the BIRT download. I am using the birt-report-framework-2_5_2 version and MySql 5.5.9 for Windows.
I finished the tutorial but I now want to call a stored procedure within a newly created Data Set.
Below is the code to my stored procedure in my .sql file:
create procedure ClassicModels.getAllCustInfo()
BEGIN
select state, city, customerName, phone
from customers
order by state, city, customerName;
END
Within the MySql command line prompt, I created this stored procedure and called it without any problems as such:
call getAllCustInfo();
When I go back to the the BIRT New Data Set dialog, this stored procedure is not listed under the 'stored procedure' item in the tree for my database schema that it belongs to. Thus, I cannot call this stored procedure.
Am I missing a step?
Thanks so much in advance,
--Anna
|
|
|
Re: Stored procedure is not available in the New Data Set dialog [message #656475 is a reply to message #656472] |
Fri, 25 February 2011 15:12   |
Eclipse User |
|
|
|
Anna,
In the new dataset editor are you choosing SQL Stored Procedure Query as
the data set type?
After setting the type you should be able to enter:
{call getAllCustInfo()}
as the query.
Jason
On 2/25/2011 3:05 PM, anna.w.teittinen@gmail.com wrote:
> Hello,
>
> I am new to using BIRT... I apologize if my question is too simple.
>
> I am following the ClassicModels tutorial that came with the BIRT
> download. I am using the birt-report-framework-2_5_2 version and MySql
> 5.5.9 for Windows.
>
> I finished the tutorial but I now want to call a stored procedure within
> a newly created Data Set.
>
> Below is the code to my stored procedure in my .sql file:
>
> create procedure ClassicModels.getAllCustInfo()
> BEGIN
> select state, city, customerName, phone from customers
> order by state, city, customerName;
> END
>
> Within the MySql command line prompt, I created this stored procedure
> and called it without any problems as such:
> call getAllCustInfo();
>
> When I go back to the the BIRT New Data Set dialog, this stored
> procedure is not listed under the 'stored procedure' item in the tree
> for my database schema that it belongs to. Thus, I cannot call this
> stored procedure.
>
> Am I missing a step?
>
> Thanks so much in advance,
> --Anna
|
|
|
|
|
|
|
|
|
|
|
Re: Stored procedure is not available in the New Data Set dialog [message #656865 is a reply to message #656844] |
Mon, 28 February 2011 14:23  |
Eclipse User |
|
|
|
Anna,
I am not sure what is going on here. I use MySql 5.1 and the driver:
mysql-connector-java-5.0.4-bin.jar and it works fine.
Jason
On 2/28/2011 1:46 PM, Anna T. wrote:
> Hello Jason,
>
> The JDBC driver for MySQL I am using is:
>
> mysql-connector-java-5.1.15-bin
>
> I am using MySQL Server 5.5.
>
> Do you think I need to run my 'create procedure' command on a tool that
> comes with MySQL Server 5.5 rather than on the MySql command line?
>
> Thanks so much again for your help and insights.
> --Anna
|
|
|
Powered by
FUDForum. Page generated in 0.15925 seconds