Created
February 26, 2015 16:30
-
-
Save PatrickMcDonald/a427d9f7290d01101a26 to your computer and use it in GitHub Desktop.
Import columns with mixed datatypes to SQL Server from Excel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0', | |
'Excel 8.0;IMEX=1;Database=\\server\share\Spreadsheet.xlsx;', ['Sheet-Name$']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment