我正在执行这个openrowset函数:
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;Database=C:\Users\JCPABALAN\Desktop\Data Migration\ListOfDiscards.xlsx;HDR=YES',
'SELECT * FROM [Sheet1$]')
但它给了我以下错误
OLE DB提供程序"Microsoft.ACE.OLEDB.12.0“用于链接服务器”返回消息“Microsof
我使用64位windows 7家庭普通版和microsoft excel starter 2010,我想读取excel文件,但当我调试我的代码时,出现以下错误:The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.我的代码如下:
protected void Page_Load(object sender, EventArgs e)
{
GridView1.DataSource=getirExcel();
GridView1.DataBind();
}
我有以下环境: Windows 7旗舰版64位MS office (带Access) 2010 64位
我正在VS2010中开发一个应用程序,该应用程序正在为x86中央处理器开发。我使用DataSet连接到数据库,并使用NewConnection向导连接到数据库。
我想使用access数据库来存储数据。(.accdb文件)
我下载并安装了Access数据库引擎(64位)。
当我使用:
Microsoft.Jet.OLEDB.4.0 - I get an error that the database format is not readable!!
Microsoft.ACE.OLEDB.12
public partial class EnterData : Form
{
OleDbConnection myconn=new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Users\Buddiez\Documents\Visual Studio 2010\Projects\working with databse\working with databse\database.accdb");
public EnterData()
{
Init
下面的脚本在SQLServer2014ManagementStudio中在存储过程中工作,但当我通过C#应用程序.NET Framework4.8调用存储的proc时,脚本就不能工作了。SQL代码:
create proc getData
as
Insert INTO tmpLeaveImport ([CarName], Year, Make , Model)
SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.15.0',
'Excel 12.0;Database=E:\Cars\Cars.xlsx'
我试图导入一个Excel文件(Microsoft Excel97-2003工作表(*.xls))到Power BI,我得到了这个奇怪的错误。
Details: "Excel Workbook: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. The 64-bit version of the Access Database Engine 2010 Access Database Engine OLEDB provider is required to conn