oledb

How to get a list of installed OLE DB providers?

喜欢而已 提交于 2020-05-25 09:01:39
问题 Microsoft Excel allows import of data from "Other Sources". One of the options is to use an OLE DB provider. How to get a list of available OLE DB providers? 回答1: If you have powershell available, just paste this into a powershell command prompt: foreach ($provider in [System.Data.OleDb.OleDbEnumerator]::GetRootEnumerator()) { $v = New-Object PSObject for ($i = 0; $i -lt $provider.FieldCount; $i++) { Add-Member -in $v NoteProperty $provider.GetName($i) $provider.GetValue($i) } $v } Credits

Get an SSIS C# Script component to read from Excel via OleDb:

走远了吗. 提交于 2020-05-17 08:46:34
问题 I'm trying to build a SSIS package to read from Excel. I've found an excellent example here that is very close to what I need. My question here is: Starting with a blank solution, what are the bare minimum steps required to get a C# Script component to read from an .xlsx file? Here is my code: using System; using System.Data; using System.Data.OleDb; using Microsoft.SqlServer.Dts.Pipeline.Wrapper; using Microsoft.SqlServer.Dts.Runtime.Wrapper; [Microsoft.SqlServer.Dts.Pipeline

Microsoft Office 12.0 Access Database Engine Oledb provider in SSIS

自古美人都是妖i 提交于 2020-04-15 17:12:28
问题 I am not able to see Microsoft Office 12.0 Access Database Engine Oledb provider in SSIS and I'm using MS Office 2013. How to re-solve this? 回答1: You are missing the Microsoft Access Database Engine 2010. Download it here: https://www.microsoft.com/en-US/download/details.aspx?id=13255 Install it on your dev-client and on your servers. After the installation has completed, you should see the Microsoft Office 12.0 Access Database Engine OLEDB provider in your Visual Studio's connection wizard.

Microsoft Office 12.0 Access Database Engine Oledb provider in SSIS

ぃ、小莉子 提交于 2020-04-15 17:12:16
问题 I am not able to see Microsoft Office 12.0 Access Database Engine Oledb provider in SSIS and I'm using MS Office 2013. How to re-solve this? 回答1: You are missing the Microsoft Access Database Engine 2010. Download it here: https://www.microsoft.com/en-US/download/details.aspx?id=13255 Install it on your dev-client and on your servers. After the installation has completed, you should see the Microsoft Office 12.0 Access Database Engine OLEDB provider in your Visual Studio's connection wizard.

ADO: Excel: Is it possible to open recordset on table name?

a 夏天 提交于 2020-03-21 06:22:51
问题 I have looked on the web but did not find any answer. So i am putting it here. Code snippet: ( where case 1 is not working.. ) _bstr_t strCnn(L"Provider='Microsoft.ACE.OLEDB.12.0';DataSource=C:\\Book.xlsx;Extended Properties=\"Excel 12.0 Xml; HDR = YES\""); hr = pConn->Open(strCnn, "", "", adConnectUnspecified); // success **LPCSTR strQuery = "select * FROM Table1"; // case1: Not working** LPCSTR strQuery = "select * FROM [Sheet1$]"; // case2: working LPCSTR strQuery = "select * FROM [Sheet1

The Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine even if it actually IS installed

限于喜欢 提交于 2020-03-03 05:05:09
问题 I try to connect .accdb file as a data source to my Windows Form application in Visual Studio. It keep saying the Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine. Error screenshot plus listed OleDb enumeratos I have installed all the recommended runtimes on related Answers marked as Accepted/working: Microsoft Access database engine 2010 (x64) Microsoft Access database engine 2016 (x64) Microsoft Access Runtime 2010 (x64) Microsoft Access Runtime 2013 (x64) but still

OleDbConnection gets “External component has thrown an exception.”

主宰稳场 提交于 2020-02-15 07:01:29
问题 I' m using a Windows Forms application to export data to excel. Application is built both x64 and x86. So both version of Microsoft Access Databse Engine must be installed to work the application on same computer. Firstly AccessDatabaseEngine.exe is installed and AccessDatabaseEngine_x64.exe is installed passive. x64 version of application is working But x86 version is getting SEHException: "External component has thrown an exception." at System.Data.Common.UnsafeNativeMethods

'Microsoft.ACE.OLEDB.12.0 is not registered in the local machine.'

别说谁变了你拦得住时间么 提交于 2020-02-06 11:30:40
问题 I have installed Microsoft Access Database Engine 2010 Redistributable http://www.microsoft.com/en-us/download/details.aspx?id=13255 on the Windows 2008 server. However, when I ran my web application to import a spreadsheet table to the database. It complains with the error message - "Microsoft.ACE.OLEDB.12.0 is not registered in the local machine." I have tested my code and works in my Windows 7 local machine. Any idea? 回答1: There is a problem with Microsoft.ACE.OLEDB.12 when

'Microsoft.ACE.OLEDB.12.0 is not registered in the local machine.'

元气小坏坏 提交于 2020-02-06 11:24:34
问题 I have installed Microsoft Access Database Engine 2010 Redistributable http://www.microsoft.com/en-us/download/details.aspx?id=13255 on the Windows 2008 server. However, when I ran my web application to import a spreadsheet table to the database. It complains with the error message - "Microsoft.ACE.OLEDB.12.0 is not registered in the local machine." I have tested my code and works in my Windows 7 local machine. Any idea? 回答1: There is a problem with Microsoft.ACE.OLEDB.12 when

OLEDE Error: Login failed for user 'DOMAIN\ComputerName$'.;28000

和自甴很熟 提交于 2020-02-03 08:22:13
问题 I am trying to deploy an Analysis Services cube in SQL Server 2012. My user account is REALM\Merin where REALM is the domain and my computer's name is Hercules . I am already in Analysis Service's administrator group. When I process the cube using SQL Server Data Tools, I get following error. OLE DB error: OLE DB or ODBC error. Login failed for user 'REALM\Hercules$'.; 28000. My user account is REALM\Merin but I don't know why it is complaining about user REALM\Hercules$. What does this