国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQL Server > 正文

Select data from an Excel sheet in MSSQL

2020-10-29 21:56:14
字體:
來源:轉載
供稿:網友
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) 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新乡县| 广丰县| 昆明市| 宁强县| 寻乌县| 洪洞县| 泽普县| 招远市| 岫岩| 夏邑县| 观塘区| 济源市| 区。| 锡林郭勒盟| 五莲县| 宣汉县| 神木县| 松溪县| 喀喇沁旗| 林甸县| 五原县| 兴和县| 康定县| 壶关县| 清远市| 长沙县| 桦川县| 太白县| 万源市| 秦皇岛市| 台江县| 乐清市| 永善县| 石城县| 奉新县| 辽宁省| 英山县| 敦煌市| 长顺县| 西城区| 富阳市|