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

amazon web services - S3 and apache mod_proxy with basic authentication -

How to install ruby on rails -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -