Skip to main content
Solved

Writing to old SQL database TYPE_ID error

  • April 25, 2014
  • 1 reply
  • 10 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

 

 

View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
Evangelist
  • 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

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings