in reply to SQL server 2008 error

Most likely, MS SQL Server does not like a column named external. You will need to find how to quote column names for MS SQL server. I suggest using a MS SQL console client to find the proper SQL to use.

The easy approach would be to rename the column in your database and in your code to something that is not an MS SQL keyword.