Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding functions.
Message
De
09/05/2007 11:37:34
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Understanding functions.
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01223806
Message ID:
01223806
Vues:
62
Hey all

I've inherited a system with SQL stored procedures and functions. I want to clarify my understanding.

Would this ...

select @startdate = dbo.myfunction(@startdate)
select @enddate = dbo.myfunction(@enddate)

SELECT * from table where datefield between @startdate and @enddate

be better than this...

SELECT * from table where datefield between dbo.myfunction(@startdate) and dbo.myfunction(@enddate)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform