pero colocando PRIMARY KEY(campo), asi no funciona no???
Y en otra tabla pongo, FOREIGN KEY () reference (). y listo...
SI NO TIENE CONSTRAINT SE PUEDE BORRAR:?=
Código SQL:
Ver original
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[EMPLEADO]( [ID] [NUMERIC](18, 0) NOT NULL, [NOMBRE] [VARCHAR](100) NULL, [APELLIDO] [VARCHAR](100) NULL, [FECALT] [datetime] NULL, [FECMOD] [datetime] NULL, [ULTOPR] [CHAR](1) NULL, [DEBAJA] [CHAR](1) NULL, [USERID] [VARCHAR](256) NULL, CONSTRAINT [PK_EMPLEADO] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 95) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF USE [CursoSQL] GO