Solved

Excel as a SSRS 2005 data source

Posted on 2011-02-25
3
1,200 Views
Last Modified: 2012-05-11
I have been asked to set up an automated report to be emailed to management at certain times during the week. I've decided to use SSRS 2005 to do this.

The data source has to be an Excel spreadsheet (i know, I know, not cool, but that's what they want). I set up an Excel system DNS ODBC link on the server that points to a development version of the spreadsheet using the full path name.

In Visual Studio I created a shared data source that doesn't use any credentials. I've written the report using a simple dataset and it works fine within VS2005. I can deploy both the data source and report to the local reporting server without errors.

When I go to run the report from report server I get the following errors:

An error has occurred during report processing.
Cannot create a connection to data source 'orderbook'.
ERROR [HY000] [Microsoft][ODBC Excel Driver] The Microsoft Office 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 [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [HY000] [Microsoft][ODBC Excel Driver] The Microsoft Office 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.

No one has the spreadsheet open. I've even closed VS2005 to make sure. I tried giving the data source network admin credentials, but the report still doesn't run. I have even moved the spreadsheet to be stored locally on the server, but to no avail.

Any pointers would be greatly appreciated.
0
Comment
Question by:t250
  • 2
3 Comments
 
LVL 17

Expert Comment

by:dbaSQL
ID: 34985341
I'm wondering if it is less about the file than it is the datasource itself, given your first error:
Cannot create a connection to data source 'orderbook'.

This user had a similar problem, and resolved it by storing the datasource credentials within the datasource on the report sever:
http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/4f3eafe3-748a-4129-8d94-ba4dc3eda2cb
0
 

Accepted Solution

by:
t250 earned 0 total points
ID: 34996051
Thanks dbaSQL,

I had been added credentials to the data source on the report server, including network admin rights, but it didn't run.

I solved this by using an admin log-in for the ODBC connector as well as storing credentials against the data source and ticked "Use as Windows credentials when connecting to the data source"
0
 

Author Closing Comment

by:t250
ID: 35042276
I can now run the report from the Excel data source
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
spx for moving values to new table 5 70
if and else in stored procedure 19 42
SQL 2005 - Memory Table Column Names 11 69
SQL query to summarize items per month 5 54
This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now