我如何修复'System.Data.OleDb.OleDbException'错误 [英] how I Fix 'System.Data.OleDb.OleDbException' error
本文介绍了我如何修复'System.Data.OleDb.OleDbException'错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我在CodeProject中的第一个问题:
i使用access database 2007,我遇到错误:
System.Data.dll中发生未处理的System.Data.OleDb.OleDbException类型异常
其他信息:没有给出一个或多个必需参数的值。
而我的sql命令是真的!
here is my first question in CodeProject:
i work with access database 2007 ,and i encounter an error:
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll
Additional information: No value given for one or more required parameters.
while my sql command is true!
"select * from Education where id='admin' and password='admin'"
提前谢谢。
thanks in advance.
推荐答案
好吧,错误说你没有为参数提供值。你发布的SQL语句不是你运行的代码,所以几乎不可能告诉你你做错了什么。
Well, the error says you didn't supply a value for a parameter. The SQL statement you posted is not the code you ran, so it's pretty much impossible to tell you what you did wrong.
这篇关于我如何修复'System.Data.OleDb.OleDbException'错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文