萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> 編程語言綜合 >> ado.net數據庫連接

ado.net數據庫連接

   緊急求助asp.net2.0程序連接sqlserver2000數據庫出現問題

  服務器配置:

  windowsxp

  framework2.0

  sqlserver2000

  出現如下錯誤:

  An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (PRovider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

  檢查後發現是webconfig的配置問題,將server=local,改成本地計算機名,問題解決。

copyright © 萬盛學電腦網 all rights reserved