当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 我的论坛 http://www.unifo.com.cn/bbs 欢迎大家去灌水,发一贴10分,回复一次5分 另外,大家看看我做的log如何?哪一个最好? http://jut.vip.sina.com/unifo/1.jpg http://jut.vip.sina.com/unifo/2.jpg http://jut.vip.sina.com/unifo/3.jpg http://jut......
 ·英文sql2000能往表里写中文吗    »显示摘要«
    摘要: 英文sql2000能往表里写中文吗? ......


大家好,用ASP怎么通过注册表来接数据库呢谢意 看内宾:

dim   sServer,sUser,sDBName,sPass,sTmpPath,sInstallPath,sVersion  
  Dim   MyWshShell  
  set   MyWshShell=Server.CreateObject("WScript.Shell")  
                    sserver=MyWshShell.RegRead("HKLM\SOFTWARE\My\MyData\DBServerName")  
  .  
  .  
  .  
  .  
  .  
  Application("ConnectString")   =   _  
  "Provider=SQLOLEDB.1;"   _  
  &   "Password="   &   sPass   &   ";"   _  
  &   "Persist   Security   Info=True;"   _  
  &   "User   ID="   &   sUser   &   ";"   _  
  &   "Initial   Catalog="   &   sDBName   &   ";"   _  
  &   "Data   Source="   &   sServer   &   ";"   _  
  &   "Connect   Timeout=90"  
  也就是怎么通过注册表来连接数据库的

NO.1   作者: julyclyde)

权限够访问注册表吗?


 ·英文sql2000能往表里写中文吗    »显示摘要«
    摘要: 英文sql2000能往表里写中文吗? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE