SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 create table with(pad_index=off,)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chap
Starting Member

USA
30 Posts

Posted - 05/26/2009 :  14:41:38  Show Profile  Reply with Quote
When I try to create a table in SQL Server 2000 using this query

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[ProspectUpdate](
[RowID] [smallint] NOT NULL,
[LastUpdatedDate] [datetime] NOT NULL,
CONSTRAINT [PK_ProspectUpdate] PRIMARY KEY CLUSTERED
(
[RowID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY =
OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
I receive the following error:
Msg 170, Level 15, State 1, Line 7
Line 7: Incorrect syntax near '('.

From what I can gather this is a down grade problem. We want to populate SQL Server 2000 database from a SQL Server 2005 database.
Any ideas on how to get around this error?


George

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 05/26/2009 :  14:44:12  Show Profile  Reply with Quote
remove that with statement and try
Go to Top of Page

Chap
Starting Member

USA
30 Posts

Posted - 05/26/2009 :  15:31:36  Show Profile  Reply with Quote
Thanks that did work. I was concerned with why the developer had the with statement to begin with. It works fine in SQL SERVER 2005.

George
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000