Getting error while creating type "table" in SQL Server -


i creating type table , query as:

create type dbo.tbl table(country_code varchar(5),                               country_name varchar(150),                              country_capital varchar(150),                              continent_code char(2)                             ); 

but when execute it, error:

msg 156, level 15, state 1, line 1
incorrect syntax near keyword 'as'.

please suggest solution


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -