Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/03/2014, 12:16
anthon
 
Fecha de Ingreso: marzo-2014
Mensajes: 1
Antigüedad: 10 años, 1 mes
Puntos: 0
Debe declarar la variable escalar "@T_INS".

DECLARE @T_INS VARCHAR(100)
DECLARE @AUX3 VARCHAR(50)
DECLARE @AUX2 VARCHAR(200)

SET @T_INS = N'HOLA '
SET @AUX3 ='@T_INS'

SET @AUX2 ='SET '+@AUX3+' = '+char(39)+'mundo'+char(39)

EXEC (@aux2)

GO


como puedo ejecutar esa cadena