Error exporting SQL Server 2008 R2 database to Excel 2007 - excel

I was trying to export SQL Server 2008 R2 database to Excel 2007. I used the export wizard in SQL Server Management Studio. I used a query to export some columns of a table. I checked the query (saw the result of parsing it) and it was good. But on the REVIEW DATA TYPE MAPPING it showed error notifications. It was converting varchar to LongText. But when I executed the package it failed to run showing fail status for steps like prepare for execute,pre-execute,execute . the error message is like this
Error 0xc002f210: Preparation SQL Task 1: Executing the query "CREATE TABLE Query (
id Long, sku LongText..." failed with the following error: "Unexpected error from external database driver (1309).". Possible failure
reasons: Problems with the query, "ResultSet" property not set
correctly, parameters not set correctly, or connection not established
correctly.
(SQL Server Import and Export Wizard)
Someone has a clue whats wrong?

Not an ideal answer (I have no idea what the cause of this problem is) but I was able to bypass this error by saving the excel sheet to 97-03 format and extracting to that.

Related

Excel 365 How to run an Oracle Stored Procedure from Get Data

I am having a problem working out how to run an Oracle Stored Proc from Excel's:-
Get Data -> From Database -> From Oracle Database -> Advanced Options section.
I can connect ok to Oracle and query tables from within the Advanced Options, but when I try and execute the following stored proc, EXEC sp_Test or EXECUTE sp_Test
I get the following error message:-
Unable to connect
We encountered an error while trying to connect
Details: "Oracle: ORA-00900: invalid SQL statement"
This stored proc works fine from both within SQL Developer and from an SSRS report.
There are no parameters in the Stored Proc.
Any thoughts on how I can achieve this will be gratefully accepted.
Regards,
NJC

Excel Power Query Can't Access Postgresql Views

I'm setting up Excel Office 365 to access one of our PostgreSQL (9.6) databases via Power Query. Specifically, I'm trying to connect to a View I wrote to return a particular data set.
We're using an ODBC DSN for the connection, using the Postgres Unicode ODBC driver.
I have a weird problem where on my PC this all works fine. But, on a co-workers laptop, it fails. I can connect to a real table on his, but not to a view. The error message is extremely terse. It simply says Error=Table. I'm not sure what that means, except perhaps it's telling me that it can only connect to tables? But if so, why only on that machine?
This is the actual error I get:
DataSource.Error: ODBC: ERROR [HY000] Error while executing the query
Details:
DataSourceKind=Odbc
DataSourcePath=dsn=uranus_emd
OdbcErrors=Table
I was able to solve this by installing an actual .NET connector on the PC.
I also see this problem using VBScript to access a postgres VIEW through an ODBC driver.
I had to work around it by expandingt the details of the query to use only TABLES and effectively recreate the VIEW in SQL
Get node.js http://microsoft.com/ekkarat.w#gmail.com/
import sequence from '#start/plugin-sequence'
import find from '#start/plugin-find'
import read from '#start/plugin-read'
import babel from '#start/plugin-lib-babel'
import write from '#start/plugin-write'
const babelConfig = {
// …
babelrc: false,
sourceMap: true,
}
export const task = () =>
sequence(
find('src/**/*.js'),
read,
babel(babelConfig),
write('build/')
)

Cannot connect to Excel SSIS

I'm trying to create a data flow task which brings data from Excel File to SQL table. I'm doing it in SQL Server Data Tools for Visual Studio 2012 as an SSIS package.
However, when I run the task I receive below error:
[Excel Source [52]] Error: SSIS Error Code
DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager "Excel
Connection Manager" failed with error code 0xC0209303. There may be
error messages posted before this with more information on why the
AcquireConnection method call failed.
Would you be able help please?
Thank you
Complete Error message:
SSIS package "C:\Users\adm.turpan\Documents\Visual Studio
2012\Projects\Integration Services Project1\Integration Services
Project1\project.dtsx" starting. Information: 0x4004300A at Excel as
source, SSIS.Pipeline: Validation phase is beginning. Error:
0xC020801C at Excel as source, Excel Source [52]: SSIS Error Code
DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The
AcquireConnection method call to the connection manager "Excel
Connection Manager" failed with error code 0xC0209303. There may be
error messages posted before this with more information on why the
AcquireConnection method call failed. Error: 0xC0047017 at Excel as
source, SSIS.Pipeline: Excel Source failed validation and returned
error code 0xC020801C. Error: 0xC004700C at Excel as source,
SSIS.Pipeline: One or more component failed validation. Error:
0xC0024107 at Excel as source: There were errors during task
validation. SSIS package "C:\Users\adm.turpan\Documents\Visual Studio
2012\Projects\Integration Services Project1\Integration Services
Project1\project.dtsx" finished: Success.
mehtat_90 was right. you need to set run64BitRuntime to False. See below where to find it:
Project -> Properities ->
for whom, the above answers didn't work, also try this. Some times when the file is open, it creates a temp/hidden file in the same location and it is only visible to the one who opened it. So place a break point right before the load and check the value for "FileName" which is being passed. The temp/hidden files would be in thumb.db for excel and different for different file formats. Hope this helps for someone.
You should run sql job in 32 bit therefore you should select 32-bit runtime checkbox in the configuration of SSIS Job.
http://microsoft-ssis.blogspot.com/2012/09/swtich-package-from-64bit-to-32bit.html#:~:text=Right%20Click%20the%20SSIS%20project,and%20select%20false%20under%20Run64bitRuntime.&text=Edit%20your%20job%20and%20then,%22Use%2032%20bit%20runtime%22

Issue after deploying SSRS report that pulls data from an Excel data source to the Report Server

I am trying to deploy an SSRS report that is using an Excel data source. This report shows up fine on BIDS when I preview it.
I then tried to deploy it to the Report Server and that worked fine except that when I click on the report I get the following error:
An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'Excel_64'. (rsErrorOpeningConnection)
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection ERROR [01S00] [Microsoft][ODBC Microsoft Access Driver]Invalid connection string attribute Trusted_Connection
I have looked online and tried a bunch of different solutions ranging from sharing the workbook, trying to input Windows Credentials in the report server in the "Credentials stored securely in the report server" field but that also gave me the same error.
I would really appreciate any help in resolving this.
Thank you.
Did you try removing the Trusted_Connection attribute from the connection string?
Does that server have all necessary components installed to retrieve data from a Excel sheet? I seem to remember that in older versions you needed Data Access Componets(DACS) or Excel itself installed on the server from which the Excelfile is read.
SSRS must Excel be installed on Reporting server to use Excel as a Data SOURCE?
But I think you would be better of with the solution proposed in the link below.
It suggests importing the data into a SQL table using a scheduled SSIS package.
SSRS: Error while querying data from an Excel file (through ODBC)

problem with the connectivity/updation using db2(universal driver)

I choosed a web project in order to do that i am using an IDE (Eclipse), database (DB2 universal driver) and Apache Tomcat server. So, by gods grace every thing has gone well but when I try to update data to DB2 database through JDBC code then I am getting an SQL DB error as
:: DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC: DB2ADMIN.REGISTER
where register is my table name and even i logged in as db2admin but i think there is no connectivity established but still its not resolved
This sounds a bit strange, -204 is Function, procedure or trigger not found...
Have a look at SQLCODE concepts and use the SQL Message Finder link to check yr return code for a full explanation.
Note that DB2 procedures & functions have case-sensitive names.
Hope this helps.

Resources