SqlCommandBuilder bug

  • Thread starter Thread starter Luke Painter
  • Start date Start date
L

Luke Painter

When using SqlCommandBuilder, if one of the columns, of
the subject table referenced in the SELECT query, has a
column name that is an T-SQL reserved word, such as User,
the T-SQL command text for the adapter will be incorrect
and an SqlException will be thrown. This is because the
command builder fails to wrap the column name in square
brackets in the T-SQL statement. It would be a good idea
to either document this or fix it in a future release.

Regards,
Luke Painter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top