佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > Select data from an Excel sheet in MSSQL

Select data from an Excel sheet in MSSQL

熱門標(biāo)簽:網(wǎng)站排名優(yōu)化 百度競價排名 地方門戶網(wǎng)站 服務(wù)外包 AI電銷 呼叫中心市場需求 鐵路電話系統(tǒng) Linux服務(wù)器
select * 
from openrowset('Microsoft.Jet.OLEDB.4.0'
,'Excel 8.0;HDR=YES;IMEX=1;DATABASE=d:\folder\excel.xls',Sheet1$)

-------NOTE------
Setting IMEX=1 tells the driver to use Import mode. In this state, the registry setting ImportMixedTypes=Text will be noticed. This forces mixed data to be converted to text. For this to work reliably, you may also have to modify the registry setting, TypeGuessRows=8. The ISAM driver by default looks at the first eight rows and from that sampling determines the datatype. If this eight row sampling is all numeric, then setting IMEX=1 will not convert the default datatype to Text; it will remain numeric. 

You must be careful that IMEX=1 not be used indiscriminately. This is IMPORT mode, so the results may be unpredictable if you try to do appends or updates of data in this mode. 

The possible settings of IMEX are: 
0 is Export mode
1 is Import mode
2 is Linked mode (full update capabilities) 

標(biāo)簽:仙桃 湘潭 崇左 衡水 黃山 蘭州 湖南 銅川

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Select data from an Excel sheet in MSSQL》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    琼海市| 金寨县| 都安| 九江县| 阳山县| 宜章县| 株洲市| 中阳县| 新营市| 罗江县| 临沭县| 城固县| 郴州市| 丹东市| 洪雅县| 福州市| 神农架林区| 永和县| 常宁市| 凌源市| 洪江市| 临城县| 蒙城县| 黄梅县| 易门县| 陵川县| 抚顺县| 常山县| 莱州市| 衡东县| 威海市| 大理市| 宜黄县| 吉林市| 普陀区| 临潭县| 平度市| 南宁市| 开封市| 许昌市| 汽车|