我们正在尝试在PHP Web基础应用程序上运行iReport。我们使用带有php5的Ubuntu Server并使用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.
答案 0 :(得分:0)
经过几天的苦难,现在我已经解决了这个问题。
当我添加sqljdbc驱动程序时,我不知道我是否做错了。
我将驱动程序更改为jtds jdbc驱动程序,它就像魅力一样。
Tq