您的位置:首页 > 大数据 > 人工智能

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 = "]";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐