Hola compañeros:
Segun tengo entendido que hay ciertas desventajas para usar dentro de un SP,
querys como esta forma:
SET @CommandString = 'SELECT C.CongressID, C.CongressName, ' +
' dbo.StatusToText(2,C.CongressType) AS CongressType, C.StartDate,
C.EndDate, C.LimitDate, C.InscriptionCost, C.AccomodationsCost,
C.AirticketCost, ' +
' dbo.StatusToText(3,C.Status) AS Status, C.Status AS StatusCode, ' +
' (SELECT COUNT(*) ' +
' FROM Scholarship S ' +
' JOIN AdminUser AU ' +
' ON AU.AdminUserID = S.CreatedBy ' +
@WhereSQString +
' ) AS ScholarshipToAuth ' +
' FROM Congress C ' +
@WhereString
EXECUTE (@CommandString)
RETURN(@@Error)
Me gustaria saber si hay una forma de hacer esto pero sin el manejo de un
query dinamico:
Salu2 Cordiales :-))
(""'·._.·L.I. Daniel Villa·._.·'"")
Leer las respuestas