Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Creating a table on SQL 2005 using 2008 script

Author  Topic 

clearwaters2020
Starting Member

2 Posts

Posted - 2009-07-19 : 01:14:21
I'm getting an error when trying to create a table on SQL 2005 by running a script that was created using SQL 2008.

Any and all suggestions would be hugely appreciated!!

---------------------------------------------------------------
The error message and script are below :

The error message is:

Msg 170, Level 15, State 1, Line 9
Line 9: Incorrect syntax near '('.

----------------------------------------------------------------
The script is:

USE [dbCNET_SITA]
GO

/****** Object: Table [dbo].[tblClusterComplexity] Script Date: 07/15/2009 14:39:29 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[tblClusterComplexity](
[ID] [int] NOT NULL,
[Complexity] [varchar](50) NULL,
[Days] [int] NULL,
CONSTRAINT [PK_tblClusterWindow] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO



khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-07-19 : 01:20:00
i tried running your code. . . did not get any error at all


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

clearwaters2020
Starting Member

2 Posts

Posted - 2009-07-19 : 01:32:10
Did you try running this in SQL 2005 or 2008? I'm having the error occur with 2005.


quote:
Originally posted by khtan

i tried running your code. . . did not get any error at all


KH
[spoiler]Time is always against us[/spoiler]



Go to Top of Page

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2009-07-19 : 01:37:45
it's 2005


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -