Tour de Lanzamiento 2005 - TECHNET

17/11/2005 - 20:47 por Guido Catalano | Informe spam
¿Valdrá la pena que viaje dos días desde La Plata y me pelee con mi jefe
para que me deje ir?




http://msevents.microsoft.com/CUI/E...px?EventID32284023&Cultur
e=es-AR

OT:
En una parte dice "Maximiliano Acotto (Fundición San Cayetano)"
¡¿¡¿fundicion?!?!





Guido Catalano
Insetec informática

Preguntas similare

Leer las respuestas

#21 Gustavo Larriera [MVP]
19/11/2005 - 03:14 | Informe spam
Pues no, no repro. Todo funciona ok acá:

create database test
go
use test
go
create table mitabla (gtwid int, zone varchar(20))
go

IF EXISTS(SELECT * FROM sysobjects WHERE NAME = 'GTW' AND type = 'U')
UPDATE mitabla SET ZONE =(SELECT TOP 1 ZONE FROM GTW WHERE GTWID = 15)
WHERE GTWid = 15
ELSE
PRINT 'no existe'

Gustavo Larriera
Uruguay LatAm
Blog: http://sqljunkies.com/weblog/gux/
MVP profile: http://aspnet2.com/mvp.ashx?GustavoLarriera
Este mensaje se proporciona "COMO ESTA" sin garantias y no otorga ningun
derecho / This posting is provided "AS IS" with no warranties, and confers
no rights.
"Mauro" wrote in message
news:
no deberia hacer esto pero bueno...esta es la sentencia casi exacta, el
select from tzone tampoco sirve ya que no existe en la base esa tabla,
si comento el WHERE GTWid = 15, funciona. de todos modos jamas deberia ni
siqueira mirar lo que esta en el if si no se cumple(insisto) y esto ya me
huele a BUG, le copie todas las propiedades de la base de ejemplo y sigue
sin funcionar.

IF EXISTS(SELECT * FROM sysobjects WHERE NAME = 'GTW' AND type = 'U')
UPDATE mitabla SET ZONE =(SELECT TOP 1 ZONE FROM GTW WHERE GTWID = 15)
WHERE GTWid = 15


"Gustavo Larriera [MVP]" wrote in message
news:
if exists (select * from sysobjects where name = 'GTW' and type = 'u' )
print 'existe'
else
print 'no existe'

Funciona perfectamente en mi SQL Server 2005.

Gustavo Larriera
Uruguay LatAm
Blog: http://sqljunkies.com/weblog/gux/
MVP profile: http://aspnet2.com/mvp.ashx?GustavoLarriera
Este mensaje se proporciona "COMO ESTA" sin garantias y no otorga ningun
derecho / This posting is provided "AS IS" with no warranties, and
confers
no rights.
"Mauro" wrote in message
news:
> if exist(select * from sysobjects where name 'GTW' and type = 'u' )
>
> y el error es:
> invalid columnname gtwid
>
> esto en el 200 funciona bien
>
> "Gustavo Larriera [MVP]" wrote in message
> news:
>> Puedes completar la información para poder reproducir el problema tal
>> cómo
>> te sucede?
>>
>> - qué pones exactamente en la SELECT del IF EXISTS
>> - cuál es el mensaje exacto de error que recibes
>>
>>
>>
>> Gustavo Larriera
>> Uruguay LatAm
>> Blog: http://sqljunkies.com/weblog/gux/
>> MVP profile: http://aspnet2.com/mvp.ashx?GustavoLarriera
>> Este mensaje se proporciona "COMO ESTA" sin garantias y no otorga


ningun
>> derecho / This posting is provided "AS IS" with no warranties, and
>> confers
>> no rights.
>> "Mauro" wrote in message
>> news:
>> > haremos? entonces quizas me puedas ayudar
>> >
>> > tengo en tsql2000 una sentencia :
>> >
>> > if exists(select algo en la sysobjetcs)
>> > begin
>> > uptade tabla set campo=valor
>> > where campo=1
>> > end
>> >
>> > funciona perfectamente pero en el sql 2005 por mas que no exista el
> objeto
>> > en sysobjects me da un error ya que campo
>> > no existe en la tabla, aunque nunca deberia haber entrado en la
> sentencia.
>> > alguna sugerencia?
>> >
>> >
>> > "Maxi" wrote in message
>> > news:
>> >> Oracle?? y eso???? Desde 2000!!!! haremos una migracion en vivo
>> >> desde
>> >> un
>> >> ambiente 2000 a 2005, veremos mirror, veremos viejos querys vs


nuevos
>> > querys
>> >> (TSQL2000 Vs Tsql2005), veremos monitoreo, veremos BI, Seguridad,
>> >> Integration Service, etc ,etc!!
>> >>
>> >>
>> >>
>> >>
>> >> Salu2
>> >> Maxi [MVP SQL SERVER]
>> >>
>> >>
>> >> "Mauro" escribió en el mensaje
>> >> news:
>> >> > uhhhhh desde 2000? u Oracle?
>> >> >
>> >> > "Maxi" wrote in message
>> >> > news:
>> >> >> SQL2005!!!! una migracion en vivo
>> >> >>
>> >> >>
>> >> >> Salu2
>> >> >> Maxi [MVP SQL SERVER]
>> >> >>
>> >> >>
>> >> >> "Mauro" escribió en el mensaje
>> >> >> news:%
>> >> >> >y que hay de interesante en el evento?
>> >> >> > "Maxi" wrote in message
>> >> >> > news:%
>> >> >> >> Hola va a valer la pena :-)
>> >> >> >>
>> >> >> >> > OT:
>> >> >> >> > En una parte dice "Maximiliano Acotto (Fundición San
>> >> >> >> > Cayetano)"
>> >> >> >> > ¡¿¡¿fundicion?!?!
>> >> >> >> >
>> >> >> >>
>> >> >> >> Sii Fundicion San cayetano!! es la empresa en la cual trabajo
> como
>> >> >> >> gerente
>> >> >> >> de sistemas, ¿por?
>> >> >> >>
>> >> >> >>
>> >> >> >> Salu2
>> >> >> >> Maxi [MVP SQL SERVER]
>> >> >> >>
>> >> >> >>
>> >> >> >> "Guido Catalano" escribió en el
> mensaje
>> >> >> >> news:OVJ62%
>> >> >> >> > ¿Valdrá la pena que viaje dos días desde La Plata y me
>> >> >> >> > pelee
> con
>> > mi
>> >> >> >> > jefe
>> >> >> >> > para que me deje ir?
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >
>> >> >
>> >
>


http://msevents.microsoft.com/CUI/E...px?EventID32284023&Cultur
>> >> >> >> > e=es-AR
>> >> >> >> >
>> >> >> >> > OT:
>> >> >> >> > En una parte dice "Maximiliano Acotto (Fundición San
>> >> >> >> > Cayetano)"
>> >> >> >> > ¡¿¡¿fundicion?!?!
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Guido Catalano
>> >> >> >> > Insetec informática
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>






email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una pregunta AnteriorRespuesta Tengo una respuesta
Search Busqueda sugerida