Skip to main content
Solved

Writing to old SQL database TYPE_ID error

  • April 25, 2014
  • 1 reply
  • 18 views

Forum|alt.badge.img
I'm writing out to an old SQL 2000 database, and I get the following error using the MS SQL Non-Spatial writer:

 

 

"'TYPE_ID' is not a recognized function name."

 

 

I checked the log file and before writing to the database, FME is trying to execute the following query

 

 

SELECT name FROM sys.columns WHERE object_id = OBJECT_ID('[TableName]') AND user_type_id = TYPE_ID('int') AND is_identity = 1

 

 

When I execute this query I get an error too: SELECT name FROM sys.columns

 

 

The error is:

 

 

Invalid object name 'sys.columns'.

 

 

Is there a problem with writing to such an old SQL database?

 

Best answer by david_r

Hi,

 

 

your MSSQL instance is most likely too old. The MSSQL system table sys.columns was introduced in MSSQL 2005, and FME is using it to read the schema definition of the output feature type.

 

 

Is there a particular reason for hanging on to a 14 year old version of MSSQL?

 

 

David

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • Best Answer
  • April 27, 2014
Hi,

 

 

your MSSQL instance is most likely too old. The MSSQL system table sys.columns was introduced in MSSQL 2005, and FME is using it to read the schema definition of the output feature type.

 

 

Is there a particular reason for hanging on to a 14 year old version of MSSQL?

 

 

David