IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
2010-03-15 19:33
429 查看
IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
OleDbDataAdapter Adapter = new OleDbDataAdapter("Select [Domain] From [SuffixDomain] Where [Domain]=@Domain", ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString);
在SQl语句含有关键会出现 IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败。
如果是Select Sql 语句中, 只要 Select [field],....只可以了,如果是insert into
OleDbCommandBuilder CommBuilder = new OleDbCommandBuilder(Adapter);
CommBuilder.QuotePrefix = "[";
CommBuilder.QuoteSuffix = "]";
OleDbDataAdapter Adapter = new OleDbDataAdapter("Select [Domain] From [SuffixDomain] Where [Domain]=@Domain", ConfigurationManager.ConnectionStrings["ConnString"].ConnectionString);
在SQl语句含有关键会出现 IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败。
如果是Select Sql 语句中, 只要 Select [field],....只可以了,如果是insert into
OleDbCommandBuilder CommBuilder = new OleDbCommandBuilder(Adapter);
CommBuilder.QuotePrefix = "[";
CommBuilder.QuoteSuffix = "]";
相关文章推荐
- Access里的Case效果 “IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败!”的解决方法!
- 查询Access时候,报错误:IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- Access [IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败 ]
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败"
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- Access里的Case效果 “IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败!”的解决方法!
- 访问Access 数据库 报 “IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败。”
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败
- c/c++ error:GetAdaptersInfo调用失败后重复调用,导致内存溢出
- GDI+ / PNG 实现半透明窗口,正常情况下没有问题 将系统设置为16位色后UpdateLayeredWindow函数失败,GetLastError返回8(ERROR_NOT_ENOUGH_MEMORY)
- 小程序安卓机访问数据失败request:fail ssl hand shake error~已解决
- Unable To Import Or Enter Sale Order - ORA-20001: APP-FND-01564: ORACLE error - 1422 in get_seq_info
- (未解决,只是提供一种思路)安装pyspider失败:Command "python setup.py egg_info"failed with error code 10 in.....
- windows 问题 LoadLibrary失败,GetLastError= 193
- Error:(32) android studio开发,报错undefined reference to `AndroidBitmap_getInfo'
- Unable To Import Or Enter Sale Order - ORA-20001: APP-FND-01564: ORACLE error - 1422 in get_seq_info