Update the SQL database based on the contents of the Excel table

Source: Internet
Author: User
Tags mssqlserver ole

About the "Unable to create a linked server"(NULL)"This error may be reported when the OLE DB provider SQL Server 2008 reads Excel data: Unable to create linked server"(NULL)"The OLE DB Access interface"MSDASC"the instance. 1This error occurs primarily when reading data with code: INSERT into database table nameSelect* fromOpenDataSource ('microsoft.ace.oledb.12.0','Data source= "d:\Excel table name. xlsx"; Extended properties= "Excel 12.0; Hdr=yes "')... [sheet1$]2This error does not occur when you use the Import tool to read Excel. 3. Method: SQL Server (MSSQLSERVER) and SQL full-Filter Deamon Launcher (MSSQLSERVER) Two services login to LocalSystem, but it bothered me for a long time, here to leave a record backup, but also to help those who like me to meet the headache of the soldiers. 4Change of Login status: Operate in Configuration Manager. Updates the database update Tuser based on the contents of the Excel tableSetEmadd=A.em from(Select* fromOpenDataSource ('microsoft.ace.oledb.12.0',           'Extended properties= "Excel 12.0; Hdr=yes;imex=1 ";D ata source=" D:\em.xls "'           )... [sheet1$]) AwhereTuser.id=a.id inserting the contents of an Excel table into a database insert into Test (NAME,RE,JJ)Select* fromOpenDataSource ('microsoft.ace.oledb.12.0',           'Extended properties= "Excel 12.0; Hdr=yes;imex=1 ";D ata source=" D:\em.xls "'           )... [sheet2$]

Update the SQL database based on the contents of the Excel table

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.