1

When running this sample

CREATE TYPE LocationTableType AS TABLE 
    ( LocationName VARCHAR(50)
    , CostRate INT )
GO

from SQl Manager (SQL Server 9) I get this error:

Msg 156, Level 15, State 1, Line 2
Incorrect syntax near the keyword 'AS'.

sp_configure 'clr enabled' is already set to 1 and the service was restarted.

What went wrong?

Thanks, P

1 Answer 1

2

(SQL Server 9)

User-defined table types are a feature introduced in SQL Server 2008, version 10.

CREATE TYPE in SQL Server 2005

CREATE TYPE in SQL Server 2008

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.