SQL - ERROR AL CREAR TABLA '('

 
Vista:

ERROR AL CREAR TABLA '('

Publicado por Ariel (1 intervención) el 25/02/2011 20:28:55
me da un error al querer ejecutar este script

USE [BD]
GO

/****** Object: Table [dbo].[VDC_ATE] Script Date: 02/25/2011 16:02:32 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[VDC_ATE](
[CLAVE] [numeric](4, 0) NOT NULL,
[DESCRIPCIO] [char](45) NULL,
[ESTADO] [char](1) NULL,
CONSTRAINT [PK_VDC_ATE] PRIMARY KEY CLUSTERED
(
[CLAVE] 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

---------------------------------------------------------------------
error_Mens. 170, Nivel 15, Estado 1, Línea 9
Line 9: Incorrect syntax near '('.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:ERROR AL CREAR TABLA '('

Publicado por JAMS (16 intervenciones) el 03/03/2011 17:57:45
Seguramente este script lo copiaste de una tabla que ya existe, te recomiendo que lo crees tu sin corchetes y esas cosas raras que presenta.

es de cie que hagas create table dbo.VDC_ATE(
CLAVE numeric(4, 0) NOT NULL,
DESCRIPCIO char(45) NULL,
ESTADO char(1) NULL)

y despues una vez creada generes tu llave primaria

Ojala y te sirva

Saludos y suerte
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar