SQL Report Builder 3.0 Automatic Scheduling feature ?

Hello All,
We have installed and commissioned a HMI SCADA solution for Shell Petroleum South Africa, We are using Copa Data Zenon for our HMI solution, Zenon's historian are writing variable values into a SQL database from where we are reading these variables with
I-net Clear Reports. 
However, I net  Clear Reports uses a "PLUS" license which is used for the scheduling function. The license is priced based on the amount of CPU Cores the server has and ours has 16 cores so the license is extremely expensive.
What we need :
To create a report with values from a SQL Database.
Report must be able to be scheduled, to run at specific time.
I have done some testing and used the same SQL queries we used in I-net clear reports.
SQL Report Builder 3.0 does get the variable values when you hit "run" , but it does not look like there is an automatic report scheduling function ? We want to execute a daily , weekly & monthly report.
Does a Scheduling feature exist ?? Please advise
I would highly appreciate your assistance.
Regards.
Paul  
Automation Engineer

Hello,
Report Builder 3.0 is just a report authoring tool.You can design and preview the report with Report Builder,or you can publish your report to a report server or a report server in SharePoint integrated mode, where others can run it. There is no schedule
running function in Report Builder which can processing the report automatically.
SQL Server Reporting Services Standard edition or high edition support email and file share subscriptions and scheduling. You can create subscriptions that can automatic running the report based on a schedule(daily , weekly or monthly ) and send reports
to a shared folder or to an e-mail address.
Reference:Subscriptions and Delivery (Reporting Services)
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support

Similar Messages

  • SQL Report Builder

    I have an application that uses SQL Report Builder to edit templates.  When I go to add a dataset to add a custom field to the report, I get a permissions error (screenshot Error).  When I check the credentials for the shared datasource, they are
    all grayed out, so I can’t verify the credentials being used (screenshot Error 2).  According to SQL Management Studio, the user credentials have the right permissions.  The weird thing is, I can access the datasets and shared datasource embedded
    in the report just fine.  I just get a permissions error whenever trying to create a new dataset.

    Please provide specifics on the differences (an example please). Things like formatting of dates are very likely to show differently.
    Thanks,

  • SQL Report Builder Query

    Hi
    I've just started using SQL Report Builder to try and design some reports for work but have come across an issue, basically the report focuses on 2014 by displaying sales items by debtor,
    qty and value, however when another year is added and the report re-run the report does not include all of the debtors sold to in both years, only the debtors sold to in 2014.
    We use SQL Server 2008
    Thanks in advance for your help

    Hi Paullo15,
    According to your description, you can't get all expected records after your add a year in your report. Right?
    In this scenario, we want to know how you add this year in your report. We suggest you re-execute your query in SSMS and Query Designer to see if they can return same proper records. Also we need to know how you design the report. We suggest you use table/matrix
    to render the data.
    Please share some screenshots about the report design, report preview and quert result if possible. Thank you.
    Best Regards,
    Simon Hou

  • SCSM 2012 - Reporting on Service Level Breached Incidents in SQL Report Builder

    Is anyone clever enough to provide the SQL code required for me to run a report showing the id, title, target end date, and support group for any active incident that has breached its SLA?
    I want to run this report automatically each morning and email it but just can't work out the SQL code

    This is an example of a SLO report that I came up with.  I am sure you can adapt it for your use.  It get SLO information on Service Requests.  It's a daily report that brings back both worker and support group information.
    BEGIN
    DECLARE @Now AS SMALLDATETIME;
    DECLARE @TBL_ServiceRequests AS TABLE (
    SLOtarget SMALLDATETIME,
    SLOwarning SMALLDATETIME,
    AssignedTo NVARCHAR(50),
    SupportGroup NVARCHAR(50));
    BEGIN
    INSERT INTO @TBL_ServiceRequests
    SELECT
    SLO.TargetEndDate_4F17E5C2_86D5_05E8_35DE_6E012567DAB7,
    SLO.TargetWarningDate_B98D2C5F_CBA2_8DB9_CA33_E0F808A9801E,
    UD.DisplayName,
    SR_Group.ServiceRequestSupportGroupValue
    FROM DBO.ServiceRequestDim AS SR
    INNER JOIN DBO.ServiceRequestSupportGroup AS SR_Group
    ON SR.SupportGroup_ServiceRequestSupportGroupId = SR_Group.ServiceRequestSupportGroupId
    LEFT OUTER JOIN {'CMDB'}.ServiceManager.dbo.MT_System$WorkItem$ServiceRequest AS PrimarySR
    ON SR.BaseManagedEntityId = PrimarySR.BaseManagedEntityID
    LEFT OUTER JOIN {'CMDB'}.ServiceManager.dbo.Relationship as Relationship
    ON PrimarySR.BaseManagedEntityID = Relationship.SourceEntityID
    LEFT OUTER JOIN {'CMDB'}.ServiceManager.dbo.RelationshipType as RelationshipType
    ON Relationship.RelationshipTypeID = RelationshipType.RelationshipTypeID
    LEFT OUTER JOIN {'CMDB'}.ServiceManager.dbo.MT_System$SLA$Instance$TimeInformation as SLO
    ON SLO.BaseManagedEntityID = Relationship.TargetEntityID
    LEFT OUTER JOIN DBO.WorkItemDim AS WR
    ON SR.BaseManagedEntityId = WR.BaseManagedEntityId
    LEFT OUTER JOIN DBO.WorkItemAssignedToUserFactvw AS ASTO
    ON WR.WorkItemDimKey = ASTO.WorkItemDimKey
    LEFT OUTER JOIN DBO.UserDim AS UD
    ON ASTO.WorkItemAssignedToUser_UserDimKey = UD.UserDimKey
    WHERE
    SR.SupportGroup_ServiceRequestSupportGroupId IN ({'Your Support Group Ids'})
    AND
    SR.Status_ServiceRequestStatusId IN (7,8,9)
    AND
    SR.IsDeleted = 0
    AND
    RelationshipType.RelationshipTypeName = 'System.WorkItemHasSLAInstanceInformation' ;
    END
    BEGIN
    SELECT @Now = CAST(CURRENT_TIMESTAMP AS SMALLDATETIME);
    SELECT
    [@TBL_ServiceRequests].AssignedTo as [Assigned To],
    COUNT(*) AS [Open],
    SUM(
    CASE
    WHEN [@TBL_ServiceRequests].[SLOtarget] > @Now THEN 1 ELSE 0
    END
    ) AS [On Time],
    SUM(
    CASE
    WHEN @Now BETWEEN [@TBL_ServiceRequests].[SLOwarning] AND [@TBL_ServiceRequests].[SLOtarget] THEN 1 ELSE 0
    END
    ) AS [Near Overdue],
    SUM(
    CASE
    WHEN [@TBL_ServiceRequests].[SLOtarget] < @Now THEN 1 ELSE 0
    END
    ) AS [Overdue]
    FROM @TBL_ServiceRequests
    WHERE [@TBL_ServiceRequests].[AssignedTo] IS NOT NULL
    GROUP BY [AssignedTo]
    UNION ALL
    SELECT
    [@TBL_ServiceRequests].[SupportGroup] + ' Assigned',
    COUNT(*),
    SUM(
    CASE
    WHEN [@TBL_ServiceRequests].[SLOtarget] > @Now THEN 1 ELSE 0
    END
    ) AS [On Time],
    SUM(
    CASE
    WHEN @Now BETWEEN [@TBL_ServiceRequests].[SLOwarning] AND [@TBL_ServiceRequests].[SLOtarget] THEN 1 ELSE 0
    END
    ) AS [Near Overdue],
    SUM(
    CASE
    WHEN [@TBL_ServiceRequests].[SLOtarget] < @Now THEN 1 ELSE 0
    END
    ) AS [Overdue]
    FROM @TBL_ServiceRequests
    WHERE [@TBL_ServiceRequests].[AssignedTo] IS NOT NULL
    GROUP BY [@TBL_ServiceRequests].SupportGroup
    UNION ALL
    SELECT
    [@TBL_ServiceRequests].[SupportGroup] + ' Unassigned',
    COUNT(*),
    SUM(
    CASE
    WHEN [@TBL_ServiceRequests].[SLOtarget] > @Now THEN 1 ELSE 0
    END
    ) AS [On Time],
    SUM(
    CASE
    WHEN @Now BETWEEN [@TBL_ServiceRequests].[SLOwarning] AND [@TBL_ServiceRequests].[SLOtarget] THEN 1 ELSE 0
    END
    ) AS [Near Overdue],
    SUM(
    CASE
    WHEN [@TBL_ServiceRequests].[SLOtarget] < @Now THEN 1 ELSE 0
    END
    ) AS [Overdue]
    FROM @TBL_ServiceRequests
    WHERE [@TBL_ServiceRequests].[AssignedTo] IS NULL
    GROUP BY [@TBL_ServiceRequests].SupportGroup
    END
    END

  • How do I apply filters or limit the rows on my report using a Date field in SQL report builder 3.0?

    I have a status of completed and a date field in the dataset. The date field is either empty or contains a date. All 2015 dates are holding dates.
    So how can I limit the report to only pull completed status with an empty date or a holding date?
    I have not been able to set an OR option on a date field filter and if I add two filters on the date column one for empty one for > 12/31/2014 then it treats it as an "and" and pulls nothing from the list I have in sharepoint.
    any help will be appreciated.

    Hi MB,
    In Reporting Services, the relationship of  filters is “And”, and there is no option to change the relationship from “And” to “Or”. While we can use “or” operator within the expression to create one filter to integrated all filters to work around this
    issue.
    We can add a filter as follows in the dataset to limit the rows in your report:
    Expression: =Fields!date.Value is nothing or Fields!date.Value>"12/31/2014"    Type: Boolean
    Operator: =
    Value: true
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • SQL Server Report Builder Hyperlink Column Not Click-able?

    I have a report with a hyperlink column that works in SQL Report Builder 3.0 desktop, but not on the website where it's shown.
    1. 'Website_Domain' field is the shortened URL (domain) is the
    text seen in the Report column
         (technet.microsoft.com)
    2. 'Website_Url' field is the full length URL which is used in the
    'Go to URL' properties
         (http://technet.microsoft.com/en-us/library/ms159106.aspx)
    ['Website Link' Expression]
    =Fields!Website_Domain.Value
    ['Website Link' Column Properties]
    Action = Go to URL
    Selected URL: [Website_Url]

    Hi pointeman,
    I have tried your scenario on my test environment, but the issue was not reproduced. Please take the following steps as a reference:
    Insert Website_Domain field in the detail row, then type the table header with “Website Link”.
    Right-click the cell which contains [Website_Domain] to open Text Box Properties dialog box.
    Click “Action” in the left pane, select “Go to URL” option with [Website_Url] as “Select URL”. 
    The following screenshot is for your reference:
    If the issue still persists, could you please supply more information about the issue? Such as steps you have taken to add the URL or other else. If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Coldfusion and SQL reporting service 2005?

    Ive been searching google for hours with no clear answer. How
    can you use coldfusion to pull in an sql report from reporting
    service? Via a web service or wsdl i assume, but how?

    Anwar,
    It's important to get the terms right here.
    SQL Reporting Services is not the same as SQL Server Reporting Services (SSRS).
    SQL Reporting Services refers to an Azure service that lets users develop reports in the cloud. However, it is being retired in Oct. 2014, so you'll want to stay away from that.
    SQL Server Reporting Services (SSRS) is the reporting module that is part of SQL Server. This is a sophisticated tool that lets developers create and publish reports that users can access through various methods. It has schedule and refresh capabilities,
    and can leverage SQL Server Analysis Services (SSAS) and SQL Server Integration Services (SSIS). You'd most likely use SSRS if you're creating sophisticated reports and queries that you don't want your users creating.
    SQL Report Builder is a report creation tool designed for users who want to stay in Microsoft Office. It can be used by developers or end users. 
    http://technet.microsoft.com/en-us/library/dd220460.aspx
    Both environments let you create reports that can be shared (published) on a report server or through SharePoint.
    So it's really a matter of what you're most comfortable using.
    Hope that helps.

  • Report Builder 1.0 for SQL Server Reporting Services 2008 R2

    We are trying to implement Ad-Hoc Reporting using SSRS 2008 R2.
    First of all, it is very unhelpful that all SSRS books are for either 2008 or 2012, even though SSRS has major changes in 2008 R2 compared to 2008.
    Our instructional materials indicate that we should build Report Models to abstract out our databases into terms familiar to our business users.
    The problem we are having is the difference in functionality between Report Builder 1.0 and Report Builder 3.0. Report Builder 3.0 is touted as having the modern, ribbon based interface that is supposed to make end-users feel more comfortable.  However,
    all the documentation says that end users are supposed to use Report Builder 1.0 for Ad-Hoc Reporting.  And, it seems, that the reports generated by Report Builder 1.0 are not round-trip compatible with all the other reporting tools for SSRS 2008 R2.
    The documentation we have illustrates that Report Builder 1.0 is nice for Ad-Hoc reporting, because is based on connecting directly to Report Models, and the end users can directly drag-and-drop entities and fields into their reports.
    When we try working with Report Builder 3.0, it seems we must first connect to the Report Model as a Data Source and then build a Dataset query on the Report Model.  Only then are some entity attributes available to be dropped into the report. 
    If the user decides another source column is needed, they have to go back, edit the query, save the query, and then drag the column from the Dataset to the report.  This does not seem end user friendly at all!
    We are also concerned that if we train our users on the seemingly soon-to-be-obsolete Report Builder 1.0, and get them used to having direct Report Model access, that at some point we will have to move them to the Dataset-interrupted approach of Report Builder
    2+.  Highlighting this perception of impending obsolescence of Report Builder 1.0 is that in our shop that is starting with SSRS 2008 R2, we cannot figure out how to get a copy of Report Builder 1.0 in the first place.
    We just don't see our end users being savvy enough to handle the steps involved with creating Datasets on top of Report Model Data Sources.  So we would have to build the Datasets for them.  But in that case, what point is there in creating any
    Report Models in the first place if DBAs are the ones to make Datasets?
    As such, it is hard to envision a forward-looking SSRS implementation that has the end user ease-of-use Ad-Hoc reporting that the SSRS 2008 documentation presents.
    What is it that Microsoft actually wants/expects SSRS implementers to do?
    Dan Jameson
    Manager SQL Server DBA
    CureSearch for Children's Cancer
    http://www.CureSearch.org

    Hi Dan,
    Report Builder 1.0
    Simple template-based reports
    Requires report model
    Supports only SQL Server, Oracle, and Analysis Services as data sources
    Supports RDL 2005
    Bundled in SSRS
    Report Builder 2.0 or later
    Full-featured reports as the BIDS Report Designer
    Doesn't require (but supports) report models
    Supports any data source
    Supports RDL 2008
    Available as a separate web download
    In your scenario, you want to use Report Builder 1.0 in SQL Server Reporting Services 2008 R2, I am afraid this cannot achieve. Report Builder 1.0 is available in the box in either SQL 2005 or SQL 2008. It is not available as a separate client apps and is
    only available as a click once application.
    Report Builder 1.0
    Report Builder 3.0
    Thank you for your understanding.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Reporting with Report Builder 3.0 and SQL Server 2008 R2

    Hi everyone
    I'm trying really hard to find books about Report Builder 3.0 or SQL Server 2008 R2
    I found the following books on the "learn" site, sadly they do not cover Report Builder 3.0 or SQL Server 2008 R2 since there all too old.
    Microsoft® SQL Server® 2008 Analysis Services Step by Step
    Microsoft® SQL Server® 2008 MDX Step by Step
    Microsoft® SQL Server® 2008 Reporting Services Step by Step
    What are good books (like the ones above) for the newest system?

    Hello wishmasterIN,
    Thank you to post your question on TechNet forum.
    Based on my experience, the books are always delayed to the new technology, since the author need time to summarize and analyze the new features in the new product or technology, write it down and publish it. If you want to have a quick learning about the
    new technology, MSDN library is a good place. It can be a cookbook for you. It contains some detail steps for tools, such as Report Builder or BIDS. It also contains many new features introduction. It is always very useful for you to understand the new features.
    In addition, it is based on web and many links make you can jump to the other technical point freely. The most important is all of these is free and all the information will be updated if the new feature is released.
    In short, if you want to learn the latest technology about Microsoft product, MSDN is a good choice. I hope my introduction is helpful to you.
    Regards,
    Edward
    Edward Zhu
    TechNet Community Support

  • Converting cursor to ref cursor in Report builder pl/sql

    Hi,
    I am trying to use dynamic sql in My report 's pl/sql code.
    I can not use execute Immediate statement since this feature is not suppoerted at client side and i am doing the coding In my local mchine and running the report loaclly.......???
    Another way to use dynamic sql is by using dbms_sql package.
    Using dbms_sql to run a sql will give me a normal cursor as an output.
    Since in report builder pl/sql only ref cursor is allowed as a return type from a function........the problem i m facing is conversion of the cursor to ref cursor......
    in oracle 11g we have a built in function in dbms_sql package that can be used for the conversion....
    i m using oracle 10 g where the above mentioned feature is not available............
    Please give some way to resolve this issue............!!!!!!!!!!!!
    Thanks in Advance.....!!!!!!!
    Abhishant

    You may use some stored procedures that will take full advantage of dynamic SQL. Make a stored proc that inserts rows in a global temporary table. You will call that stored proc in the afterpform trigger. And you will have the report querry select from the temporary table populated by the stored proc.
    I did some things like that.
    HTH

  • SSRS 2013 Native Mode - Cannot See Report Builder Button after Installing on my Desktop Computer - SQL Server Express

    I have installed SQL Server Express 2013 on my home PC, which runs Windows 7.  I used the advanced installation, which includes Reporting Services.  The install seemed to go okay but when I open SSRS, I cannot see the Report Builder button on the
    screen.  I have spent a lot of time trying to figure this out, including installing and reinstalling the program.  I am not sure what I am doing wrong.  Also, I cannot connect to the report server through SQL Server Management Studio.
    If anyone has any straightforward assistance, it would be greatly appreciated.  I have spent a lot of time looking for answers.  In the meanwhile I'll continue seeing if I can get this to work.

    Hello,
    See
    Features Supported by Reporting Services in SQL Server Express => Unsupported Features:
    Ad hoc reporting through semantic models and Report Builder is not supported.
    But you can try to install & use the Report Builder as stand-alone Installation; you can get it here:
    Microsoft® SQL Server® 2012 Report Builder
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Saving scheduled report to a file, automatically?

    We have a couple of reports that run on scheduler and get e-mailed out to users.
    However, we also want to save the reports, when they run on scheduler, to a drive on the network (this is easily mappable). Right now we do this manually but would like done automatically.
    What is the mechanism?
    All helpful answers will be marked.
    Thanks.

    If you are already bursting your reports using scheduling option then you can add to your bursting criteria
    a UNION with the SQL that provides all the information to deliver it TO a FILE.
    regards
    Jorge
    p.s If this answers your question then please mark my answer as *"Correct"* or *"Helpful"*

  • Open source user friendly SQL Qyery+Report Builder

    hi guys
    Please help me find any link from where i can download OpenSource user friendly SQL Qyery+Report Builder
    thanks

    One would hope it was!
    it is not possible to give everything that the OP may request. The closest match, now that is workable.

  • SQL Server 2008 R2 - Report Builder 3.0 - timeout using shared data source and stored procedure

    I select the shared datasource from the data source propeties dialog, test the connection and everything is good.
    I add a dataset by selecting "use a dataset embedded in my report" option within the Dataset properties dialog.
    I select the newly added data source, click the "Stored procedure" query type and drop down the list box and select my intended stored procedure.
    the timeout for the dataset is "0" seconds.
    I click the "OK" button and I'm presented with the parameters to the stored procedure.
    I enter valid data for the parameters and click the "OK" button.
    I then get the following error message after 30 seconds:
    The problem is, all of the timeouts, that I'm aware of, have values of zero (no timeout) or high enough values that 30 seconds isn't even close to the timeout.
    I think the smallest timeout we have is 120 seconds.
    I have searched this site and many others and the solutions all involve altering the stored procedure to get the fields into report builder and then revert the stored procedure back to its original form.
    To me, this is NOT a solution.  
    I have too many stored procedures that need to be brought into Report Builder.
    I need a real solution.
    Thank you for you time, Tim Caldwell.
    Timothy E Caldwell

    I don't mean to be rude, but really, check to see if the stored procedure can return data rows???
    Maybe I'm not being clear enough.
    The stored procedure runs perfectly fine.
    it runs perfectly fine in the production environment and the test environment.
    I can access the stored procedure in several ways and have it return correct data.
    I can even trick report builder into creating a dataset with parameters and run the stored procedure that way.
    What I cannot do, is to get report builder to not timeout after 30 seconds on the initial creation of a dataset with a Query type of stored procedure.
    I have seen this issues posted again and again and again on may different sites and the "solution" is to simplifiy the stored procedure by creating a stored procedure that has a create table and a select in the stored procedure and that's it.  After
    report builder creates the dataset the developer then has to replace the simplified stored procedure with the actual stored procedure and everything works fine after that.
    HOWEVER, having to go through this process for 70 or more stored procedures is ridiculous.
    It would appear that there is something within report builder itself that is causing this issue.
    The SQL Script included is an example of a stored procedure that will not create fields create a dataset with fields and parameters in Report Builder 3.0:
    USE [CRUM_IT]
    GO
    /****** Object: StoredProcedure [dbo].[COGNOS_Level5ScriptSP] Script Date: 11/17/2014 08:02:26 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER procedure [dbo].[COGNOS_Level5ScriptSP]
    @CompanyCode varchar(8) = null,
    @GetSiblings varchar(1) = 'N'
    as
    Begin
    -- get emergency contact info
    select *
    into #tmp_Contacts
    from
    (select
    ConEEID,
    con.connamelast as [Emer Contact Last Name],
    con.connamefirst as [Emer Contact First Name],
    con.connamemiddle as [Emer Contact Middle Initial/Name]--,
    ,ROW_NUMBER() over (Partition by ConEEID order by ConNameLast)as rn
    ,ISNULL(
    case when con.conphonepreferred = 'H'
    then '(' + substring(con.conphonehomenumber, 1, 3) + ')' + substring(con.conphonehomenumber, 4, 3) + '-' + substring(con.conphonehomenumber, 7, 4)
    else '(' + substring(con.conphoneothernumber , 1, 3) + ')' + substring(con.conphoneothernumber , 4, 3) + '-' + substring(con.conphoneothernumber , 7, 4)
    end,
    ) as [Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.Contacts con
    where con.ConIsEmergencyContact='y'
    and con.ConIsActive='y'
    ) A
    where A.rn = 1
    CREATE TABLE #tmp_CompanyCodes (CompanyCode varchar(8))
    If @GetSiblings = 'Y'
    Begin
    INSERT INTO #tmp_CompanyCodes (CompanyCode)
    EXEC [z_GetClientNumbers_For_ParentOrg_By_ClientNumber] @CompanyCode
    End
    INSERT INTO #tmp_CompanyCodes
    values (@CompanyCode)
    select *
    into #tmp_Company
    from [ultiprosqlprod1].[ultipro_crum].dbo.Company
    where cmpcompanycode in (select CompanyCode from #tmp_CompanyCodes)
    select distinct
    cmpcompanycode as [Client ID],
    CmpCompanyDBAName as [Client Name],
    eec.eecEmplStatus AS [Employment Status],
    eec.eecEmpNo AS [Employee Num],
    rtrim(eep.eepNameLast) AS [Last Name],
    rtrim(eep.eepNameFirst) AS [First Name],
    isnull(rtrim(ltrim(eep.eepNameMiddle)), '') AS [Middle Initial/Name],
    rtrim(eep.eepAddressLine1) AS [Address Line 1],
    isnull(rtrim(eep.eepAddressLine2), '') AS [Address Line 2],
    eep.eepAddressCity AS [City],
    eep.eepAddressState AS [State],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 1, 5)
    ELSE rtrim(eep.eepAddressZipCode)
    END AS [Zip code],
    CASE
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) = 0
    THEN substring(eep.eepAddressZipCode, 6, 4)
    WHEN len(eep.eepAddressZipCode) > 5 and charindex(eep.eepAddressZipCode, '-', 1) > 0
    THEN substring(eep.eepAddressZipCode, charindex(eep.eepAddressZipCode, '-', 1) + 1, 4)
    WHEN len(eep.eepAddressZipCode) <= 5
    THEN ''
    END AS [ZIP + 4],
    substring(eep.eepSSN, 1, 3) + '-' + substring(eep.eepSSN, 4, 2) + '-' + substring(eep.eepSSN, 6, 4) AS [SSN],
    isnull(convert(VARCHAR(10), eep.eepDateOfBirth, 101), '') AS [Date Of Birth],
    eetFED.TAXCODE AS [FED Tax Code],
    eetFED.FILINGSTATUS AS [Fed Filing Status],
    eetFED.EXEMPTIONS AS [Fed Exemption Allowance],
    eetFED.ADDITIONAL AS [Additional Fed Withholding],
    eetSIT.TAXCODE AS [SIT Tax Code],
    eetSIT.FILINGSTATUS AS [State Filing Status],
    eetSIT.EXEMPTIONS AS [State Exemption Allowance],
    eetSIT.ADDITIONAL AS [Additional State Withholding],
    isnull('(' + substring(eep.eepPhoneHomeNumber, 1, 3) + ')' + substring(eep.eepPhoneHomeNumber, 4, 3) + '-' + substring(eep.eepPhoneHomeNumber, 7, 4), '') AS [Home Phone],
    isnull((SELECT cod.codDesc
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.Codes cod WITH (NOLOCK)
    WHERE cod.codCode = eep.eepEthnicID
    AND cod.codDosTable = 'ETHNICCODE'), '') AS [Race-Origin], --eep.eepEthnicID AS [Race-Origin],
    eep.eepGender AS [Gender],
    isnull(convert(VARCHAR(10), eec.eecDateOfOriginalHire, 101), '') AS [Original Hire Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfSeniority, 101), '') AS [Seniority Date],
    isnull(convert(VARCHAR(10), eec.eecDateOfTermination, 101), '') AS [Termination Date],
    isnull(eecTermType,'') as [Termination Type],
    isnull(TchDesc, '') as [Termination Reason],
    rtrim(eec.eecJobCode) AS [WC Code],
    isnull(eec.eecJobTitle, '') AS [Job Title],
    pgr.pgrPayFrequency AS [Pay Frequency],
    eec.eecFullTimeOrPartTime AS [Full/Part Time],
    eec.eecSalaryOrHourly AS [Pay Type],
    isnull(convert(MONEY, eec.eecHourlyPayRate), 0.00) AS [Hourly Rate],
    isnull(eec.eecAnnSalary, 0.00) AS [Annual Salary],
    [YTD Hours],
    isnull(eep.eepNameFormer, '') AS [Maiden Name],
    eec.eecLocation AS [Location ID],
    rtrim(eec.eecOrgLvl1) AS [Department ID],
    eec.eecorglvl2 AS [Cost Item],
    eec.eecorglvl3 as [Client Project],
    eec.eecPayGroup as [Pay Group],
    isnull(eepAddressEMail,' ') as [Email Address],
    isNull(BankName1,' ') as PrimaryBank,
    isNull(BankRoute1,' ') as PrimaryRouteNum,
    isNull(Account1,' ') as PrimaryAccount,
    isNull(AcctType1,' ') as PrimaryAcctType,
    isNull(DepositRule1,' ') as PrimaryDepositRule,
    isNull(BankName2,' ') as SecondaryBank,
    isNull(BankRoute2,' ') as SecondaryRouteNum,
    isNull(Account2,' ') as SecondaryAccount,
    isNull(AcctType2,' ') as SecondaryAcctType,
    isNull(DepositRule2,' ') as SecondaryDepositRule,
    isNull(
    CASE
    WHEN DepositRule2 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct2 AS decimal(10,2)))
    WHEN DepositRule2 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct2*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as SecondaryDepositAmount,
    isNull(BankName3,' ') as ThirdBank,
    isNull(BankRoute3,' ') as ThirdRouteNum,
    isNull(Account3,' ') as ThirdAccount,
    isNull(AcctType3,' ') as ThirdAcctType,
    isNull(DepositRule3,' ') as ThirdDepositRule,
    isNull(
    CASE
    WHEN DepositRule3 = 'D'
    THEN '$' + convert(varchar, cast(EddAmtOrPct3 AS decimal(10,2)))
    WHEN DepositRule3 = 'P'
    THEN convert(varchar, cast((EddAmtOrPct3*100) AS decimal(10,0))) + '%'
    ELSE null
    END,' ') as ThirdDepositAmount,
    Supervisor,
    eec.eecEEID AS [Employee EEID],
    eec.EecJobCode As [Job Code],
    isnull(eec.EecTimeclockID,' ') As [Time Clock ID],
    con.[Emer Contact Last Name],
    con.[Emer Contact First Name],
    con.[Emer Contact Middle Initial/Name],
    con.[Emergency Phone]
    from [ultiprosqlprod1].[ultipro_crum].dbo.empPers eep WITH (NOLOCK)
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.empComp eec WITH (NOLOCK)
    ON eep.eepEEID = eec.eecEEID
    inner join #tmp_Company cmp WITH (NOLOCK)
    ON eec.eecCOID = cmp.cmpCOID
    inner join [ultiprosqlprod1].[ultipro_crum].dbo.PayGroup pgr WITH (NOLOCK)
    ON eec.eecPayGroup = pgr.pgrPayGroup
    left outer join [ultiprosqlprod1].[ultipro_crum].dbo.TrmReasn
    on tchCode = eecTermReason
    left join (select CAST(sum(isnull(eee.eeeYTDHrs,0.00))AS DECIMAL(18,2)) as [YTD Hours],
    eeeEEID,
    eeeCOID
    from [ultiprosqlprod1].[ultipro_crum].dbo.EmpEarn eee with (NOLOCK)
    group by eeeCOID,eeeEEID)eee
    on eec.eecEEID = eee.eeeEEID
    and eec.eecCOID = eee.eeeCOID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode = 'USFIT'
    )eetFED
    ON eec.eecCOID = eetFED.COID
    and eec.eecEEID = eetFED.EEID
    left join (SELECT eetCOID AS COID,
    eetEEID AS EEID,
    eetTaxCode AS TAXCODE,
    eetFilingStatus AS FILINGSTATUS,
    eetExemptions AS EXEMPTIONS,
    eetExtraTaxDollars AS ADDITIONAL
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.empTax WITH (NOLOCK)
    WHERE eetTaxCode like '%SIT'
    AND eetIsWorkInTaxCode = 'Y'
    )eetSIT
    ON eec.eecCOID = eetSIT.COID
    and eec.eecEEID = eetSIT.EEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName1,
    eddEEBankRoute BankRoute1,
    eddAcct Account1,
    EddAcctType AcctType1,
    EddDepositRule DepositRule1,
    EddAmtOrPct EddAmtOrPct1
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '99')edd
    ON eec.eecCOID = edd.eddCOID
    and eec.eecEEID = edd.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName2,
    eddEEBankRoute BankRoute2,
    eddAcct Account2,
    EddAcctType AcctType2,
    EddDepositRule DepositRule2,
    EddAmtOrPct EddAmtOrPct2
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '01')edd2
    ON eec.eecCOID = edd2.eddCOID
    and eec.eecEEID = edd2.eddEEID
    left outer join (SELECT eddCOID,
    eddEEID,
    eddEEBankName BankName3,
    eddEEBankRoute BankRoute3,
    eddAcct Account3,
    EddAcctType AcctType3,
    EddDepositRule DepositRule3,
    EddAmtOrPct EddAmtOrPct3
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpDirDp WITH (NOLOCK)
    WHERE eddSequence = '02')edd3
    ON eec.eecCOID = edd3.eddCOID
    and eec.eecEEID = edd3.eddEEID
    left outer join (SELECT eecCOID,
    eecEEID,
    rtrim(eepNameLast) + ', ' +
    rtrim(eepNameFirst) + ' ' +
    isnull(rtrim(ltrim(eepNameMiddle)), '') AS [Supervisor]
    FROM [ultiprosqlprod1].[ultipro_crum].dbo.EmpComp WITH (NOLOCK)
    join [ultiprosqlprod1].[ultipro_crum].dbo.EmpPers with (NoLock)
    on eeceeid = eepeeid)eec2
    ON eec.eecSupervisorID = eec2.eecEEID
    left outer join #tmp_Contacts con
    on eep.eepEEID = con.ConEEID
    order by [Client ID],
    [Last Name],
    [First Name]
    drop table #tmp_Contacts
    END
    Timothy E Caldwell

  • Need help understanding MS SQL Server 2008R2 and Report Builder 3.0 and user access / priviledges.

    Having Problems with connections and access.  I have spent the last 2 days reading various threads regarding SQL Reporting Services pertaining to access and connections.
    First, let me explain what I have done to date.
    1)  I am using Windows 7 - Home Premium.
    2)  I downloaded and installed MS SQL Server 2008 R2 Express.  This was successful.
    3)  I downloaded Report Server 3.0 - This was successful.
    4)  In IE, I tried logging onto http://servername/reports, but this failed.  After logging into IE
    via ' Run Administrator', I was able to access URL.  
           Next, I updated the security / trust sites as explained in the
    threads
    Next, I went to Folder Setting and added my user name and granted all roles (Browser,
    Content Manager, My
    Reports, Publisher and Report Builder).
    5)  Now, I can log into Http://servername/reports using my normal windows 7 user account.
    6)  Next, I opened Report Builder 3.0.  However, I am having trouble connecting to report  
    server.  I tried connecting with
    http://servername/reports, but this failed. 
           However, If I change URL to http://servername/reportserver, it works.  BUT NOW, I have
    another problem.  When I
    execute the RUN button to create report, I get a  permission
    error.  "PERMISSION GRANTED TO USER ARE
    INSUFFICIENT FOR  PERFORMING THIS OPERATION".
    7)  Finally, I can not save reports to http://servername/reportserver when I select "Recent
    Site and Servers".  ERROR
    MESSAGE:  UNABLE TO OPEN OR SAVE REPORT
    8)  In my Reporting Services Configuration Manager:
    Web URL = http://servername:80/ReportServer
    Report Manager URL = http://servername:80/reports.
                What is strange, the Report Manager URL works for IE URL and WEB URL works for
    Report Builder connect (Even though it really does not work). 
    THREE QUESTIONS:
    1)  What URL should I use to connect in Report Builder.  
    2)  How do I update my normal Windows 7 user so I can run reports when I connect to report
    builder.        
    3)  How can I save my reports so they are displayed in IE Reporting services.  Note:  I was
    able to save report to
    documents folder and import into IE Reporting Services.
    4)  And finally, is it possible to add report builder 3.0 as a tab in my IE Reporting Services.  I
    save seen samples of Reporting Services screens where the instructor has Report Builder
    tab.
    Thanks
    Dan

    To answer question 1... it should connect through /ReportServer
    http://bretstateham.com/reporting-services-architecture-diagram%E2%80%A6/
    Report Builder 3.0 is not a web application, it is a client side application can be used using the click-once or downloaded from Microsoft's website.  If you are having issues, you might download and install it and try running it as an administrator.

Maybe you are looking for

  • Website is no longer working

    My website is no longer working. I use it for ordering online caricatures, and need it up as soon as possible. I do not remember if I have done anything to cause this or if maybe something else. Please help me. I did check and I am current and up to

  • Benefits of using business packages (hr)

    hi all i want to know what are the advantages of using business packages (in terms of HR module).and what sort of BP's are available for this. Thanks And Regards yogesh

  • Is this legitimate?

    I received an email supposedly from Apple about an battery recall for Powerbook G4s. My battery is on the list. But when I go through the Apple site, I can't seem to find the place to complete the recall claim form. I have pasted the email i received

  • How to determine the inbetween months per range?

    Hi All, I have a problem on how to get the "month(s)" of a specific range. here's the scenario.....If a user input 2 months let say 03/2008 and 06/2008. Is there any FM that will determine months inbetween the two months? Please help tnx!! Points wil

  • The Performance issues OF a simple HR report

    hi all,this is a part of my report,and this report always got a runtime error 'time out', it stoped at the function text-split. employee: 5000 records selected bank (GT_BNKA) :2000 records I think that the error occurred because it runs so many times