Querying Excel file in Report Builder 3.0

I set up an ODBC connection in Report Builder 3.0, connected to my Excel sheet as my data source, and I can set up a data set that queries one sheet at a time fine. But can I join two sheets in a data set query? I always get "Syntax error in FROM
clause." I thought I could use basic SQL syntax in the query and it would be fine. Is there a certain syntax or trick, or can this just not be done?

Hi (datasci),
You can create a linked server in SSMS, then create a procedure to join three sheets. Then you can call the procedure in a dataset.
As we tested in our environment, we create a linked server and the procedure like below:
--linked server
EXEC sp_addlinkedserver
@server = 'ExcelServer',
@srvproduct = 'Excel',
@provider = 'Microsoft.ACE.OLEDB.12.0',
@datasrc = 'c:\Book3.xls.xlsx', -- the path in the server where SQL server locates
@provstr = 'Excel 12.0;IMEX=1;HDR=YES;'
EXEC sp_addlinkedsrvlogin 'ExcelServer', 'false'--, 'sa', 'Admin', null
go
--procedure
CREATE PROC proce2
as
SELECT a.Name,a.Amount,b.PtNo,b.value,c.Gender
FROM ExcelServer...[Sheet1$] as a
left join ExcelServer...[Sheet2$] as b on a.Name =b.Name
left join ExcelServer...[Sheet3$] as c on c.PtNo =b.PtNo
Then we call the procedure in the dataset, we get the expected result:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • Attaching a text/pdf file in report builder

    i have develop account package for that i want to attach a text file in report builder. each account have its seprate text file.should it is possible? How?
    please give me reply on [email protected]
    thank you
    Message was edited by:
    user561602

    Hi (datasci),
    You can create a linked server in SSMS, then create a procedure to join three sheets. Then you can call the procedure in a dataset.
    As we tested in our environment, we create a linked server and the procedure like below:
    --linked server
    EXEC sp_addlinkedserver
    @server = 'ExcelServer',
    @srvproduct = 'Excel',
    @provider = 'Microsoft.ACE.OLEDB.12.0',
    @datasrc = 'c:\Book3.xls.xlsx', -- the path in the server where SQL server locates
    @provstr = 'Excel 12.0;IMEX=1;HDR=YES;'
    EXEC sp_addlinkedsrvlogin 'ExcelServer', 'false'--, 'sa', 'Admin', null
    go
    --procedure
    CREATE PROC proce2
    as
    SELECT a.Name,a.Amount,b.PtNo,b.value,c.Gender
    FROM ExcelServer...[Sheet1$] as a
    left join ExcelServer...[Sheet2$] as b on a.Name =b.Name
    left join ExcelServer...[Sheet3$] as c on c.PtNo =b.PtNo
    Then we call the procedure in the dataset, we get the expected result:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Problem writing to excel file using report generation toolkit

    hello everyone, i have this report generation toolkit... and i want to output DAQmx Analog I/P data on to an excel sheet. the DAQmx is programmed to collect 
    data at 3samples/sec. however, when i see the excel file that Report Generation Toolkit generates, the time stamp is updated every second instead of every 0.33sec. 
    can anyone please help me?  i am using the MS Office Report Express VI. 
    Now on LabVIEW 10.0 on Win7

    @All, I got rid of the express VI, decided to work on the custom low level VIs instead. however, i have a new problem now... 
    I have a case statement wherein, the user selects if he wants to start generating a report. once the program enters tat loop, the program speed reduces! 
    can anyone please tell me why is it happening? i ahve attached the vi... also another question.. in this VI, i am capturing the unwanted data into the graph as I am indexin the graph input. how can i make a logic 
    that the graph captures the data only when I am switching the CREATE REPORT button (which is in the while loop). is there a way that I can append the data to the graph without creating a new graph every iteration? please let me know
    thanks
    Now on LabVIEW 10.0 on Win7
    Attachments:
    Untitled 7.vi ‏75 KB
    Untitled 7.JPG ‏99 KB

  • Report Builder 1.0 .RDL Files on Report Builder 3.0

    My group has developed a lot of .rdl files using Report Builder 1.0 over the years and we're finally upgrading to Report Builder 3.0 with SQL Server 2014.  Will our old .rdl files still work on the new version?

    Hi ericvanburen,
    According to your description, you want to know if the .rdl file created in Report Builder 1.0 can be available in Report Builder 3.0. Right?
    Report Builder 3.0 is used to create reports in a familiar, Microsoft Office-like authoring environment. It has backward compatibility. You can customize and update all existing reports, regardless of whether they were created in Report Designer or in the
    previous versions of Report Builder.
    Reference:
    What's New in Report Builder 3.0
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Query not running in report builder 3.0

    hi, i can run my query in mgmt studio (version 2008R2) and within the query designer of report builder 3.0 but it will not run from report builder. i get a generic error message of "an error has occurred during report processing. (rsProcessingAborted)".
    the query uses report parameters and is written with dynamic sql (using a pass-through to oracle). any ideas why the query doesn't execute in report builder ? thanks a bunch,

    Hi KanataPablo,
    According to your description, it seems that you are using linked server to pass value to oracle. Seeing that the query is worked well in Management Studio, you may have the permission to connect to oracle (In this scenario, make sure the users to run the
    query in SSMS and Report Builder are the same user). So this issue can be caused by the user’s permission to connect to report server, the credential of data source and the dynamic query.
    We can add the current user as a Login, then click Properties and navigate to User Mappings page, enable ReportServer and ReportServerTempDB options.
    We can try to type user name and password, and enable “Use as Windows credentials” as the credential used to connect to data source.
    Try with dynamic query:
    ="Select column1, column2 From tableName where ID IN (" + JOIN(Parameters!param1.value, ",") + ")"
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • The Microsoft Access database engine cannot open or write to the file in Report Builder 3.0

    I am trying to build a report in Report Builder 3.0.  I created the Data Source to point to my Excel file and the Data Set.  I drag a couple of fields on to the canvas and then choose Run.  I get the error:  "The Microsoft Access
    database engine cannot open or write to the file.  It is already opened exclusively by another user".  I am using the Excel driver.  Why am I getting this message?  How can I fix this?

    No, now I am getting the error message again.  It is quite long:
    ERROR [HY000] [Microsoft][ODBC Excel Driver] The Microsoft Access database engine cannot open or write to the file '(unknown)'. It is already opened exclusively by another user, or you need permission to view and write its data.
    ERROR [01S00] [Microsoft][ODBC Excel Driver]Invalid connection string attribute Trusted_Connection
    Please help

  • [Forum FAQ] How do I export each group data to separated Excel files in Reporting Services?

    Introduction
    There is a scenario that a report grouped by one field for some reasons, then the users want to export each group data to separated Excel files. By default, we can directly export only one file at a time on report server. Is there a way that we can split
    the report based on the group, then export each report to Excel file?
    Solution
    To achieve this requirement, we can add a parameter with the group values to filter the report based on the group, then create a data-driven subscription for the report which get File name and parameter from the group values.
    In the report, create a parameter named Name which use the Name field as Available Values (supposing the group grouped on Name field).
    Add a filter as below in the corresponding tablix:
    Expression: [Name]
    Operator: =
    Value: [@Name]
    Deploy the report. Then create a data-driven subscription with Windows File Share delivery extension for the report in Report Manager.
    During the data-driven subscription, in the step 3, specify a query that returns the Name field with the values as the group in the report.
    In the step 4 (Specify delivery extension settings for Report Server FileShare), below “File name”option, select “Get the value from the database”, then select Name field.
    Below ‘Render Format’ option, select Excel as the static value.
    In the step 5, we can configure parameter Name “Get the value from the database”, then select Name field. 
    Then specify the subscription execute only one time.
    References:
    Create a Data-Driven Subscription
    Windows File Share Delivery in Reporting Services
    Applies to
    Reporting Services 2005
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How to get data from an existing Excel file using report generation toolkit

    I'm trying to use the Excel Get Data vi from the report generation toolkit, but i can't figure out how to turn a browsable path into the right type for the VI.  I've tried using the New Report.vi, but that doesn't work unless you use a template.  It won't open an existing excel file and make it an open report to pull data from.
    Essentially, i have a bunch of excel files that have data in them and i want to use a VI to analyze the data.  So, i'm trying to pull in all the data directly from the excel file so i don't have to reproscess them all into text so i can use the more standard spreadsheet VIs.  But to even convert the excel file programtically in labview won't i still need to be able to open the excel file and get the data?
    Solved!
    Go to Solution.

    I C.
    Got it,
    the reason why I can view it using my Excel file because its in .CSV.
    I open Microsoft Excel to open .CSV file.
    But you can also open .csv file with notepad.
    So, you cannot open .xls with Read Spreadsheet File
    I learn something everyday
    Best regards,
    Krispiekream

  • Ver3.0 rdf files in Report Builder 6.0

    Here's a unique problem I have reports 3 files. I want to run these rdf files in ver 6 and email the user pdf or sent it to print queue. I used rwrun60 with various arguments like userid, DESTYPE, DESNAME,DESFORMAT .....
    When I look at .pdf or .ps file I am getting all jumbled except for last page.
    Please Help!!!

    Hi ericvanburen,
    According to your description, you want to know if the .rdl file created in Report Builder 1.0 can be available in Report Builder 3.0. Right?
    Report Builder 3.0 is used to create reports in a familiar, Microsoft Office-like authoring environment. It has backward compatibility. You can customize and update all existing reports, regardless of whether they were created in Report Designer or in the
    previous versions of Report Builder.
    Reference:
    What's New in Report Builder 3.0
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Inserting a two page TIFF file into Report Builder 10.1.2.2.0

    Hello all!
    I am trying to create a report which uses a pre-printed form. I went to the paper layout view and inserted my TIFF file, however only the first page is used. This is a two page file. How can I use both pages in my report?
    Thanks!

    Can you open any other rdf?
    We had quite a few crashes with the Report Builder on Windows 7, especially when using graphs in rdfs. Setting the compatibility of the shortcut to "Windows Vista" solved most of our problems.
    Regards
    Markus

  • Generating .pdf file from Reports Builder 10g

    Hi,
    I made a report in Reports Builder 10g and every label and field I set, but when I print the report throw reports builder field are displaced randomly, i.e. they are not where I set them in paper layout. In print preview everything is OK, but when I print it everything(fields) is in the mess. Please help.

    APEX doesn't output PDF natively, so you have to use an external report server for this. There's a link on apex.oracle.com entitled PDF Printing that discusses the options.
    Tyler Muth
    http://tylermuth.wordpress.com
    [Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book]

  • Excel Layout by Report Builder 6i

    Hi All,
    I am getting blank lines in the excel output of my report. Three blank lines
    are coming together and are repeating after every 40 rows in the excel sheet.
    Can somebody please guide me over this...??

    That should be because one of your frame (main or repeating or any field) will be of fixed elasticity both vertical and horizontal.
    Make all the fields,frames elasticity to variable (both vertical and horizontal) and then compile and run the report again and check the output.
    Also compress the frames,field size in the layout model and make it smaller and compressed.

  • Concatenate results SQL query and CASE use Report Builder Reporting Services

    I need to concatenate the results from a SQL query that is using CASE.  The query is listed below.  I do not need permitsubtype but I need to concatenate the results from the permittype. 
    I tried deleting the permitsubtype query and it would not run correctly.  Please see the query and diagram below.  Any help is appreciated.
    select  PERMIT_NO
    ,(case when
      ISNULL(PERMITTYPE,'') = ''
      then 'Unassigned'
      else (select LTRIM(RTRIM(PERMITTYPE)))
      END) AS PERMITTYPE
    ,(case when
      ISNULL(PERMITSUBTYPE,'') = ''
      then 'Unassigned'
      else (select LTRIM(RTRIM(PERMITSUBTYPE)))
      END) AS PERMITSUBTYPE
     ,ISSUED
     ,APPLIED
     ,STATUS 
     ,SITE_ADDR 
     ,SITE_APN
     ,SITE_SUBDIVISION
     ,OWNER_NAME
     ,CONTRACTOR_NAME
     ,ISNULL(JOBVALUE,0) AS JOBVALUE
     ,FEES_CHARGED
     ,FEES_PAID
    ,BLDG_SF
    from Permit_Main
    where ISSUED between @FromDate and @ToDate

    Hi KittyCat101,
    As per my understanding, you used case when statement in the query, you do not need to display permitsubtype in the report, but when you tried to delete permitsubtype from the query, it could not run correctly. In order to improve the efficiency of troubleshooting,
    I need to ask several questions:
    “I tried deleting the permitsubtype query and it would not run correctly.” As we can see, it has no effect to delete permitsubtype from the query you provided, could you please provide complete sql query for the report?
    Could you please provide detailed information about the report? I would be appreciated it if you could provide sample data and screenshot of the report.
    Please provide some more detailed information of your requirements.
    This may be a lot of information to ask for at one time. However, by collecting this information now, it will help us move more quickly toward a solution.
    Thanks,
    Wendy Fu

  • CF Report Builder and Excel format

    Hi Everyone,
    I was trying to display a report in excel format in report builder. It shows the data, but I do not find the print button options, whereas I can see it with other formats. Is this the way it is, or do I need to format anything more within my report for showing up the print button option?This is only happening for excel format
    Thanks

    Hi Keiko,
    Yes, CF Report builder is new and initially there was few
    issues with this. But I guess now it's good after hotfixes.
    Well, I am using CF Report Builder. It's good for me. You can
    also design and develop complex reports, that depends upon the
    query you are writing. You can also add subreports to your main
    reports.
    Mainly CF Report is platform independent and you can also
    generate reports in PDF, EXCEL and FlashPaper.
    Crystal Report is no doubt is very good, and it's there for
    long years. I agree you can create complex reports with this, but
    you also can do the same in CF also. You are using this for last 10
    years, so I guess you should try something new and that is CF
    Report Builder and you can judge then.
    I am sure you will have fun with CF.
    Thanks
    Sankalan
    (www.mindfiresolutions.com)

  • Saving report in Report Builder 10.1.2. saves only half of file

    Hi,
    I have problems with saving files in Report Builder 10.1.2. After saving a rdf-file it shows only half the size of the original file.
    When closing the report in Builder and opening it again it won't open. Also the temp-file is half the size of the original rdf-file during saving.
    Can someone help me to solve this? Auto-save in Preferences is turned off. Have tried to open and save files on the network and on the local pc.

    Hi,
    Did you used OUTER join?? if you have any suitable Outer join according to my understanding query should return Assignment data but with NULL value, then you can replace as you need it in Reports.
    Regards,
    Syed

Maybe you are looking for

  • Problems Downloading Video

    I have all of my data on a network drive, and when I purchase video through the iTunes Music store it won't download... keeps saying "There was an error downloading your purchased music. The disk could not be read from or written to. Use the Check fo

  • Cannot copy and paste a slideshow- and what is an Album?

    I have created a slideshow in a folder called MISC. I think it is a "slideshow" because the icon looks like a 35mm slide. I want to copy this slide show and move it to a folder called 2007. No matter what I do, I cannot copy and paste it. Once a slid

  • Can't log in after install upgrade to mac os x 10.6.8.

    I can't log in to my admn acct. after install the upgrade to mac os x 10.6.8.  I can use guest account and create other users with admn privileges, but when I try to log in to my user acct. the system apparently accepts but while the desktop is loadi

  • My Iphone 4 is not working!?!?!

    So my sister gave me her old IPhone 4 for me to use, she told me it has a broken home button which i'm aware of. But whenever I try to charge the phone, I see the red battery bar for about 10 minutes, then the phone turns on, after the phone turns on

  • Asset Account numbering

    Dear All Is it possible to create number range for an asset that we need to use in the GR , for eg say i m buying DELL Computer  so should i create the 10 masters for the same .