ODBC guide

Get work item by ID (fail on 404)


Same as getting a work item by ID, but the request fails immediately with an error if the work item is not found (404) instead of continuing. Use this when a missing work item should stop the process (e.g. in a script that expects the item to exist). By default the driver can continue on 404; set the option to False to get strict behavior.

SELECT * FROM WorkItems WHERE Id='8563' WITH (ContineOn404Error='False')