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 = "]";