SSRS Report in Visual Studio using a Stored Procedure as data source

I have a stored procedure that creates a table used in an SSRS report that will be stored in AOT of Dynamics AX 2012 and be placed on a menu within Dynamics.  My concern is -- will  mutiple users be able to run the report at the same
time for different filters without anything special being done in the stored procedure.
The stored procedure deletes a table, then recreates each time the stored procedure is run.  The ssrs report executes the procedure.

Hi,
Thank you for posting in the MSDN forum.
Since it is related to the SSRS, we will move this case to the
SSRS forum, you will get dedicated support from the SSRS experts.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • Cannot preview SSRS report in Visual Studio 2012 - assembly does not allow partially trusted callers

    Hi,
    I have an SSRS report that works fine in Visual Studio 2008 BIDS.  This report references a .Net assembly namely:
    System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    I use this assembly in some simple Code functions in the report. e.g.
    System.Web.HttpUtility.UrlEncode(inURL).ToString
    I have converted the SSRS project to 2012 and am trying to preview the report.  However, I get an error relating to: "That assembly does not allow partially trusted callers".  If i deploy the rdl to my local SSRS it renders fine, but
    how do I fix Visual Studio to preview the report without error? This is highly annoying.
    My Visual Studio version is:
    Microsoft Visual Studio Professional 2012
    Version 11.0.61030.00 Update 4
    Microsoft .NET Framework
    Version 4.5.51641
    SQL Server Reporting Services  
    Microsoft SQL Server Reporting Services Designers
    Version 11.0.3402.0
    Any help is appreciated on this one.
    Regards,
    MrHH

    Hi MrHappyHead,
    According to your description, you used custom assembly in the report, when you run the report in Visual Studio 2008, the report works fine. When you run the report in Visual Studio 2012, the error message occurred: "That assembly does not allow partially
    trusted callers".  But the report works fine after you deployed it to report manager.
    Only applications that are fully trusted by the runtime code access security system are allowed to access a shared managed code assembly that is not explicitly marked with the System.Security.AllowPartiallyTrustedCallers attribute. A partially trusted assembly
    (one that is registered in SQL Server with the SAFE or EXTERNAL_ACCESS permission set) that attempts to access a strong-name signed assembly without this attribute causes a System.Security.SecurityException to be thrown. To troubleshoot the problem, please
    refer to the following steps:
    Add namespace system.security to AssemblyInfo.cs file
    Add [assembly:allowpartiallytrustedcaller] to the file.
    Set trust level to "Full" in web.config file
    For more information, please refer to the following document:
    http://support.microsoft.com/kb/2869522/en-us
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • Unable to preview ssrs report in visual studio

    Hi, I'm new to ssrs. i'm created a report but cannot preview the data. the query is working fine in sql server but return 0 when i execute in query designer in visual studio. i've try to create the new one but still the same problem occur. anyone can help
    me? thanks.

    Hi accy,
    According to your description, you have a query which runs properly in SSMS. When execution the query in SSRS query designer, it returns incorrect result. Right?
    In Reporting Services, the query we execute in query designer will be sent to corresponding database and run, then return the result. However, it still have some limitations for query designer.
    All the query in query designer will only be executed one time. Unless we re-run the report, the query will not execute again and the return data will not change.
    In query designer, The result set must be a single set of rows and columns where the same number of values exist for each row of data. Multiple results sets from a single query are not supported. It will only return the first result set. Ragged hierarchies,
    which do not have a constant number of columns and can produce different number of data values for each row, are not supported. 
    In this scenario, the issue should be on query side. Please check the input parameter and the return result set. If possible, you can post your query so that we can have some deep analysis.
    Best Regards,
    Simon Hou

  • Using Oracle Stored Proc as Data Source for PowerBuilder Data Window Object

    Hi,
    I'm trying to use an Oracle stored procedure as the data source for a PowerBuilder data window object. I'm using the following (which is a variation of an example given on Sybase's web site, with the appropriate database/column name changes and use of %TYPE):
    ======================
    CREATE OR REPLACE PACKAGE pkg_dw_sp_example
    AS
    TYPE typ_example_rec1 IS RECORD(
    v_comcodsa st_sa.comcodsa%TYPE,
    v_comnamsa st_sa.comnamsa%TYPE,
    v_cocitysa st_sa.cocitysa%TYPE);
    TYPE cur_example_cur1 IS REF CURSOR;
    RETURN typ_example_rec1;
    END;
    ======================
    CREATE OR REPLACE PROCEDURE sp_dw_example1
    (arg_teamid IN st_sa.comcodsa%TYPE,
    cur_team IN OUT pkg_dw_sp_example.cur_example_cur1)
    AS
    BEGIN
    OPEN cur_team FOR
              SELECT comcodsa,
              comnamsa,
              cocitysa
              FROM st_sa
              WHERE st_sa.comcodha = arg_teamid;
    END sp_dw_example1;
    ======================
    The package is created okay, but the procedure is saved with compilation errors. Unfortunately, Oracle does not indicate what the errors are (great product), so I have no idea what it is complaining about.
    Questions:
    1) Can anyone point me to/or provide a better example?
    2) The examples in books I have seen all would have declared the procedure in the package specification - is the above valid?
    3) This is a PowerBuilder specific question, but if the package does not show up in the stored procedure list when creating a data window object, how does one use it as a data source?
    Oracle 8.1.7
    PowerBuilder 8.0.1
    Thanks,
    Ed Holloman

    1) Everything looks fine with your code. You did not mention the environment you are compiling your code in, but if it is SQL*Plus, you can type 'show errors' after the compile and it will list the errors and line numbers for you.
    2) You can include the procedure in the package - in which case you would have a procedure declaration in the spec and the actual procedure in the body. You would no longer include the 'create or replace' - the declaration and procedure would just start with 'procedure'. The spec would look include:
    PROCEDURE sp_dw_example1
      (arg_teamid IN st_sa.comcodsa%TYPE,
       cur_team OUT cur_example_cur1);Note the removal of the package reference (since we are now IN the package) and the second parameter is just OUT instead of IN OUT.
    3) Not much, but I know that in PB8, our developers have said they have visibility now to the package when creating a DW - something they didn't have in PB7. Previously, we had to create a dummy standalone procedure that they would select and they would later modify the code to include the package prefix.
    Hope this helps a bit.

  • Pl/sql stored procedure as data source

    Hi I am a newbie
    I have a pl/sql stored procedure inside a package which uses a SYS_REFCURSOR as it returns a result set.
    Can I use this procedure as a Data Source using the wizard?
    When I use the Data source configuration wizard I get a list with only the tables and views.I don't see any stored procedures
    Thanks

    Here is a sample procedure..
    CREATE OR REPLACE PROCEDURE TEST_USER.TEST_PROCEDURE1 ( p_cursor OUT SYS_REFCURSOR)
    AS
    BEGIN
    OPEN p_cursor FOR
    SELECT C1,C2
    FROM TEST_USER.test_table4procedure;
    END;
    When I execute the procedure, I see the results. The goal is to put the results of the procedure into a different table.
    Unfortunately I have close to 0 zero knowledge in both java and jython.
    Please help.
    NOTE: For the life of me, I have no clue why the "other" system wants it to be a stored procedure, when we can use a view/table and make everybody's life easier (aka K.I.S.S.)
    Regards,
    Dave Null

  • Report fails on CE usin stored proc as data source and Native Client driver

    Iu2019m using Crystal Reports 10. I have a report with a stored procedure as data source. All my other reports using views as data source. Weu2019re upgrading db from SQL Server 2000 to 2008 and start using Native Client driver.
    Thereu2019s no problem to generate this report from .rpt on my local PC. But got the following error message when generate from Crystal Enterprise:
    Error Message: The table could not be found. File D:\Program Files\Crystal Decisions\Enterprise 10\Data\procSched\......reportjobserver\~tmp12c06c5641c4d50.rpt.
    It looks like sth related to Native Client driver. It works if I change to use old native driver in DSN on CE server.
    Any ideas/advises? Appreciated to your help!

    Hello,
    CR 10 does not support the MS SQL Native Driver, if you want to use OLE DB then use the MS OLE DB Provider for SQL Server up to SQL 2005. SQL 2008 does not support the MDAC version so you have to install the SQL 2008 Client tools to use the SQL Native 10 driver. CR 10 does not support that Native 10 Driver.
    See this MS Kbase: http://msdn.microsoft.com/en-us/library/ms131035.aspx
    Convert back to the old driver for 2005 and then use ODBC if using SQL 2008, it should work...
    Don

  • Using Crystal Reports for Visual Studio 2008 in C++/CLI

    How can I use Crystal Reports for Visual Studio 2008 for creating WinForm Application written in C++/CLI under VS2008 ?

    Can you repost your last response in English?
    Also, check out this post
    Read Before Posting - Where to find Crystal Reports .NET SDK resources
    It has links to our Crystal Reports resources for .NET.
    Edited by: Jason Everly on Apr 22, 2009 9:07 AM

  • 156" width Crystal Report with Visual Studio 2005

    Post Author: kunchesm
    CA Forum: .NET
    Hi,
    I have a requirement to design a 156" width report (for exporting to Excel). And naturally i dont have printers to support this huge width reports (as these reports are not used for printing but just for exporting to Excel).
    One of the option which i have tried to design these reports is -
    - Installed MIcrosoft XPS Document writer and
    - Created a new server form (in Printers&Faxes>File>Server Properties) and assigned my custom width & Height for the paper size as per my requirement
    - Used this printer and form in my crystal report
    Now, my question... is there any better alternative or option to design huge width Crystal reports in Visual studio 2005? Any help in this regard is highly appreciated!
    Thanks & Regards
    ksm

    Hi Ganesh,
    So it all depends on how you created your WEB Project. If it was a CR Web App then no issues, if it was a WEB Form app then no issues except you need to copy the whole folder: C:\inetpub\wwwroot\VS2013WebsiteCR\aspnet_client
    to your app folder, maybe...
    If it was an empty WEB app then it may be an issue with permissions ( more on this soon once we do some testing, R&D may have provided a work around to get IIS Express to work, not sure about using IIS directly.
    Also search on Sessions and PostBacks, to get the second page you need to keep the session open/active. If not you may get nothing ot the same page everytime.
    Don

  • Crystal Reports for Visual Studio 2008 - dbf

    Hello,
    I use both Visual Studio 2005 and 2008 on same PC. I can not work with dbf files (format foxpro2x, dbase IV) in VS 2005 and VS 2008.
    Q1. Work Crystal Reports for Visual Studio 2008 with database files - dbf (version foxpro2x, dbaseIV)? I get error -
    Crystal Reports ActiveX Designer
    Failed to load database information
    or with dbf files work only Full version of Crystal Reports?
    Q2. How re-install Crystal Reports for Visual Studio 2008. In setup Add/Remove features not exist Crystal Reports check box. I only Repair/reinstall all Visual Studio but after reinstall same error
    Crystal Reports ActiveX Designer
    Failed to load database information
    3. When I can open sample project with Crystal Reports which use Crystal Reports (dbf file) this error is displayed:
    Crystal Report Viever
    Failed to load database information
    Details: The database DLL "crdb_p2bxbse.dlll" could not be loaded.
    4. I reinstal Crystal Report in Visual Studio 2005 - same error
    5. I apply hotfix Crystal Reports for .NET 2005 - SP 1 - same error
    Thank You
    Ludek

    Hi Ludek,
    1-For dbase file to work you need have permission on database files for IIS as well as user accessing the database.
    2-For re-install you need to insert the CD of visual studio setup then do custom install and then try to choose crystal reports for re-installing
    3-The old viewer might cause the problem. In this case can you try connecting to a blank dbase file.
    and for such issues we have a special forum [here|SAP Crystal Reports, version for Visual Studio;
    Thanks,
    Hitesh Mangtani

  • Crystal report for visual studio 2005 dblogin problem

    Dear Sir,
    I am using Visual Studio 2005 and crystal reports for visual studio 2005 and sql server 2000.
    When I am running the project from my pc where it was developed and a local server with server authentication, report is opening but from client machine there is a new screen come before opening the report asking for login issue. my reports has subreports
    also.
    I am using dsn file to connect with server from crystal reports where dsn file contains as follows:
    [ODBC]
    DRIVER=SQL Server
    UID=sa
    PWD=sa
    DATABASE=HRISDB
    WSID=S-AGD-PAY01\HRSERVER
    APP=Microsoft Data Access Components
    SERVER=S-AGD-PAY01\HRSERVER
    so it is dynamic bcoz i need change server name sometimes.  my question is when same report want show user from their pc then below screen appears:
    database login
    server Name: C:\program files\HRIS\HRISDB.dsn
    Databse: HRISDB
    user id:
    PassworD:
    Integrated Security: it is checked and a finish button.
    (i am sorry bcoz screenshort is not attaching so I write above what in the diagloag box for you)
    then i need to uncheck the use integrated security and click finish then the reports come. THis is very annoying for my clients.
    Please help me how can I overcome it.
    It is mentionable that I didn't use any dblogin method in my code to like setdbloginforReport(). I think there is no problem bcoz the report show correctly. Just want to know how to overcome this screen.

    You know, this forum is for controls, apis, components for the user interface Windows Forms.
    Unlucky enough, Microsoft does not support Crystal reports anymore for many years.
    Try the Crystal reports forum for .Net
    http://scn.sap.com/community/crystal-reports-for-visual-studio 
    Success
    Cor

  • Crystal Reports for Visual Studio and (Wcf) Web Services

    I´m evaluating Crystal reports for Visual Studio 2010. I want to read data from a (Wcf) Webservice into the predefined Reports and deliver them to the Users in an ASP.NET Application. As far as I see reading Webservices via the XML/Webservice datasource works good in the Crystal Reports 2011 Applications - But I have Problems with the Integration of the XML/Webservice datasource in the CRVS2010 Environment.
    I read your Article on sdn: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/13732
    which helped us to enable the XML Datasource in the CRVS2010 environment on a Machine where Crystal Reports 2011 and VS2010 is installed, but this required copying DLL´s and installing the JRE.
    But I´m not able to  run the XML/Webservices datasource on a webserver in a ASP.NET Application where Crystal Reports 2011 is not installed (only the runtime) - the above post doesn´t help because  the path structure is completely different on my machine. Is there a manual, which helps me to enable the XML datasoucre and the CRVS2010 runtime ?
    I´m not sure if reading XML is the best practice for a new Project, especially after reading your article at http://forums.sdn.sap.com/thread.jspa?threadID=1952093
    I´m now evaluating ADO.NET XML as mentioned in your article, but I´m not sure if this is the right decision.
    Is there a a new version  for Visual Studio 2010 of the u2022csharp_web_adonet.zip example ?
    BTW: All examples in the Sample Code for Crystal reports for Visual Studio 2010 reference Assemblies in Version 14, which are not present on my machine. I had to find/replave 14 through 13, before they are compilable. Did I made a mistake during installation ?

    Hi Henrik,
    First of all you didn't make any mistake installing CRVS2010. It has assemblies with version 13.x
    Now as far as patches are concerned ensure that you are on SP2. You can get runtime and patch from following:
    http://www.sdn.sap.com/irj/sdn/crystal-xcelsius-support?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8
    You can opt for AD.NET as one of the datasource but what is the error/ warning you get when you use Web Serive as datasource?
    You can find the latest samples created for CR2008 here
    http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/d0bf8496-2a81-2b10-95ac-b1f48d5b63f5
    - Saurabh

  • Crystal Reports for Visual Studio 2010 runtime LICENCE

    I want to welcome everyone. It's my first post on this forum.
    I want to provide my Windows Form application to a client. This application was written in VS 2010 and it uses SAP Crystal Reports for generating simple report.
    I've read [Crystal Reports Licensing Explained|http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10cd9e15-120d-2c10-3fb5-be299000b6b7&utm_source=crvs2010&utm_medium=lp&utm_campaign=licensing_explained] pdf and I've learnt that in my case redistribution of software that embeds the Crystal Reports runtime engine is free.
    My question is:
    Is there something else I must include in my application package for instance a licence file? Or maybe I just have to include SAP CR runtime or ask user to download it from the SAP web site and that's it?
    Marcin

    Hello Marcin,
    Welcome.
    Please note that whenever you distribute your application (which uses Crystal reports) to others who may not have Crystal designer product, you need to provide the runtimes along with the application. The runtimes provide the necessary dlls in the machine for running Crystal inside the app.
    You can use an exe to install the CR runtimes and then deploy your app. OR you can include the msm files and create a deployment package.
    You will get the runtimes for CR4VS2010 [here|/people/coy.yonce/blog/2010/11/12/crystal-reports-for-visual-studio-2010-production-release-now-availableCystlR%2528SAPWeblogs%253ACrystal+Reports%2529].
    You might want to check [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333833323336%7D.do] link for details.
    Forgot to mention:
    we have dependency on C++ runtimes. Please look at [this|Visual studio setup project with merge modules - C++ problem; thread for details or do a quick search, in this forum.
    Hope it helps.
    Thanks.
    Edited by: A G on Dec 2, 2010 6:03 PM

  • Image Quality In Crystal Reports for Visual Studio 2010

    I am using the new production release of Crystal Reports for Visual Studio 2010 and I am having an issue with image quality when adding an image to a crystal report.
    The image itself is a .TIF file,  and when opened in Windows, the quality of the image, which is mostly text, is very high. The image was created from a electronic PDF form and I intend to use this as a background for the crystal report, over which I will place data fields.
    As soon as the image is added to the report you can see the degradation in quality in the design window and in the preview window within visual studio. The quality remains low when viewing the report in the WPF report viewer and when printing from this control.
    I have ensured the "Retain Original Image Color Depth" option is checked but this has made no difference (the image is black and white anyway).
    The image in the report has been left at its native size, no resizing at all. The image is 355KB in size if that's relevant.
    Is there a reason the image looses quality when added to a report? Is it being compressed? More importantly, is there a way to make the image retain its native quality when adding it to a crystal report?
    Thanks in advance.

    The following image is the image I am trying to display. Although imageshack has converted it to a png, if you right click and save the image you can open it and zoom in with little image degradation.
    http://img132.imageshack.us/i/j301.png
    The following is a screen shot of how the tif file looks in the designer when zooming in:
    http://img138.imageshack.us/i/j30lowquantity.jpg
    The second image has lost its clarity and is unusable when printing.
    I hope this helps.

  • Need help in creating table in crystal report for visual studio 2010

    Since there is no table support in crystal report,how can I create a table in crystal report for visual studio 2010?
    I have a datatable and I need to show that in crystal report in table structure.
    I have tried using lines and boxes to generate the table but it is not working perfectly.
    How can I export the report in excel format in read/write mode saving all the formatting in the report

    Hi,
    Check sample codes from following:
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    You can download the [Developer's Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm] & [API Guide|http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm]
    Thanks,
    Saurabh

  • Disabling copy feature in Crystal Reports for Visual Studio 2010 SP2

    Hi ,
    When I tried Crystal Reports for Visual Studio 2010 SP2 , I saw a new feature which allows user to copy content of the report after selecting it. I am using .net 4.0 winform application. I want to suppress this feature. I want the selection of objects in report to work as earlier version.  I could hide the copy icon in toolbar . But that doesn't change the way selections happens in the report . Please tell me how to suppress the copy feature completely when we use SP2 ?

    Hi Jijo Paul,
    We found a hidden method to disable the copy as it used to be. It is hidden meaning it's not supported so if you run into any problems using it or if it gets removed there is nothing we can do for you but give this a try:
    // this hides the button and disables the CTRL C command
    crystalReportViewer1.ShowCopyButton = false;
    crystalReportViewer1.SelectionMode = CrystalDecisions.Windows.Forms.SelectionMode.None;
    Thanks again
    Don

Maybe you are looking for

  • Transferring itunes library from a Mac to a PC

    Can I transfer all my music in iTunes from a Mac to a PC with Windows Vista using my iPod? If so, how do I do that?

  • Getting NaN for Variable

    I put the following actionscript into the first frame labeled "actions": _global.iCount:Number = 0; I then attached this script to a button, in the second frame: on (release) {                 iCount = iCount + 1;                 gotoAndStop(_current

  • Computer won't recognise any devices

    Hi All :ever since I installed macafee my computer won't recognise any of my apple devices Can someone hel please.

  • Determining the Serial port number

    I need to test my board on 3 PCs randomly.Each time i connect the board the serial port number like "com 18" is getting changed.Now the comport number i am using is 40.Though i dont any other USB connection.Though i refresh i still get  the data only

  • Duplicates after import

    Hi, New to iphoto. I did an import from cd of my images, and they all showed up in last import. I created a new folder called flowers, and copied about 500 pics from the 'last import' into my flowers folder. Now I did a spotlight search to see where