Title: SQL errors &#8211; Incorrect syntax near &#039;LIMIT&#039;
Last modified: August 20, 2016

---

# SQL errors – Incorrect syntax near 'LIMIT'

 *  [bloofrog](https://wordpress.org/support/users/bloofrog/)
 * (@bloofrog)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/sql-errors-incorrect-syntax-near-limit/)
 * [01-Feb-2012 18:11:00 UTC] WordPress database error [Microsoft][SQL Server Native
   Client 10.0][SQL Server]Incorrect syntax near ‘LIMIT’. for query DELETE FROM 
   wp_5_postmeta WHERE meta_id = 203 LIMIT 1; made by do_action_ref_array, call_user_func_array,
   do_all_pings, delete_metadata_by_mid, sqlsrv_wpdb->query, sqlsrv_wpdb->_post_query,
   sqlsrv_wpdb->print_error
 * I’m getting a number of these errors in the system – we use SQLServer on IIS 
   7.5. Has anyone seen this error?

The topic ‘SQL errors – Incorrect syntax near 'LIMIT'’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [iis](https://wordpress.org/support/topic-tag/iis/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [bloofrog](https://wordpress.org/support/users/bloofrog/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/sql-errors-incorrect-syntax-near-limit/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
