<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0060)http://www.itfat.com/tech/nettech/nettech20031230/25286.html -->
<HTML><HEAD><TITLE>用ASP.NET/C#连接Access和SQL Server数据库</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="用ASP.NET/C#连接Access和SQL Server数据库" name=keywords>
<META content="本页介绍:用ASP.NET/C#连接Access和SQL Server数据库相关内容。" name=description>
<STYLE type=text/css>TD {
FONT-SIZE: 12px; COLOR: #333333; LINE-HEIGHT: 20px; FONT-FAMILY: "Verdana", "宋体"
}
LI {
FONT-SIZE: 12px
}
SELECT {
FONT-SIZE: 12px
}
INPUT {
FONT-SIZE: 12px
}
.ftitle {
FONT-SIZE: 20px; LINE-HEIGHT: 200%
}
.f14 {
FONT-SIZE: 14px; LINE-HEIGHT: 150%
}
A:link {
COLOR: #333333; FONT-FAMILY: "Verdana", "宋体"; TEXT-DECORATION: none
}
A:visited {
COLOR: #333333; FONT-FAMILY: "Verdana", "宋体"; TEXT-DECORATION: none
}
A:active {
COLOR: #333333; TEXT-DECORATION: none
}
A:hover {
COLOR: #999999; TEXT-DECORATION: underline
}
</STYLE>
<SCRIPT>
function doZoom(size){
document.getElementById('zoom').style.fontSize=size+'px'
setTailPosition()
}
</SCRIPT>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<TABLE
style="BORDER-RIGHT: #a9a9a9 1px solid; BORDER-LEFT: #a9a9a9 1px solid; BORDER-BOTTOM: #dddddd 1px solid"
height=60 cellSpacing=0 cellPadding=0 width=950 align=center
background="用ASP_NET-C#连接Access和SQL Server数据库.files/new000.gif" border=0>
<TBODY>
<TR>
<TD width=13> </TD>
<TD width=180 height=60><A href="http://www.itfat.com/"><IMG height=60
alt=www.ITFat.com计算机信息技术网
src="用ASP_NET-C#连接Access和SQL Server数据库.files/class_logo.gif" width=180
border=0></A></TD>
<TD width=520><IMG height=60
src="用ASP_NET-C#连接Access和SQL Server数据库.files/new001.gif" width=520
useMap=#Map border=0></TD>
<TD align=middle width=240><IMG height=12
src="用ASP_NET-C#连接Access和SQL Server数据库.files/new002.gif" width=13><A
onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.ITFat.com');return false;">设为主页</A>
<IMG height=12 src="用ASP_NET-C#连接Access和SQL Server数据库.files/new003.gif"
width=13><A
href="javascript:window.external.AddFavorite('http://www.ITFat.com',%20'%20ITFat.com计算机信息技术网')">收藏本站</A></TD></TR></TBODY></TABLE><MAP
name=Map><AREA shape=RECT alt=业界资讯 coords=20,6,95,25
href="http://www.itfat.com/info/index.html"><AREA shape=RECT alt=办公软件
coords=20,28,95,50 href="http://www.itfat.com/office/index.html"><AREA
shape=RECT alt=工具软件 coords=100,6,176,25
href="http://www.itfat.com/soft/index.html"><AREA shape=RECT alt=网页设计
coords=100,28,176,50 href="http://www.itfat.com/web/index.html"><AREA
shape=RECT alt=图形图像 coords=178,6,254,25
href="http://www.itfat.com/photo/index.html"><AREA shape=RECT alt=技术开发
coords=178,28,254,50 href="http://www.itfat.com/tech/index.html"><AREA
shape=RECT alt=精文荟萃 coords=256,6,334,25
href="http://www.itfat.com/article/index.html"><AREA shape=RECT alt=认证考试
coords=256,28,334,50 href="http://www.itfat.com/exam/index.html"><AREA
shape=RECT alt=操作系统 coords=336,6,414,25
href="http://www.itfat.com/os/index.html"><AREA shape=RECT alt=媒体动画
coords=337,28,415,50 href="http://www.itfat.com/media/index.html"><AREA
shape=RECT alt=网络冲浪 coords=416,6,495,25
href="http://www.itfat.com/net/index.html"><AREA shape=RECT alt=特色专栏
coords=416,28,495,50 href="http://www.itfat.com/page/index.html"></MAP>
<TABLE
style="BORDER-RIGHT: #a9a9a9 1px solid; BORDER-LEFT: #a9a9a9 1px solid; BORDER-BOTTOM: #dddddd 1px solid"
height=36 cellSpacing=0 cellPadding=0 width=950 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#f2f2f2>
<TABLE height=24 cellSpacing=1 cellPadding=1 width=940 align=center
bgColor=#7d96b8 border=0>
<TBODY>
<TR>
<TD align=middle width=62 bgColor=#ffffcc><IMG height=20
src="用ASP_NET-C#连接Access和SQL Server数据库.files/new004.gif"
width=62></TD>
<TD width=650 bgColor=#ffffff>您现在的位置:ITFat.com >> <A
href="http://www.itfat.com/tech/nettech/">.NET专栏</A> >> 用ASP.NET/C#连接Access和SQL
Server数据库</TD>
<TD align=middle bgColor=#ffffff>今天是:
<SCRIPT language=JavaScript
src="用ASP_NET-C#连接Access和SQL Server数据库.files/date.js"
type=text/JavaScript></SCRIPT>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE
style="BORDER-RIGHT: #a9a9a9 1px solid; BORDER-LEFT: #a9a9a9 1px solid; BORDER-BOTTOM: #a9a9a9 1px solid"
cellSpacing=0 cellPadding=0 width=950 align=center border=0>
<TBODY>
<TR>
<TD width=10> </TD>
<TD vAlign=top width=730>
<TABLE cellSpacing=0 cellPadding=0 width=730 border=0>
<TBODY>
<TR>
<TD>
<DIV class=ftitle align=center><STRONG><FONT
color=#cc0000>用ASP.NET/C#连接Access和SQL
Server数据库</FONT></STRONG></DIV></TD></TR>
<TR>
<TD align=middle height=25>
<TABLE height=25 cellSpacing=0 cellPadding=0 width=680
bgColor=#eeeeee border=0>
<TBODY>
<TR>
<TD
align=middle>作者:不详 来源:网络摘取 更新时间:2003-12-30</TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD align=right height=22><FONT color=red>[ 收藏此页到: </FONT><A
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><FONT
color=#0000ff>天天</FONT></A> | <A
href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><FONT
color=#0000ff>和讯</FONT></A> | <A title=将此文加入博客中国博采
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://blogmark.blogchina.com/jsp/key/quickaddkey.jsp?k='+encodeURI(d.title)+'&u='+encodeURI(d.location.href)+'&c='+encodeURI(t),'keyit','scrollbars=no,width=500,height=430,status=no,resizable=yes'));keyit.focus();"><FONT
color=#0000ff>博采</FONT></A> | <A
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=2008&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"><FONT
color=#0000ff>ViVi</FONT></A> | <A
href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://z.sohu.com/storeit.do?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(