Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/04/2011, 09:19
dezagus
 
Fecha de Ingreso: abril-2010
Ubicación: Ping: BSAS - Arg
Mensajes: 791
Antigüedad: 14 años
Puntos: 25
Respuesta: Problema con USE en MSSQL

Solucionado:

DECLARE @id varchar(1000)
USE TableInc;

SET @id = (SELECT TOP 1 IDCUENTA FROM HelPJ ORDER BY IDHELPJ DESC);

USE Mytable;
SELECT UserID FROM GameInfo00 WHERE UserID = @id;