数据库服务器:windows2003+SQLSERVER2005
WEB服务器设置:windows2003+IIS(匿名访问)
odbc(连到数据库)
应用程序A(用vb.net做成的控制台程序)前提:asp中用odbc,可以正常的连接到SQLSERVER2005,网页都能正常的访问。
把应用程序A在cmd下能正常执行。用(SqlClient.SqlConnection)
问题:asp中调用应用程序A的时候,提示[SQLSERVER不存在,连接失败!],有人知道是什么原因么???
WEB服务器设置:windows2003+IIS(匿名访问)
odbc(连到数据库)
应用程序A(用vb.net做成的控制台程序)前提:asp中用odbc,可以正常的连接到SQLSERVER2005,网页都能正常的访问。
把应用程序A在cmd下能正常执行。用(SqlClient.SqlConnection)
问题:asp中调用应用程序A的时候,提示[SQLSERVER不存在,连接失败!],有人知道是什么原因么???
在 ASP中注册
------------------------
应该是连接字符串的问题,
http://www.connectionstrings.com/?carrier=sqlserver
ODBC:Standard Security
Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; OLE DB, OleDbConnection (.NET)
Standard Security
Provider=sqloledb;Data Source=myServerAddress;Initial Catalog=myDataBase;User Id=myUsername;Password=myPassword;