资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 软件开发 >
Advertisement
文章正文

asp连接sybase,总是提示“Requested server name not found.”

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   

asp连接sybase,总是提示“Microsoft   OLE   DB   Provider   for   ODBC   Drivers   错误   80004005    
  [INTERSOLV][ODBC   SQL   Server   driver][SQL   Server]ct_connect():   directory   service   layer:   internal   directory   control   layer   error:   Requested   server   name   not   found."    
   
  我的连接语句是:  
  conn.open"Driver={SYBASE   SYSTEM   11};Srvr=mm;Uid=sa;Pwd="    
  我在配置odbc时,server   name填写计算机名和ip地址都不行,是不是还要填写sybase的端口?

网友回答:

发表者:yujiang930

和sybase连接驱动程序用sql6.5  
   
  conn.open   "server={name};driver={sql6.5};uid=sa;pwd="

发表者:skymark126

当然要填写sybase的端口号!

发表者:wgzymzx

Application("Vtus_ConnectionString")   =   "DSN=dsnlocalVISDB;User   Id=dba;PASSWORD=sqldkh;SRVR=wg;DB=VISDB;UID=dba;"  
  我一般这么用的,以后在任何页面,使用   Application("Vtus_ConnectionString")   它代替连接字符串就可以了。  
  srvr在开始\程序\sybase\dsedit中可以看到的

发表者:fetch

用odbc连sybase要通过sybase   openclient,  
  在dsedit中配置连接别名  
  然后配odbc时serverName就写dsedit中的别名。

发表者:nomad1979

DBConString="provider=msdasql;driver={SYBASE   SYSTEM   11};SRVR="servername";DATABASE="databasename";uid=sa;pwd="


 

 
热门推荐笔记本: 海尔笔记本
相关文章:
笔记本相关:
IT技术文章:
webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
©2007 popbb.net All Rights Reserved