Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/07/2010, 13:55
VICTOR_2010
 
Fecha de Ingreso: julio-2010
Mensajes: 11
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Usar Tabla en 1 Procedimiento Almacenado

Cita:
Iniciado por flaviovich Ver Mensaje
Prueba asi:
Código SQL:
Ver original
  1. CREATE PROCEDURE CREA_DIRECCIONES
  2. @Datos_ESCUELA VARCHAR(50)
  3. AS
  4.  
  5. DECLARE @qry nvarchar(150)
  6.  
  7. SET @qry = N'UPDATE ' + @Datos_ESCUELA + ' SET DIRECCION =CALLE + '' '' +NUMERO + '','' + LOCALIDAD'
  8.  
  9. EXEC sp_executesql(@qry)

Agradezco en todo lo que vale vuestra desinteresada colaboracion, y pido disculpas por mi ignorancia.