求救,C#+ACCESS用一段时间就出错 - .NET技术 / C#
各位大哥大姐,我做的单位的一个简单的办公系统用一段时间(或许一二个星期、或许三五天不定期)出现错误,不知如何解决(重启服务器后正常)请各位帮帮忙,谢谢。
以下是IE上显示的错误信息:
//////////////////////////////////////////////////////////////////////
Server Error in '/oa' Application.
--------------------------------------------------------------------------------
未指定的错误
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: 未指定的错误
Source Error:
Line 60: string connstr="Provider=MicroSoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("#sdfsdf44564sfds3f45sdfwefs36sdfsdfd.mdb");
Line 61: conn=new OleDbConnection(connstr);
Line 62: conn.Open();
Line 63: string sqlstr="select * from members where Usernames='"+yhm.Text+"' and Userpwd='"+mm.Text+"'";
Line 64: cmd=new OleDbCommand(sqlstr,conn);
Source File: d:\oa\default.aspx Line: 62
Stack Trace:
[OleDbException (0x80004005): 未指定的错误]
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) +271
System.D
相关问答:
在根目录/lib中存放一个log.c,log.h,并用下面的语句:
gcc -c log.c
ar crv liblog.a log.o
编译出一个liblog.a静态库,然后在文件夹:/testfile中创建一个test.c和testc.c,test.c中引用了testc.c中定义的方法 ......
现有paradox数据库使用BDE驱动,拟改为C/S版,增加网络读取数据功能。请哪位大侠,提供源码。
说句不客气的话,用paradox做C/S是自寻死路。
换一个网络数据库
因为不想动大手术,仅能共享几个文件即可。
Da ......
A表 有两个字段
id 唯一数字域
InfoTxt text 类型
我现在要把 id 不是14 的所有 InfoTxt字段 文本后面 都加上 'aaa'
按下面执行下来 只有表最后一行加上了 'aaa' ......