Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

CREATE TYPE Error

 
   Database Help (Home) -> Programming RSS
Next:  [ANN] ODB C++ ORM 1.6.0 released, adds support fo..  
Author Message
Joe

External


Since: Jun 07, 2008
Posts: 6



(Msg. 1) Posted: Tue Oct 04, 2011 8:23 am
Post subject: CREATE TYPE Error
Archived from groups: microsoft>public>sqlserver>programming (more info?)

When I submit this SQL statement:

CREATE TYPE AcctList AS TABLE (acct_num varchar(25))


I get an error message:

Incorrect syntax near the keyword 'AS'

What am I doing wrong?

Joe

 >> Stay informed about: CREATE TYPE Error 
Back to top
Login to vote
Jeroen Mostert

External


Since: Oct 08, 2009
Posts: 8



(Msg. 2) Posted: Tue Oct 04, 2011 1:26 pm
Post subject: Re: CREATE TYPE Error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2011-10-04 17:23, Joe wrote:
>
> When I submit this SQL statement:
>
> CREATE TYPE AcctList AS TABLE (acct_num varchar(25))
>
>
> I get an error message:
>
> Incorrect syntax near the keyword 'AS'
>
> What am I doing wrong?
>
You're using the wrong version of SQL Server. User-defined table types are
supported from SQL Server 2008 onwards.

--
J.

 >> Stay informed about: CREATE TYPE Error 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Error: Disallowed implicit conversion from data type nvarc.. - Hi All, Trying to change datatype of a Column to Money from nvarchar ALTER TABLE TESTTABLE ALTER COLUMN TESTCOLUMN MONEY I get this message below? Server: Msg 260, Level 16, State 1, Line 1 Disallowed implicit conversion from data type nvarchar to..

CREATE RULE for a Default Type - Hi all, Using: SQL Server 2000 SP3A Enterprise Edition I have setup a table that holds application information. One of the fields holds the Applications Version Information. I have created a default type called Version of nvarchar and length 43. ..

SQL server error:Error converting data type varchar to float - hi, here is my SQL statement, for some reason, it keeps giving me "Error converting data type varchar to float" error. Anybody news how to resolve it? declare @date as datetime SET @date = (SELECT max( create_Date ) ...

strange type conversion error with datetime... - hi, i've spent ages puzzling over this, and read similar situations on the net but it's usually a different problem of people using 'dd mm yyyy' format instead of 'dd mmm yyyy'. using sql 2005. i have a very straight forward stored procedure, with a....

Error converting data type datetime to smalldatetime - Why would we get this ? "Error converting data type datetime to smalldatetime" In addition to choosing date ranges outside the acceptable limits for those datatypes, are there other reasons ? Thanks
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]