Test SSRS DataSource Connection Programtically

Hi, Dear
I have created a SSRS Datasource programatically.
I also would like to Test this SSRS Datasource Connection programatically.
But it seems no API to do that.
Is there a way to do it programatically?
Regards
Ming

Hi Jiulidaji,
According to your description, you want to test the SSRS Data Source Connection programmatically. Right?
In program design, generally we create a separated class/function for database connection. If we want to test the connection, we just need to test this class/function only. For testing the connection, we can directly output/print the
connection object, if it can return a hash code string which means we connect the data source successfully. If the connection is failure, it will return null value when printing the connection object.
If you still have any question, please feel free to ask.
Best Regards,
Simon Hou

Similar Messages

  • SSRS 2005 change datasource / Connection String

    Hi All
    I need to change the some shared data source on ssrs 2005 for the migration of some dbs.
    Can I do it on tsql, I need to update the datasource / Connection String only for the reports that uses it.
    How to change it on table : [ReportServer].[dbo].[DataSource] table. ?
    Thanks a lot in advance.

    It is not recommended to update records directly in Catalog table.
    You can try
    programmatic way to update that.
    SSRS is webservice so you have to use something like below.
    https://<<Report Server Name>>/ReportServer/ReportService2005.asmx
    Make sure you do BACKUP database before doing any changes.
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • Loosing datasource connection in a server thread

    Hi,
    In a backing bean I start a long term thread that uses the datasource connection taken from application module.
    Everything works fine but after a period of time between one and two hours the connection is lost and server throws a
    <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "AEE2010DS" failed with exception: "java.sql.SQLException: Connection Closed".>
    Is there any way to stop the server from closing the connection that is used in a separate thread, programmatically or using configuration?
    Any comment will be helpful,
    Thanks

    That looks like something external is killing the connection, either the DBMS or a firewall.

  • SSRS report connecting SSAS 2014 cube not returning measure value

    Hi all
    Recently we migrated SSAS from 2008r2 to 2014 in Dev environment. when we are testing  SSRS reports which are connecting to that cube is having issue. the measure value is returning as [Measures].[LSM Count] instead of numeric value.
    when we connect to old cube in prod environment the report is working as expected and even the mdx query is working fine in  Management studio of new cube.  what would be the issue.
    WITH -- Daily Graphic
    MEMBER SelectedIndicator1 AS '[Measures].[LSM Count]'
    MEMBER SelectedIndicator2 AS '[Measures].[LSM Count]'
    MEMBER SelectedIndicator3 AS '[Measures].[LSM Count]'
    MEMBER SelectedIndicator4 AS '[Measures].[LSM Count]'
    SELECT NON EMPTY {SelectedIndicator1, SelectedIndicator2, SelectedIndicator3, SelectedIndicator4} ON COLUMNS,
    ([Date].[Date].[Date].ALLMEMBERS *EXCEPT([Time].[Time Hierarchy].[Twelfth Of Hour].ALLMEMBERS,[Time].[Time Hierarchy].[Twelfth Of Hour].&[00:00])*[Source 2013].[METRIC GROUP].[METRIC GROUP]*
    [Source 2013].[LocalDn].members)
    } ON ROWS
    FROM ( SELECT ( STRTOSET('[Date].[Date].[Date].&[2015-01-26T00:00:00]:[Date].[Date].[Date].&[2015-01-27T00:00:00]') ) ON COLUMNS
    FROM ( SELECT ( STRTOSET('{[Source 2013].[LOCALDN].&[PGMS1]&[LSM],[Source 2013].[LOCALDN].&[PMES1]&[LSM]}') ) ON COLUMNS
    FROM [IMS]))
    Surendra Thota

    Hi Surendra_Thota,
    According to your description, there are SSRS reports with SSAS data source, after you migrated SSAS from 2008 R2 to 2014, the measure value returned string instead of numeric value.
    I tried to reproduce the issue in my local machine of SQL Server 2014, but it works fine for me. As a workaround, please modify the query like below:
    SELECT
    NON EMPTY
    [Measures].[Internet Order Quantity],
    [Measures].[Internet Sales Amount]
    } ON COLUMNS,
    NON EMPTY
    [Customer].[Education].[Education].ALLMEMBERS *
    [Customer].[Home Owner].[Home Owner].ALLMEMBERS
    ) } ON ROWS
    FROM [Adventure Works]
    If the problem remain unresolved, i would appreciate it if you could sample data and screenshot of the report, it will help us move more quickly toward a solution.
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • How can i test my vpn connection?

    so recently i decided to test if ver 1.3.0.3 of the quickvpn client would work better with the 1.3.0.5 rvs4000 firmware. i loaded quickvpn to an xp pro computer (freshly built, i might add) and got to work. in order to test the connection, i attempted to piggy back off an unsecured wireless network. this network is on the same ISP network as i am.
    i use dynamic DNS, and the unsecured wireless network could resolve my IP correctly, but for some reason i couldnt connect to my home network from the unsecured network. my router is set to respond to lan requests, but i couldnt ping it. my router passes HTTP traffic to a computer in my network, but i couldnt bring up the webpage. finally, my router responds with the router config page over port 443, and i couldnt bring that up.
    so i used my ISP's dialup service to test. initially, as always, i had a million problems with the vpn client. systematically, i tried to resolve the issues. i installed the patch in the readme for quickvpn. i checked log files to see where stuff was failing. eventually, i could connect to the VPN, but would get that "remote gateway is not responding" crap. i know of a (poor) workaround for this which allows you to "finalize" the connection, but that workaround doesnt allow you to ping around in your network. sometime later, after randomly messing with settings, the tunnel would connect without the workaround. i have no idea what "fixed" this.
    despite all this, my 28.8Kbps connection wouldnt allow me to do anything meaningful on my network. i couldnt connect to the router or to a server of mine (http or fileshare). the only thing i could do was ping internal devices. other requests seemed to "hang" rather than timeout or do anything more concrete. basically, i gave up on testing using dialup, even though my router and the client software confirm a good connection. but i still wasnt convinced.
    next, i figured i could create some type of "DMZ" on my network by placing a switch between my ISP's modem and my router. im not a cisco network professional by any means, but im pretty familiar with networking on a above-average level. that said, despite my best, i couldnt get my quickvpn computer to see my router from the "DMZ".
    finally, i figured i could just test the tunnel while directly connected to my network's lan. bad idea. everything seems to go okay until it locks up on "activating policy". rebooting or otherwise ending the negotiation ends in the computer being unable to do anything anymore. when i try to ping anything, i get "negotiating ip security" ad infinitum. the only way i could fix this was by doing a system restore.
    so here's the question: how can i test my quickvpn connection?why can't i just tunnel through my network? and before you scream that you can't, thegreenbow vpn client has NO PROBLEM connecting to my rvs4000 while connected to my own network.

    Hi Aaron,
    I am going exactly the same thing as you however, I had my cousin buy and install a RVS4000 at his house in Australia.
    I access it from the USA so that I can help manage his Local Area Network, he is just not technical..
    I setup a DDNS client on his RVS4000 so that I can always get to his Router via a domain name rather than a IP address.
    I noticed that you didn't mention anything regarding importing client certificate into the directory of the VPN client on your PC.
    I also noticed I disabled IPSec passthrough on the router in Australia, see the pictures below, not sure why, but the VPN client is working.
    I also did not setup any gateway to gateway VPN tunnels, Only added a client , exported certificate as per the manual, See the last screen capture below.
    You will also note if you view the screen captures that my cousins RVS4000 has not been upgraded to the new code.Is there a reason for that...not really...he's just a user, not really technical.  Also note I have not added any VPN tunnels on my RVS4000.
    I have a reasonably reliable connection between the USA and Australia. I didn;t have to play with any other options, just add users to the VPN client database.
    Your description of the working environment of your PC is missing details on the version of XP, so i will mention the following taken from the software release notes of the RVS4000 ;
    There is a known issue with Windows XP SP2 Firewall.
    ICMP packets are always dropped by the firewall when the firewall is enabled.
    This issue causes the QuickVPN client to be unable to establish a tunnel with the remote QuickVPN server successfully.
    Microsoft has released a patch to fix this issue, which you can get from:
    http://support.microsoft.com/kb/889527/en-us
    After you install the patch, the issue should be resolved. You can also fix this issue by upgrading Windows XP to SP3.
    You cannot plug a PC on the same network as the router for testing, they must be on dissimilar WAN  networks for testing purposes.
    Your remote  PC VPN client will not be allocated a IP address in the RVS4000's network, hosts behind the RVS4000 will still respond to pings, as they direct the responses to their default gateway, the RVS4000.
    The thegreenbow VPN client is a distracter at this point costing 50 something EURO  for a license, lets try to get the quickVPN client working !
    So, if you still wish try the following, firstly make sure your XP has been upgraded to  SP3;
    1.  If you upgraded your router to the new version of code, then reset your router to factory defaults to re-initialize your router, yes start again.
    2.  Export the VPN client certificate to the directory that contains the VPN client.  In my case it is;
               "C:\Program Files\Cisco Small Business\QuickVPN Client"
    3.  add a VPN client account to the router
    4.  Use port 60443 from the quickVPN client. and try  VPNing to the router.
    5  hmmm, if the client still fails try disabling IPSec Passthrough on the router for grins and giggles.
    If this fails, call the SBSC at the following location for resolution;
    http://www.cisco.com/en/US/support/tsd_cisco_small_business_support_center_contacts.html
    good luck ...regards Dave

  • Error !! Cannot fetch a datasource connection

    I am a beginner in Oracle BPEL process Manager,
    i am experiencing the following error :
    After starting the BPEL PM server, i got the following in the Dos Window:
    " Message Handle error:
    An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.process.SetDbDefaultMessage."the exception is tranaction was rolledback........"
    then i tried also to open the BPEL console and i logged in , but i got
    "Cannot fetch a datasource connectionThe process domain was unable to establish a connection with the datasource with the connection URL "jdbc/BPELServerDataSource". The exception reported is: Internal Error:Invalid Connect String
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid."
    What could be wrong !
    Please Help.
    Thanks in advance

    Hey Rana,
    in OC4J_BPEL container, that is located under $AS_HOME/j2ee go to the config directory and open data-sources.xml.
    it seems during installation you might have provided wrong information..
    could you pls paste it here, that we can figure out what's wrong..
    in what enviroment did this occur,
    thx clemens

  • How do I setup a php testing server that connects to my web host?

    My web host (webhostingpad.com) has php on it. I need to setup a testing server that connects to this so I can test my site locally.
    My questions are:
    1. Do I set this up as a local network connection or an sftp (same as my remote)?
    2. what information do I put in to make this work?

    1024MB is enough to have 2 instances but You have to know what are going to be the requirements levels of those instances in order to check if your memory is enough.
    The memory is a theme that relate Oracle SGA with RAM in the machine.
    To have a second database server you have to make another installation in a different Oracle Home.
    It is not the same to have 2 instances than 2 Oracle database servers.
    Do you know what is the difference ?
    Joel P�rez

  • Datasources connection questions

    hi all
    my question is about How the connections stored in a Jndi server datasource pool are managed.
    For example, I'm developing a J2EE application with Ejbs and Datasources, etc. I saw that when I want to retrieve a connection from datasource to work on it I need do something like this:
    For example to retrieve a datasource connection:
    Hashtable jndiProps = new Hashtable();
    jndiProps.put(Context.INITIAL_CONTEXT_FACTORY,...);
    jndiProps.put(Context.PROVIDER_URL, ...);
    Context context = new InitialContext(jndiProps);
    DataSource ds = (DataSource) context.lookup("jdbc/MyDatasource");
    Connection con = ds.getConnection();
    ...I know in this case that the server manages a datasource connection pool, etc
    My question is when a get a connection from the Datasource pool of my app server. do I need to release the connection with some special method when I finish with it (in order to return it to the pool) or it doesn't matter ?
    thanks in advance

    If I have three prepared statements right in a row with nothing in between should I close the connection after each one and then get it again?
    Seems like I would be just as well off to just get the conn once do the 3 things then close it.
    and in spots I might actually be doing something as i step through the first result set so can i use conn.preparedStatement() in the loop many times without getting the connection and closing each time through the loop?
    i of course close all PS and RS and use diff PS2 and RS2 in the loop so i 'm just talking about keeping the conn open while (RS.next()) and use it multiple times to conn.preparedStatement() inside the loop?
    or should i use 2 connections lol and open conn1 and then in loop use conn2 and close it each time around the loop and then close conn1 when i exit the loop?

  • Testing / Editing SLD connection in WebDynPro Content Manager

    In my WebDynPro Content Manager (http://<hostname>:<port>/webdynpro) I went to test the JCO Connection to the SLD defined under: "System Defined Content" | "JCo Destinations"
    When I test it I get:
    com.sap.mw.jco.JCO$Exception: (102)
    RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM 
    TYPE=B
    MSHOST=bwxsnd01
    GROUP=JCO_SLD_Logon_Grp
    R3NAME=SB1
    MSSERV=sapmsSB1
    PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       Group JCO_SLD_Logon_Grp not found
    When I try to "edit" the connection I don't see the group "JCO_SLD_Logon_Grp" in the pulldown.
    But, if I add the group "JCO_SLD_Logon_Grp" to the ABAP system using smlg, then it works!!!
    However, in the SLD (http://<hostname>:<port>/sld) when I look at the system it has group "SB1_JCO" defined there.
    My question then is: Is there another place that is overriding my SLD that has "JCO_SLD_Logon_Grp" defined there?
    Mike

    Hi Michael
    try the options mentioned in below thread
    "com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to m"
    Koti Reddy

  • HOw to test the jms connection?

    HI all,
    how to test the jms connection in xi?
    regards
    kish

    HI,
    We can see the JMS sender or reciver side .. in RWB .. see  communicaiton channel mononitoring,., also..
    We can access it through browser.. it depends upon the proocol type .. like sonic or webspeare MQ..or ...
    see below links
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/886a3c3a860657e10000000a114084/frameset.htm
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    content conversion https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/97171dd3-0401-0010-5195-b43f556e6ce9
    Chilla

  • There is an icon in the upper right hand corner about test your internet connection speed. is this malware

    ''locking - dupe of https://support.mozilla.org/en-US/questions/976623''
    there is an icon in the upper right hand corner about test your internet connection speed. is this malware

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • EnvironmentException: -600: Could not retrieve a datasource connection

    Hi,
    I am getting below errors in my logs has anybody have any idea about below errors.
    0.4 IJFWK-302 itseelm-lx4065.xxx.com 2013-02-12 05:55:40 EBCCOP01 971 NA BsGetDeliveryMethods irwuser irwuser EBCCOM01 28442421A3EF52E9C8692AA9F19FFC42 37 <?xml version="1.0" encoding="UTF-8"?> <SystemError><Message>-302: Error caught while executing the business task. Marked transaction for rollback; nested exception is: com.xxx.xxxx1.util.exception.EnvironmentException: -600: Could not retrieve a datasource connection for user 'null'.; nested exception is: com.ibm.websphere.ce.cm.StaleConnectionException: The Network Adapter could not establish the connectionDSRA0010E: SQL State = 61000, Error Code = 20</Messa
    Thanks
    Edited by: Ramstimo on 15 Feb, 2013 9:34 AM
    Edited by: Ramstimo on 15 Feb, 2013 9:36 AM

    Hi,
    Can you paste the jdbc connection that you have used in your application code here?
    Regards,
    Kishore

  • Script for checking datasource connections

    Hi,
    I would like to find out if it's possible to monitor datasource connections using Unix based scripts and if so how can this be accomplished?
    Thank you in advance
    Twaggz

    Hi
    Thanks for the link however I was looking at enabling monitoring at an AIX level.

  • OID Replication - Unable to test Oracle Net connections to a node with SQL

    Hi all,
    I am implementing OID replication and currently stuck on the verification part where I should use SQL*Plus to verify if TNSNAMES.ORA is configured correctly.
    First server installed as a regular OID installation. Second server is installed with a high availability option.
    Server1: name: server. Domain: domain.com
    Server2: name: oid1. Domain: galaxy.com
    My TSNAMES.ORA:
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server.domain.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    OIDREP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = oid1.galaxy.com)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    So, the configuration instructions state to test both WITH and WITHOUT the domain name:
    IMPORTANT: Test Oracle Net connections to all nodes from each node in the DRG.
    Use SQL*Plus. Test both system@net_service_name and system@net_service_name.domain.
    IF THIS DOES NOT WORK, THEN ASR REPLICATION SETUP WILL NOT BE SUCCESSFUL!
    So, my SQL*Plus statement "*sqlplus "sys/abcd1234@orcl as sysdba"* works just fine.
    But the command "*sqlplus "sys/[email protected] as sysdba"* fails with ORA-12154: TNS:could not resolve the connect identifier specified
    Thanks in advance for your input.

    Vijay,
    Thank you for your help. I was able to connect to my first instance without any issues. My next problem is updating TSNAMES with the second server, I am still getting the error message when connecting via SQLPLUS. May be my SQL statement wrong?
    sqlplus sys/[email protected] as sysdba" or sqlplus sys/abcd1234@OIDREP as sysdba Neither one is working :(
    Here is my TSNAMES. For now, I am using IP addresses
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.192.141)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    ORCL.DOMAIN.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.192.141)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    OIDREP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.192.137)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    OIDREP.GALAXY.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.192.137)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl)
    -----

  • Infosource and datasource connection

    Hi Experts,
    In the BI 3.5 business content, what is the best way to decide which datasource connects to which infosource? For example if i were to install BI content for SD i have about 8 datasources and 20 infosources and 6 cubes only.
    How can i setup a dataflow based on Bi content only?
    Should i make a decision based on the fields i am interested in? Please educate me on this.
    Thanks
    K

    Hi Krishna,
    Go to RSA1--->, right mouse show data flow you can double click the elements.
    On the Source systems you can see the relation between DS and IS.
    Also try table RSOLTPSOURCE - field OLTPSOURCE for datasource,field BASOSOURCE for infosource.using 'show data flow' as mentioned, click 'technical name on/off' to have the technical name displayed.
    hope this helps.
    Regards
    CSM Reddy

Maybe you are looking for

  • String with embedded single quote

    Hi, all. We're trying to pass a string from one procedure to another, which will then do an EXECUTE IMMEDIATE on it. However, there are single quotes withing the string, and they're driving us nuts! This is what the concatenated string should look li

  • How do I send an email to a group?

    How do I form a group for sending emails to?

  • Why can't i opens Itunes in Windows 7

    Why can't I open Itunes in Windows 7 after defrag and unistalling and reinstalled.

  • Singleton JCA DB Adapter in OSB

    Hi, I am planning to use the JCA DB Adapter for polling insert/update events in a database in OSB 11g. Basically I am creating the jca adapter in JDeveloper, then generate the proxy service from OEP Eclipse and import the project into OSB. The Proxy

  • When are Redolog files reset to zero size? Manual reset possible?

    As far as I know redolog files contain all stuff which is changed during operation of an Oracle database. However I wonder if there are events when these files are AUTOMATICALLY reset to zero. I guess it is when I do a full offline backup. Is this co