Environment:
Windows Server (RM)
SQL Server 2012
Excel Data Import Data Sheet
INSERT into [dbo].[AdminUser] SELECT [Adminuserid] ,[Namezh] ,IsNull([Nameeng],"') as [Nameeng] ,[Password] ,[Createdatetime] ,[Updatedatetime] ,[Recordtimestamp] from OPENROWSET('microsoft.ace.oledb.12.0', 'Excel 12.0;database=c:\website\macaustore\data\alldata_20151216.xls; Hdr=yes;imex=1','select * FROM [adminuser$]')
View Code
Error Resolution: http://stackoverflow.com/questions/13888082/ Ole-db-provider-microsoft-ace-oledb-12-0-for-linked-server-null-returned-m
- Download and install the new component from microsoft:http://www.microsoft.com/downloads/en/details.aspx? familyid=c06b8369-60dd-4b64-a44b-84b371ede16d&displaylang=en
- This would install the access and other engines you need to set up linked servers, OPENROWSET Excel files, etc.
Excel Data Import Data Sheet