How to access database of JasperReports Server via API? - api

Can we access Database of JasperReports Server server through its API?
And do that allow us to make run time report?
If so how can we do that?

You can access JasperServer's resources using it's SOAP API... java-client can be found in jasperserver-common-ws-[VERSION].jar...
examples of usage are in doc folder of jasperserver as well... Document you need is "Jasper Server Web Services Guide"
Regards..

Here's a link to a page which has a full example of how to write a c program to call an existing Jasper report from a remote client.
http://community.ingres.com/wiki/Jaspersoft_WebServices_C_API

Have a look at the following wiki.
It shows you how to set up a Microsoft Sql Server as a JDBC DataSource on a Jasper Server.

Related

simple-jdin/jdbc.properties is ignored in pentaho-server 8.2

If we need to perform queries in pentaho data integration (IDE), we need to add manually the datasource in simple-jdin/jdbc.properties
MyDatabase/type=javax.sql.DataSource
MyDatabase/driver=org.hsqldb.jdbcDriver
MyDatabase/url=jdbc:hsqldb:hsql://localhost/sampledata
MyDatabase/user=pentaho_admin
MyDatabase/password=password
This works as expected in the ide known as pentaho data integration, spoon or kettle.
But, the same in pentaho server 8.2 does not works.
Steps to reproduce the error
deploy or upload the transformation(.ktr) in the pentaho-server 8.2
add manually the datasource in the server /../pentaho-server/pentaho-solutions/system/simple-jndi/jdbc.properties
executed the transformation using pentaho server web console : run in background or schedule options
error: datasource not found
Alternative
Create the datasource manually using web console of pentaho server instead of manually modification of file : /../pentaho-server/pentaho-solutions/system/simple-jndi/jdbc.properties
Question
simple-jndi/jdbc.properties works in server or is just for development purposes (pdi)?
are the settings available in jdbc.properties file on server can you verify the same by referring to the pentaho data integrator > simple-jndi folder.
also are you able to connect to the database from the server may be using a database client to confirm.
NOTE:whenever you work with databases make sure you relevant library files to connect to the respective database.
From my personal experience, I was not able to make the server pick JNDI connection definitions from the simple-jndi/jdbc.properties file when the Pentaho Server was running with Tomcat.
I was only able to use JNDI on the Pentaho Server by defining JNDI Datasources in the Tomcat configuration files.

Connecting to SQL server in ASP

I'm sure this has been answered before, but every example I try I can't seem to connect to my SQL Server.
I'm using SQL Server 2014, and the webpage is being hosted in IIS on Windows 7 x64.
I'm trying to get my webpages to build themselves recursively from information in a database, I've configured IIS to run ASP pages (I believe its classic ASP as opposed to ASP.net, but I may be wrong)
I started by looking at examples that basically returned all entries in in a particular column in a table, however when i got error messages on trying to load the page:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
I tried stripping it down to bare minimum, i.e. just opening the connection to the database.
And even then I get the same error, here are a few of the examples I tried:
Example-1
Example-2
Example-3
Firstly if anyone could tell me how to debug it further, i.e. getting proper error messages that actually tell me something useful, that would be a good start.
If there's any information I missed then please ask.
If you've given your files the extension .asp then it is Classic ASP
Do you know what version of SQL Server you're using? If it's express then you need to say so in your connection string eg Data Source=yourserveraddress\SQLEXPRESS
I recommend using the OLEDB method in Example 3 rather than the ODBC method in 1 and 2 but they should all work. This is a good resource for Connection Strings
http://www.connectionstrings.com/sql-server/
If you follow the steps on this page you will be able to see more useful error messages
http://www.chestysoft.com/asp-error-messages.asp

How to Enable FILESTREAM feature in sql server 2008 developer edition

I have a problem in activating the filestream feature in sql server 2008
I have done the following steps but could not succeeded..
1) ran the sql server management studio as an administrator, right click the server instance and Facets, dialog is opened from dropdown select sever configuration and from list select FileStreamAccessLevel and set to FullAcess and then restart the instance. Then I run the query and i again get the error FILESTREAM feature is disabled. Then I again perform the previous steps to saw whether Filestream is enabled or not, I saw that it is still disabled.
Image Link:
http://sdrv.ms/LkHZsn
2) I also open the MSSQLSERVER properties, and I found that the FileStream Tab is not present, I don't know why ? I have installed all the featuers of sql server 2008 developer edition including full text search, analysis services, integration serv etc.
Image Link
http://sdrv.ms/R5Ojm3
3) I also ran the spconfigure command but still not suceeded. I open the server instance properties, select Advanced from the left pane, and on File Stream Access level I select Full acess enabled, below a radio button is present with name configured values, currently it is select, but when I select running values, it displays FileStream is disabled.
images Link:
http://sdrv.ms/MUpEiK
http://sdrv.ms/LWx8ow
4) I also open sql sever config manager, select sql services but nothing appears, see the below image.
http://sdrv.ms/R5PxOa
Please help me in solving this problem
Thanks
Install the latest service pack, this should fix the configuration manager issue, which will allow you to properly configure filestream.
According to the documentation, you need to enable it from SQL Server Configuration Manager.
EDIT: You didn't mention that you had already followed the documentation, nor that you can't see any services in the SSCM. According to various Google hits such as this MS forum discussion, limited permissions on the NETWORK SERVICE account could cause this problem.

Web Database Application Generator

Do you know some web application that generates code for a backend to manage a database like Caspio?
I use phprunner. If you need an open source / free software use: dadabik (simple and easy), or xataface. Both use php and support mysql database.

SQL Server 2005 Reporting Services and the Report Viewer

I am having an issue embedding my report into an aspx page.
Here's my setup:
1 Server running SQL Server 2005 and SQL Server 2005 Reporting Services
1 Workstation running XP and VS 2005
The server is not on a domain.
Reporting Services is a default installation.
I have one report called TestMe in a folder called TestReports using a shared datasource.
If I view the report in Report Manager, it renders fine. If I view the report using the http ://myserver/reportserver url it renders fine. If I view the report using the http ://myserver/reportserver?/TestReports/TestMe it renders fine. If I try to view the report using http ://myserver/reportserver/TestReports/TestMe, it just goes to the folder navigation page of the home directory.
My web application is impersonating somebody specific to get around the server not being on a domain. When I call the report from the report viewer using http ://myserver/reportserver as the server and /TestReports/TestMe as the path I get this error:
For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.
When I change the server to http ://myserver/reportserver? I get this error when I run the report:
Client found response content type of '', but expected 'text/xml'. The request failed with an empty response.
I have been searching for a while and haven't found anything that fixes my issue. Please let me know if there is more information needed.
Thanks in advance,
Kendra
There are two virtual directories of interest with SSRS.
http://myserver/reportserver is where the web services are.
http://myserver/reports is where the Report Manager interface is.
http ://myserver/reportserver?/TestReports/TestMe works because you're going to the web services and passing in a parameter of the 'address' of the report you want. Notice the ? in there, indicating that the rest is a querystring parameter
http ://myserver/reportserver/TestReports/TestMe is trying to go a subdirectory of the virtual directory, which doesn't really exist.
To get your system working using anonymous access, you'll need to tell IIS to be running your website's application pool as a known user, which has sufficient permission to view the report. You can set this up in Report Manager (http://myserver/reports).
See how you go - good luck.