Solved

Excel as a SSRS 2005 data source

Posted on 2011-02-25
3
1,193 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

13 Experts available now in Live!

Get 1:1 Help Now