Skip to main content

Execute Sql from the url returning CSV

/api/Sql/csv/{query}

GetByQueryCsv

Returns data from a simple single-line query execution which is specified on the url. e.g. select ^ from Sys.Field order by 1, 2, returned in the format of the method name.

The following error codes are to be anticipated with standard Problem Detail reports:

  • 400 BadRequest - something failed with the execution or parsing of your query
  • 401 Unauthorized
  • 403 Forbidden