I need help with an SSRS report deployed to localhost that uses an ODBC data source to retrieve data from an excel file. When the same report is viewed through BIDS 2008, it displays the results as expected. But after deploying the report to the report server on the same computer (localhost) where BIDS is running, it gives the following error.
ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException :, Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Unable to create a connection to the dsInvoice data source. ---> System.Data.Odbc.OdbcException: ERROR [IM002] [Microsoft] [ODBC Driver Manager] Data source name not found, and default pointer not specified
I tried using a common data source as well as a custom data source, but both of them did not work. When I looked for this error, he mentioned that I need to use the 32-bit ODBC admin tool in% windir% \ SysWOW64 \ odbcad32.exe , and that what I use, but which also doesn’t work. I am an administrator on a local machine.
Below is some information about the machine:
- Windows 7 64 bit
- SQL Server 2008 R2
- Office 2010 32 bit
Steps to reproduce the error:
Create a Microsoft Excel user driver - Test_Excel_Driver - under % windir% \ SysWOW64 \ odbcad32.exe
Create an SSRS report using BIDS 2008 and select the data source as an embedded ODBC connection with the following connection string: Dsn = Test_Excel_Driver; dbq = C: ... \ Test Excel.xlsx; defaultdir = C: ... \; driverid = 1046; fil = excel 12.0; maxbuffersize = 2048; pagetimeout = 5
Report preview in BIDS - works great!
Deploy the report to the SSRS Report Server on the local host with full permissions. Click the report in the report manager and get the above error.
source share