x

syntax error while creating partition function

im creating partition function as,

CREATE PARTITION FUNCTION cct_part_emid(INT) 
AS RANGE LEFT FOR VALUES(10000,50000)

im getting error while executing the above query as

Msg 170, Level 15, State 1, Line 2
Line 2: Incorrect syntax near 'PARTITION'.

anything wrong with my syntax? im working with SQL server developer edition(8.00.194)

more ▼

asked Mar 18 '10 at 02:38 PM in Default

venkatreddy gravatar image

venkatreddy
562 28 29 32

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

That's SQL Server 2000. It doesn't support partitioning. You'll need to get a newer version of SQL Server. I'd recommend SQL Server 2008. Partitioning started in SQL Server 2005, but 2008 added some great functionality.

more ▼

answered Mar 18 '10 at 02:47 PM

Grant Fritchey gravatar image

Grant Fritchey ♦♦
91k 19 21 74

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x977
x50

asked: Mar 18 '10 at 02:38 PM

Seen: 1693 times

Last Updated: Mar 19 '10 at 12:23 AM