SQL Report not Working

We have this DCM report in SCCM 2007 and we want to migrate it to SCCM 2012. In SCCM 2007, this report is working when you run it in the sccm console, but does not work when you run it in sql management studio. The error that I am encountering in sql management
studio is
The EXECUTE permission was denied on the object 'fnBuildCICategories', database 'SMS_ABC', schema 'dbo'
After importing this report in SCCM 2012, this report is giving me the same error when running from the sccm console as well as in sql management studio
Can anyone help me resolve this issue. Here is the sql report
declare
@severity varchar(255)
declare
@cicontentversion varchar(255)
declare
@name varchar(255)
declare
@category varchar(255)
set
@severity =
'Informational'
set
@name =
'1.0 Compliance Baseline'
set
@cicontentversion =
set
@category =
'Windows'
if
IsNumeric(@severity)<>1
begin
select @severity=Severity
from v_CIValidationSeverity
where
Description=@severity
end
select
  loc
.DisplayName
as BaselineName,
  ci
.SDMPackageVersion
as BaselineContentVersion,
  cssev
.Description
as MaxNoncomplianceCriticality,
  summ
.CountCompliant,
  summ
.CountNoncompliant,
  summ
.CountTargeted
- summ.CountCompliant
- summ.CountNoncompliant
- summ.FailureCount
as CountNotReporting,
  summ
.FailureCount,
  summ
.CountTargeted,
  summ
.ActivatedCount,
case
when summ.CountTargeted>0
then
convert(numeric(5,2),
100.0*summ.CountCompliant/summ.CountTargeted)
else 0
end
as CompliancePercentage,
  dbo
.fnBuildCICategories(ci.CI_ID)
as Categories,
  ci
.CI_UniqueID
as Baseline_UniqueID,
-- used for drillthrough
from
v_CIComplianceSummary summ
left
join v_CIValidationSeverity cssev
on cssev.Severity=summ.Severity
left
join v_LocalizedCIProperties_SiteLoc loc
on loc.CI_ID=summ.CI_ID
inner
join v_ConfigurationItems ci
on summ.CI_ID=ci.CI_ID
left
join(select
distinct CI_ID
from
            v_CICategoryInfo cat
where cat.CategoryInstanceName
= @category
or @category='')
temp
on
temp.CI_ID=ci.CI_ID
where
CIType_ID=2
and(loc.DisplayName
= @name
or @name='')
and(ci.SDMPackageVersion
= @cicontentversion
or @cicontentversion
=
and(summ.Severity
>= @severity
or @severity='')
and(temp.CI_ID
is
not
null
or @category='')
order
by summ.CountCompliant,
summ.Severity,
BaselineName, BaselineContentVersion

I bet you have an SSRS exestuation account that has been given the correct permission within the CM12 db. Are you dbo for CM12 db? if not have you grant yourself db_reader and sms_report reader (local group) rights?
Did you know that even if you do that this working, there is another issue with respect to converting varchar to int?
http://www.enhansoft.com/

Similar Messages

  • Bug - Sorting Order in SQL Reports not Working?

    Today i defined a SQL Report in APEX and choose 3 columns for sorting the report.
    The order is like that:
    1. Category
    2. List Price
    3. Product Name
    When calling the SQL Report in a new session i expected to get a sorted report like defined.
    I got only the report like the last person who edited this report.
    It looks like that the Sort Sequence columns is not usable in SQL Reports.
    Here is an example based on the problems which i described:
    http://apex.oracle.com/pls/apex/f?p=40082
    below the SQL Report a screenshot is shown, where the Report Attributes (and the sort sequence) is displayed.

    OliverL
    Did you reset the pagination of the report you made the changes to?
    Normal behaviour is that APEX remembers per user per report the last sorting that was used.
    Including when a user clicked a column header to change the order from the default one.
    The sort preference are stored in preferences with a name like FSPapp_id_Ppage_id_Rinternal region_id_SORT.
    Nicolette

  • CDR report not working

    Hi,
    We have LYNC 2013 and Monitoring is enabled. the CDR report is not working. even User Activity summary for telconferencing and for audio, reports not working.
    Kindly suggest troubleshooting steps.
    Can we have any SQL query to fetch the report from database?
    Thanks
    jitender

    Hi Raju,
    From Monitoring server , CDR report is not working. Even "User Activity Report" not working and giving below error for "Telephony Conference" and as well for "A/V Conference"
    " No results match the report filters. Change the filter values and submit the query again."
    Thanks
    jitender

  • What will you do if any SQL is not working.in oracle 10g...apps 11.5.10.2

    What will you do if any SQL is not working. in oracle 10g....apps 11.5.10.2

    928714 wrote:
    yes sir.If you help me in answering my questions i wll be very thankful to you sir.
    tnx,I haven't a clue.
    As you have been advised in many of your posts, go study the documentation for whichever specific topic you are interested in.
    For me to answer your questions, I would need to go get that documentation.
    Then I would need to read that documentation.
    Then I would need to write a forum post that interprets what I think I learned from that documentation.
    It is so very much faster if YOU go do that instead of posting to a forum and expecting others to do it. You will remember what you study for a lot longer time if you teach yourself.

  • Force encryption on SQL Server not working?

    Hello Everyone,
    I'm running SQL Server 2008 64-bit. I've installed a self-signed cert on the box and set  "Force Encryption"  and restarted SQL server. 
    I setup a client machine to trust the authority of the cert installed on the server. When I connect to that SQL server from SSMS from a client machine and select the "encrypt connection" option in the client Connection properties, SSMS correctly complains
    that the cert on the server does not match the computer name I asked to log into . This is because, although the cert is trusted, the dns name dos not match the CN in the cert <- Perfect, exactly what I am expecting.
    When I connect to the same SQL server from the same client but  UNCHECK "encrypt connection" on the client, I'm able to login. Considering I've checked the "Force Encryption" on the server, the server should have rejected the connection. Why not?
    Ameer Deen

    Hi all,
    We are implementing a Merge Synchronization solution which involves three SQL Servers located on three Azure locations worldwide and one on-premises location. We need to secure communications between all servers. We are evaluating the encryption of all server
    communications through SSL:
    http://technet.microsoft.com/en-us/library/ms191192.aspx
    When we configure one server (let’s call it server A) to accept only encrypted connections (with Force Encryption=Yes) we still can connect from other server (let’s call it server B) that do not have the certificate installed. We would expect the server
    B to fail in the attempt of connect as server A should only accept encrypted communications and those should need the certificated to encrypt/decrypt everything (commands and data).
    We have also review the following forum post that is very similar to this one:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/bde679d9-ff83-4fa7-b402-42e336a97106/force-encryption-on-sql-server-not-working
    In all cases the Microsoft answer is:
    “When the
    Force Encryption option for the Database Engine is set to YES, all communications between client and server is encrypted no matter whether the “Encrypt
    connection” option (such as from SSMS) is checked or not. You can check it using the following DMV statement”
    When we run the provided DMV statement to check if encryption is enabled:
    -- To check whether connections are encrypted between server and clients
    SELECT encrypt_option
    FROM sys.dm_exec_connections
    We get “TRUE”. So theoretically encryption is enabled.
    Then:
    Why can we run SQL statements against server A from server B (with SSMS) without any certificate?
    Are we wrong when we expect server A to refuse any client that do not have the right certificate?
    How can server B, without any certificate, decrypt the data encrypted by server A?
    Our intention is to encrypt all server in the same way so all of them will accept only encrypted communications. We are assuming that the Merge Agent will be able to communicate with the Publisher and the Subscriber through this encrypted environment. May
    anyone please confirm ti?
    Thanks for your help.
    Best Regards
    Benjamin Moles

  • Drill down report not working in 1og report

    hi all,
    Drill down report not working in 1og.
    in 6i it working good but 10g not working .
    plz help any one.
    thanks

    Hello,
    For detailled instructions about hyperlinks :
    Oracle® Reports Building Reports
    10g Release 2 (10.1.2)
    B13895-01
    3.6.10.1.8 Creating a hyperlink using the Property Inspector
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_howto.htm#i1062802
    Regards

  • IPS event monitor and reports not working

    Dear after upgrading my IPS from E3 to E4  the event monitor  and reports not working, can you please advice my to solve this issues

    Hi All,
    Filter settings below:
    The filter works partially as I don't get alerts on the IPS itself.
    Firewall LOG:
    4          Feb 14 2014          15:33:22                              39715                    514          IPS requested to drop UDP packet from SOURCE_VLAN_NUMBER:/39715 to DESTINATION_VLAN_NUMBER:/514
    IPS LOG (when enabled):
    evIdsAlert: eventId=1352793300955167909  vendor=Cisco  severity=low 
      originator:  
        hostId: SSM02 
        appName: sensorApp 
        appInstanceId: 1192 
      time: Feb 14, 2014 15:33:22 UTC  offset=0  timeZone=GMT00:00 
      signature:   description=IP Fragment Too Small  id=1206  version=S212  type=anomaly  created=20030801 
        subsigId: 0 
        sigDetails: Too many small IP fragments in datagram 
      interfaceGroup: vs0 
      vlan: 0 
      participants:  
        attacker:  
          addr: 172.x.x.x  locality=OUT 
          port: 39715 
        target:  
          addr: x.x.x.x  locality=OUT 
          port: 514 
          os:   idSource=unknown  type=unknown  relevance=relevant 
      alertDetails: InterfaceAttributes:  context="single_vf" physical="Unknown" backplane="GigabitEthernet0/1" ; 
      riskRatingValue: 50  targetValueRating=medium  attackRelevanceRating=relevant 
      threatRatingValue: 50 
      interface: GigabitEthernet0/1  context=single_vf  physical=Unknown  backplane=GigabitEthernet0/1 
      protocol: udp 
    Our next step is to make a service policy exception on the firewall itself. We are also considering reloading the IPS device or at least the analysis engine.
    Thanks for all your help so far. Any more suggestions are most welcome. I'll keep you up to date.
    Regards
    Mariusz

  • After i install Visual-Studio 2013 crystal-report not working

    hi
    after i install Visual-Studio 2013 crystal-report not working on my Visual-Studio 2010 projects
    when i try to open crystal-report i see this:

    Hi E_gold,
    Crystal Reports forum may be a better place for you.
    Thanks for your understanding.
    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.

  • Interactive Reports not working with APEX listener

    Hi,
    I have posted this question APEX listener forum couple of weeks ago but very few responses.
    If any one from here can help then it would be great.
    Interactive Reports not working with APEX listener
    Best Regards,
    Baig

    Sorry for late response.
    It was a firewall issue

  • Sql is not working after changing from MsAccess into sql server

    Following Sql  is not working after changing from MsAccess into sql server. 
    sum(trn.sales) as sales,
    sum(trn.cost) as cost,
    sales - cost as profit // Here is not working . can we not use sales a column. Please advise
    from trn
    Kind Regards
    pol
    polachan

    It will not work if use two different column from the table or column  from two  different table
    Example
    sum(trn.sales * trn.rate) as salesAmount,
    sum(trn.cost) as cost,
    sum(trn.salesAmount)-sum(trn.cost) as profit ----- Here is not working . can we not use sales a column. Please advise
    from trn
    Regards
    polachan

  • Discoverer report not working on R12 !

    We have just migrated to R12 from 11i and some of the discoverer query is not working, but the same is working fine when we ran thru SQL Developer or TOAD.
    Is there any context (mo_global.set_policy_context) needs to be set in Discoverer report to get the data?
    Thanks

    Thanks Srini,
    There is no any specific error message, the strange thing is if I run the Discoverer report is not returning any data, but if I set the mo_global.set_policy_context ('S',111) in SQL Developer or TOAD and then run the discoverer report it return data...
    Any pointers?

  • Report Not working in the Web Browser

    Hi ALL ,
    Am working on a item SKU report . The report is running fine in the BIDS but once i try to view the report in the WEB Browser
    tried both Mozilla and Internet Explorer no data is shows up .
    The report has 2 report filter one is on the service and the other one is the item sku its a multi - parameter  that contains
    a list of more than 6000 different SKU . Can the filter be the reason for the report not displaying in the web browser.
    If yes kindly advice me what the workaround for it .
    I tried having the filter in the  SQL main query but it was of no use no data it was showing after having the ssrs report filter
    at least right information its showing but in the BIDS not in the main web browser.
    Kindly Help
    Priya

    Hi Priya,
    According to the description, I understand that there are parameters (@SKU and @SKUlist) in the report, and SKUlist parameter is multi-value parameter. When selecting values of the SKU parameter, the parameter SKUlist will display corresponding values. In this
    case, you should create cascading parameters, right? And you use parameters to filter the report.
    Because the data of the report can be shown in the Business Intelligence Development Studio (BIDS) environment, the issue only occurs after deploying the report to report server. Based on my research, I think it may occur because of web browser issue. I have
    known you use Mozilla and Internet Explorer to view the report but there is still no data.
    In Reporting Services, not all report functionality is supported by all browsers. In this scenario, I suggest you considering the aspects of the setting or third party add-ons of Internet Explorer (IE). You can refer to the steps below:
    1. Click Tools -> Internet options.
    2. Switch to the Security tab, click Local intranet, and then select Default level.
    3. Switch to the Advanced tab, and click Restore advanced settings.
    4. Temporarily disable third party add-ons. For detailed steps, please see the link:
    http://windows.microsoft.com/en-IN/internet-explorer/manage-add-ons#ie=ie-10
    Reference:http://technet.microsoft.com/en-us/library/ms156511(v=sql.105).aspx
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • SQL Code not working in Forms Developer?

    Hi all,
    I'm using Oracle 10g and I have th following code running on iSQL+ but not working on Forms and I got the following erro
    The SQL code:
         select returningreason
            from (
                     select returningreason,
                     dense_rank() over (partition by 1 order by count(*) desc) as drnk
                     from returned_goods
                     group by returningreason)
           where drnk = 1;And the error happens near the word over to the right and the error statement is:
    Error 103 at line 18, column 19
       Encountered the symbol "(" when expecting one of the following:
             , formThanks in advance :)

    Triggers are compiled in forms so need to use only the features available to forms, which doesn't include all the new stuff in the database.
    select over partition
    NVL2They don't work in forms and reports too.
    Also if you use them in record Group
    Forms/SQL Compiler was not lined up to the database(10G).
    Meanwhile,for example. Pipelined TABLE and relative Select work in Reports AND Forms.

  • SQL tab not working in V2.1 EA1 for non-DBA users -- how to fix?

    In v2.1 EA 1 the tab to show the SQL script (DDL) in the object browser is not working for non-DBA users. In the prior version, these users would see a message about DBMS_METADATA and then the message would indicate that an "internal generator" would be used to generate the DDL script. After that brief message the DDL would show up as expected. This doesn't seem to be the case in the newest version.
    I issued the following two grants to a particular user which worked, but I am reluctant to issue the grants to "PUBLIC".
    SQL> grant execute on DBMS_METADATA to XXXXX;
    SQL> grant select_catalog_role to XXXXX;
    So, my questions are:
    1) Will the old functionality (that didn't require these privileges) be added to V2 at some point?
    2) What security implications are there for issueing the above grants to PUBLIC?
    NOTE: After granting execute on the DBMS_METADATA package, it still didn't work. I left that grant in place and granted SELECT_CATAOG_ROLE, so I can't say for sure that the 1st grant was required.
    Edited by: user615070 on Nov 19, 2009 9:30 AM
    Edited by: user615070 on Nov 19, 2009 10:06 AM

    An OEM account is separate from the database account. You need to use OEM UI to create an OEM account, however, for certain tasks to be done in the databases which OEM is monitoring they will also require separate database accounts within those databases. For example, to view the performance tab in OEM UI, a database account is required.
    OEM only has two types of users, i.e. Super Administrator and Administrator, but don't go by the names. You can grant an OEM 'Administrator' account access to specific targets and what they can do within OEM, such as only viewing reports, targets, and so on. For access within a database, the user created need not be a DBA either.
    I hope you understand.

  • SCOM reports not working, with execute permission denied error.

    Operations manager 2012 R2,
    some reports stopped working. Then i open report and click "add object" or "add group" i get error:
    Note:  The following information was gathered when the operation was attempted.  The
    information may appear cryptic but provides context for the error.  The application will continue to run.
    The EXECUTE permission was denied on the object 'ManagedEntityTypeGetBySystemName', database
    'OperationsManagerDW', schema 'dbo'.
    In SQL  there is EXECUTE permission on object 'ManagedEntityTypeGetBySystemName'
    Reports which not required to specify object or groups are working as expected.
    what esle can be wrong ?

    Hi,
    Please refer to the blog below. It tell us how to grant permission to objects.
    http://www.ndoubleor.com/the-execute-permission-was-denied-on-the-object-database-schema-dbo/11/2009/
    Important Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Juke Chou
    TechNet Community Support

Maybe you are looking for

  • HT4759 How do I install iCloud for Wndows 7, 64 bit?

    I keep getting and error message looking for icloud64.msi.  From whence do I get this?

  • 0Material---Leading Zeros

    Hi,   I have a problem regarding 0Material. We want lo populate leading zeros for 0Material in the ODS i.e for Mat No. 9999999999 we wanna see 000000009999999999. Inorder to that I have written update routine where I used FM CONVERSION_EXIT_ALPHA_INP

  • Network connectioncould not be made/error in Itunes Store

    I am using Windows Vista (Home Premium Service Pask 1), IE7, Itunes 8, Norton IS 2009 (version 16.02.07, Belkin wirelsess modem. I can connect to the Itunes Store and search for music but when I try to buy a track the error message says that the requ

  • Project Contracts Access

    In the Contract Organizer, how do I gain access to contracts created by other users?

  • Anwenderva​riablen mit Überlänge

    Hallo und Servus Zusammen. Ich Poste hier weil ich in Diadem auf ein Problem gestoßen bin bei dem Ihr mir hoffentlich helfen könnt. Es geht um folgendes, ich möchte in Diadem in der Anwendervariablen Datei (vas) mehrere Aufzählvariablen mit mehr als