今天是: | 首页 | 营销咨讯 | 推销技巧 | 网络营销 | 论文大全 | 外贸知识 | 市场信息 | 留言咨询 | 论坛 |
最 新 文 章
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章IMPACT揭秘网络营销秘诀
普通文章广告也要得民心,令人生厌…
普通文章谷歌在华战略转向中小企业
普通文章博客营销文章写作技巧
普通文章网盛1800万收购中华纺织网
普通文章互联网进入营销阶段
最 新 热 门
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章IMPACT揭秘网络营销秘诀
普通文章广告也要得民心,令人生厌…
普通文章谷歌在华战略转向中小企业
普通文章博客营销文章写作技巧
普通文章网盛1800万收购中华纺织网
普通文章互联网进入营销阶段
最 新 推 荐
推荐文章网站策划之栏目策划
推荐文章网络营销--创意致胜 充满“…
推荐文章Web2.0创业者面临艰难选择…
相 关 文 章
  • JSP连接SQL Server 2000系统…

  • Tomcat5+Mssql server 2000数…

  • jsp+tomcat+mysql+sevlet+ja…

  • SQL Server 2000的安全配置

  • 实现按部门月卡余额总额分组…

  • SQL安装问题总结

  • 使用SQLSERVER的扩展存储过程…

  • 使用XML封装数据库操作语句的…

  • SQL Server与Excel数据互导

  • Mysql日期和时间函数不求人

  • Q
    您现在的位置: 推销员 >> 网络营销 >> 网站建设 >> 数据库 >> 文章正文
    在IE中直接连接SQL数据库
    在IE中直接连接SQL数据库
    作者:佚名 文章来源:www.top-sales.com.cn 点击数: 更新时间:2007-3-22     
    [ 字体:缩小 正常 放大 | 双击自动滚屏 ]
    请选择合适的字体颜色:

    使用ODC文档


    使用一个ODC文档可以很轻松在IE浏览器中连接到SQL SERVER数据库的表,ODC文档示例如下:

    <html>

    <head>

    <meta http-equiv=Content-Type content="text/x-ms-odc; charset=utf-8">

    <meta name=ProgId content=ODC.Table>

    <meta name=SourceType content=OLEDB>

    <meta name=Catalog content=K0712>

    <meta name=Schema content=dbo>

    <meta name=Table content="T_Material">

    <xml id=docprops></xml><xml id=msodc><odc:OfficeDataConnection

      xmlns:odc="urn:schemas-microsoft-com:office:odc"

      xmlns="http://www.w3.org/TR/REC-html40">

      <odc:Connection odc:Type="OLEDB">

       <odc:ConnectionString>Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=True;Data Source=develop;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=DEVELOP;Use Encryption for Data=False;Tag with column collation when possible=False;Initial Catalog=K0712</odc:ConnectionString>

     

       <odc:CommandType>Table</odc:CommandType>

     

    <odc:CommandText>&quot;K0712&quot;.&quot;dbo&quot;.&quot;ICInventory&quot;</odc:CommandText>

     

      </odc:Connection>

     </odc:OfficeDataConnection>

    </xml>

    <style>

    <!--

        .ODCDataSource

        {

        behavior: url(dataconn.htc);

        }

    -->

    </style>

    </head>

    <body onload='init()' scroll=no leftmargin=0 topmargin=0 rightmargin=0 style='border: 0px'>

    <table style='border: solid 1px threedface; height: 100%; width: 100%' cellpadding=0 cellspacing=0 width='100%'>

      <tr>

        <td id=tdName style='font-family:arial; font-size:medium; padding: 3px; background-color: threedface'>

          &nbsp;

        </td>

         <td id=tdTableDropdown style='padding: 3px; background-color: threedface; vertical-align: top; padding-bottom: 3px'>

          &nbsp;

        </td>

      </tr>

      <tr>

        <td id=tdDesc colspan='2' style='border-bottom: 1px threedshadow solid; font-family: Arial; font-size: 1pt; padding: 2px; background-color: threedface'>

          &nbsp;

        </td>

      </tr>

      <tr>

        <td colspan='2' style='height: 100%; padding-bottom: 4px; border-top: 1px threedhighlight solid;'>

          <div id='pt' style='height: 100%'

        </td>

      </tr>

    </table>

    <script language='javascript'>

    function init() {

      var sName, sDescription;

      var i, j;

      try {

        sName = unescape(location.href)

        i = sName.lastIndexOf(".")

        if (i>=0) { sName = sName.substring(1, i); }

        i = sName.lastIndexOf("/")

    文章录入:admin    责任编辑:admin 
  • 上一个文章:

  • 下一个文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 关于我们 | 友情链接 | 版权申明 |