in

System.Data.SQLite

An open-source, enhanced version of the SQLite database engine for Windows

Implement dataadapter.selectcommand.cancel

Last post 01-04-2008 9:43 AM by cwilson. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 01-04-2008 9:43 AM

    • cwilson
    • Top 500 Contributor
    • Joined on 11-27-2006
    • St. Louis
    • Posts 3

    Implement dataadapter.selectcommand.cancel

    When I try to invoke this command, it appears to be ignored. I've learned that this command can be very useful.

    Consider the problem of a long da.fill operation. Normally you start it and just have to wait. Even if you run it in a background thread, it has to play out. With the SelectCommand.Cancel (which works for other providers), I can handle the datatable rowchanged event and look for a global "cancelled" variable I set elsewhere; if set I issue the SelectCommand.Cancel method and I'm good to go.

    Strongly recommended.

    P.S., the command works for OleDB and SQLServer, but gives a non-supported error in Firebird.

    Filed under:
Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems