濮阳杆衣贸易有限公司

主頁 > 知識(shí)庫 > Select data from an Excel sheet in MSSQL

Select data from an Excel sheet in MSSQL

熱門標(biāo)簽:美國地圖標(biāo)注軟件下載 合肥crm外呼系統(tǒng)加盟 硅基電話機(jī)器人官網(wǎng) 漯河電銷回?fù)芡夂粝到y(tǒng) 怎么修改高德地圖標(biāo)注 西安電話自動(dòng)外呼系統(tǒng) 城市地圖標(biāo)志怎么標(biāo)注 長沙外呼系統(tǒng)平臺(tái) 電話機(jī)器人怎么看余額
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)簽:商洛 玉溪 撫順 瀘州 吉林 濟(jì)源 文山 廣西

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《Select data from an Excel sheet in MSSQL》,本文關(guān)鍵詞  Select,data,from,Excel,sheet,MSSQL,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《Select data from an Excel sheet in MSSQL》相關(guān)的同類信息!
  • 本頁收集關(guān)于Select data from an Excel sheet in MSSQL的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    巧家县| 镇江市| 潞城市| 淮滨县| 衡南县| 陇南市| 隆安县| 黔东| 宜都市| 蒙阴县| 鹤山市| 淳化县| 大渡口区| 禹州市| 收藏| 射阳县| 新龙县| 崇仁县| 遵义市| 黄冈市| 崇明县| 汉川市| 兴安县| 萝北县| 遵义市| 龙里县| 云林县| 额济纳旗| 镇平县| 邛崃市| 定西市| 禹城市| 温州市| 冷水江市| 南投县| 宣恩县| 马边| 淮北市| 吴堡县| 太保市| 乌拉特前旗|