Stack Trace:
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
WestSoftOA.login.AddLoginHistory() in f:\
错误信息如上
奇怪的是,本机没有f盘。当然,最早的时候这个程序是放在别的机器f盘上拷贝过来的。
连接字符串没问题,sqlserver也能打开。尝试过重新安装framework,也手动注册过iis
[SqlException: SQL Server does not exist or access denied.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
WestSoftOA.login.AddLoginHistory() in f:\
错误信息如上
奇怪的是,本机没有f盘。当然,最早的时候这个程序是放在别的机器f盘上拷贝过来的。
连接字符串没问题,sqlserver也能打开。尝试过重新安装framework,也手动注册过iis
解决方案 »
- 急求.NET获取动态id的系统魔鬼函数
- asp.net的正则表达式?
- 为什么提示无法连接SQL Server 数据库
- 怎么样可以得到2个或2个以上的参数?折腾一晚上了,谢谢!
- 动态生成的组件如何设置背景色和字体大小。
- aspnetforums 安装后没有管理员帐号和密码怎么办。
- 不显示删除回复显示所有回复显示星级回复显示得分回复 GOOGLE MAP API 3 如何使得infowindow 循环显示[问题点数:200分]
- .NET OA 源码
- 我的ASP。NET为什么不能调试,和单步跟踪了
- 请问:crystal report8在vs.net第几张光盘中啊,我怎么没安装上
- 问个JS的问题
- 各位,将checkboxlist.Items[i]这个空间集转化成单个checkboxlist控件,怎么转
MDAC2.6以上版本
如何察看呢?sqlserver2000就是装在本机的,应该装的吧?
SqlConnection myConnection = new SqlConnection(strcn);
return myConnection;
<add key="ConnectString" value="server=192.168.2.3; user id=sa; password=123; Database=Project;"/>server=192.168.2.3 这个用过机器名,ip地址等
SqlConnection conn = WSConnection.GetConnection();
string strQuery="sp_Add_Login_History";
SqlCommand myCommand = new SqlCommand(strQuery, conn);
myCommand.CommandType = CommandType.StoredProcedure;
// 给存储过程增加参数,登录账户和用户IP地址
SqlParameter ParaAccount = new SqlParameter("@Account",SqlDbType.VarChar);
ParaAccount.Value = txtAccount.Text;
myCommand.Parameters.Add(ParaAccount);
SqlParameter ParaIP = new SqlParameter("@IP_Address", SqlDbType.VarChar);
ParaIP.Value = Request.UserHostAddress;
myCommand.Parameters.Add(ParaIP);
// 调用存储过程
conn.Open();open的地方over了