SQL - Donde esta el error??

 
Vista:

Donde esta el error??

Publicado por juan (6 intervenciones) el 07/11/2006 20:07:30
Un saludo a todos, tengo el siguiente script cuando le ejecuo mesale el siguiente error:
" Server: Msg 170, Level 15, State 1, Line 8
Line 8: Incorrect syntax near '('. "
le agradeceria me puedan ayudar a corregir el error, muchas gracias

USE [Acceso]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Biometrica](
[RowId] [bigint] IDENTITY(1,1) NOT NULL,
[Cedula] [int] NOT NULL,
[template] [varbinary](8000) NOT NULL,
CONSTRAINT [PK_Biometrica] PRIMARY KEY CLUSTERED
(
[RowId] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
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:Donde esta el error??

Publicado por luishoracio (15 intervenciones) el 07/11/2006 22:58:36
Buenas tardes,

Porque no pruebas con lo que tienes así:

CREATE TABLE [dbo].[Biometrica](
[RowId] [bigint] IDENTITY(1,1) NOT NULL,
[Cedula] [int] NOT NULL,
[template] [varbinary](8000) NOT NULL,
CONSTRAINT PK_Biometrica PRIMARY KEY CLUSTERED (RowId))

hasta pronto
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

RE:Donde esta el error??

Publicado por Isaías (5072 intervenciones) el 07/11/2006 23:30:58
Y si el PRIMARY KEY, lo declaras en el campo?

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE dbo.Biometrica
(
[RowId] [bigint] IDENTITY(1,1) NOT NULL PRIMARY KEY,
[Cedula] [int] NOT NULL,
[template] [varbinary](8000) NOT NULL)
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