Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick question - what is better parameter or Field value
Message
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Quick question - what is better parameter or Field value
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01326528
Message ID:
01326528
Vues:
48
Hi everybody,

I'm just wondering what would be better in your opinion:
SELECT Registration.*, Schools.SchoolPhone
		FROM dbo.Registration LEFT JOIN Schools ON Registration.School = Schools.School 
AND Schools.SiteID = @SiteID
        WHERE RegistrationID = @RegistrationID
or
SELECT Registration.*, Schools.SchoolPhone
		FROM dbo.Registration LEFT JOIN Schools ON Registration.School = Schools.School 
AND Registration.SiteID = Schools.SiteID
        WHERE RegistrationID = @RegistrationID
In other words, is it better to use parameter or field value? In the first case I would need to adjust several pages to add an extra parameter.

Thanks a lot in advance.

On the second thought - why do I care for one record return? LOL.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform