[microsoft][odbc sql server driver][named pippes]没有发现指定的sql server. sos!

iwanttoflytosky 2004-11-12 03:26:50
在本本上用vb写了一个连接远程sql数据库的小程序,运行正常,拷贝到其它机器后运行时提示以上错误。why?

连接数据库代码如下:
Dim Conn As New ADODB.Connection
Dim strconn As String

strconn = "driver=SQL Server;server=*.*.*.*;uid=galen;pwd=galen;database=galen"
If Conn.State = adStateOpen Then Conn.Close
Conn.ConnectionString = strconn
Conn.CommandTimeout = 10
Conn.Open

本本上装有sql server




...全文
96 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
fxcl2006 2004-11-12
  • 打赏
  • 举报
回复
是缺少MSVBVM60.DLL/MSVBVM50.DLL还是别的什么错误?
iwanttoflytosky 2004-11-12
  • 打赏
  • 举报
回复
to fhercules(天际流星紫竹) :在其它机器上面装个sql的客户端,就算可以也不可行呀

在asp中用同样的方式连接,一切正常,为什么在vb里就不行呢?
fhercules 2004-11-12
  • 打赏
  • 举报
回复
在其它机器上面装个sql的客户端看看?
fxcl2006 2004-11-12
  • 打赏
  • 举报
回复
什么错误?

34,594

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧