您的位置:首页 > 数据库

[数据库连接字符串] EXCEL 连接字符串

2008-04-07 16:15 141 查看
#Container
{
min-height:600px;
_height:600px;
padding:10px;
min-width:680px;
}

*
{
font-family:Tahoma;
font-size:9pt;
}

.csCarrierTable
{
margin-top: 10px;
margin-left: 40px;
margin-right: 40px;
margin-bottom: 30px;
}
table
{
border: none;
}

.csProviderHeader
{
font-size:12pt;
font-weight:bold;
color:#333333;
padding-top:40px;
border-bottom: none;
}
.csConnectionStringHeader
{
font-size:10pt;
font-weight:bold;
color:#333333;
padding-top:10px;
padding-bottom:5px;
padding-left: 12px;
}
.csConnectionStringSummary
{
padding-bottom:13px;
padding-left:100px;
width: 600px;
}
.csConnectionStringRow
{
padding-left: 10px;
}
.csConnectionStringTable
{
width:100%;
}
.csConnectionString
{
padding: 3px 6px 3px 6px;
border:solid 1px #999999;
font-family: Courier New;
font-size: 8pt;
background-color: #eeeeee;
}

.csKeyword
{
color:blue;
}
.csValue
{
color:Navy;
}

.CopyToClipboard
{
font-size:8.25pt;
vertical-align: top;
text-align: right;
padding-top:10px;
width:50px;
display:block;
}

a
{
color:Black;
text-decoration:none;
}

img
{
border:0px;
}

.style1 {
font-size: 12pt;
font-weight: bold;
color: #008000;
padding-top: 40px;
border-bottom: none;
}
ODBC
标准
Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=C:/MyExcel.xls;DefaultDir=c:/mypath;
SQL表达式"SELECT * FROM [sheet1$]"。例如:在excel工作表名称后面跟"$"字符并且使用"[" "]"将其括起来。
OLE DB
标准
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/MyExcel.xls;Extended Properties="Excel 8.0;HDR=Yes;IMEX=1";
"HDR=Yes;" 表示工作表的第一行是表头,没有数据。 "HDR=No;"与之相反。
"IMEX=1;"告诉驱动程序始终将"intermixed"数据类型(numbers, dates, strings等等)作为文本型读取。
注意:该选项可能引起Excel工作表写权限的修改。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: