Ver Mensaje Individual
  #1  
Antiguo 09-02-2010
Avatar de BuenaOnda
BuenaOnda BuenaOnda is offline
Miembro
 
Registrado: feb 2006
Ubicación: La Serena - Chile
Posts: 347
Reputación: 19
BuenaOnda Va por buen camino
Unhappy Problema con Identy

Amigos, nuevamente necesito de su ayuda para resolver un problema que me trae de cabeza. les cuento tengo la siguiente tabla.

Código SQL [-]
         CREATE TABLE [MOV_Detalles_Pasos]
                     ([Codigo_Detalle] [int] IDENTITY (1, 1) NOT NULL ,
                      [Codigo] [int] NULL ,                      
                     [Codigo_Cuent] [int] NULL ,
               [Codigo_Tipo_Analisis] [int] NULL ,
               [Codigo_Analisis] [int] NULL ,
               [Codigo_Centro_Costo] [int] NULL ,
               [Numero_Documento] [int] NULL ,
               [Numero_Documento_Adicional] [int] NULL ,
               [Referencia] [varchar] (20) COLLATE Modern_Spanish_CI_AS NULL ,
               [Glosa] [text] COLLATE Modern_Spanish_CI_AS NULL ,
         [Debe] [float] NULL ,
        [Haber] [float] NULL ,
        [Fecha_Vencimiento] [smalldatetime] NULL ,
        [Tipo_Compra_Venta] [int] NULL ,
        [Rut_Tipo_Analisis] [int] NULL ,
         [Codigo_Empresa] [int] NULL ,
               [Codigo_Periodo] [int] NULL ,
        [Fecha_Crea] [smalldatetime] NULL ,
        [Fecha_Modifica] [smalldatetime] NULL) ON [PRIMARY]

si se fijan tengo un campo auto-incrementable y al querer hacer un insert into masivo, a traves de un select, me arroja el siguiente error.

Código SQL [-]
Sólo se permiten punteros de texto en las tablas de trabajo y nunca columnas de tipo text, ntext o image. El procesador de consultas ha creado un plan de consulta que requiere una columna text, ntext o image en una tabla de trabajo.


Ojala me puedan ayudar, ya que estoy complicado con el tema. Desde ya muy agradecido.
Responder Con Cita