Title: SQL Query to external SQL site in a Widget&#8230;
Last modified: August 24, 2016

---

# SQL Query to external SQL site in a Widget…

 *  [Harold Callahan](https://wordpress.org/support/users/charlesduncan/)
 * (@charlesduncan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sql-query-to-external-sql-site-in-a-widget/)
 * Can anyone point me in the write direction to create a quick SQL querey to an
   external SQL server (not the WPDB) to place updates in a widget for the left 
   side menu?
 * I have all the code written(porting from an ASP site).
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Lalit Nagrath](https://wordpress.org/support/users/laliz/)
 * (@laliz)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sql-query-to-external-sql-site-in-a-widget/#post-6023170)
 * you will have to do it in php, not sure if it will work as i havent tried this
   myself or even saw someone doing it.
 *  Thread Starter [Harold Callahan](https://wordpress.org/support/users/charlesduncan/)
 * (@charlesduncan)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/sql-query-to-external-sql-site-in-a-widget/#post-6023222)
 * I see I can do it by modifying the functions.php file in the Twenty Fourteen 
   theme.
 * Code for PHP is here:
    [https://msdn.microsoft.com/en-us/library/cc793139%28SQL.90%29.aspx](https://msdn.microsoft.com/en-us/library/cc793139%28SQL.90%29.aspx)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘SQL Query to external SQL site in a Widget…’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Harold Callahan](https://wordpress.org/support/users/charlesduncan/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/sql-query-to-external-sql-site-in-a-widget/#post-6023222)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
