Quantcast
Viewing latest article 1
Browse Latest Browse All 3

Respuesta de JuanRu en Columna calculada

Ya veo que has cambiado de planteamiento con esta tabla respecto a la otra entrada que habías puesto.

Prueba con esto

CREATE TABLE [dbo].[tblactividad](    [CodigoID] [int] IDENTITY(1,1) PRIMARY KEY,    [DocRefe] [varchar](8) NULL,    [NomActivi] [nvarchar](100) NOT NULL,    [CodTarea] [int] NULL,    [CodTipo] [int] NULL,    [CodPrio] [int] NULL,    [CodEstad] [int] NULL,    [CodResp] [int] NULL,    [FCreacion] [datetime] NOT NULL,    [FInicio] [datetime] NOT NULL,    [FFin] [datetime] NOT NULL,    [HInicio] [time](7) NOT NULL,    [HFin] [time](7) NOT NULL,    [Tiempo] AS (CONVERT(TIME, DATEADD(MS, DATEDIFF(SS, HInicio, HFin) * 1000, 0), 114)) PERSISTED,      [CodComplet] [int] NOT NULL,    [Notas] [varchar](1000) NULL,)

Viewing latest article 1
Browse Latest Browse All 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>