【问题标题】:JasperStarter and SQL Server error Could not find prepared statement with handleJasperStarter 和 SQL Server 错误找不到带有句柄的准备好的语句
【发布时间】:2015-04-07 06:31:08
【问题描述】:

我们正在尝试在我们的 PHP Web 基础应用程序上运行 iReport。我们使用 Ubuntu Server 和 php5 并使用 laravel 框架和

我们正在运行 SQL Server 2012 数据库。

输入后

jasperstarter myReport.jasper 
-f pdf 
-P parameter1=test 
-t generic 
-H <my databse server ip> 
-u <username>
-p <password>
-n <dbname>
--db-driver com.microsoft.sqlserver.jdbc.SQLServerDriver  
--db-url jdbc:sqlserver://<my databse server ip>:1433

我们得到一个空的pdf和

我们在运行 sql Profiler 时收到此错误:

sql:

declare @p1 int
set @p1=1
exec sp_prepexec @p1 output,NULL,N'select top 10 * from mytable'
select @p1
exec sp_unprepare 1

错误:

Msg 8179, Level 16, State 6, Procedure sp_prepexec, Line 1
Could not find prepared statement with handle 1.

【问题讨论】:

标签: php sql-server ubuntu jasper-reports jasperstarter


【解决方案1】:

经过几天的痛苦,现在我已经解决了这个问题。

不知道是不是我在添加sqljdbc驱动的时候做错了。

我将驱动程序更改为 jtds jdbc 驱动程序,它就像魅力一样工作。

Tq

【讨论】:

    猜你喜欢
    • 2012-04-07
    • 2017-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-18
    相关资源
    最近更新 更多