Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not figure out if this possible
Message
 
 
À
03/03/2009 07:06:45
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01385189
Message ID:
01385194
Vues:
52
>>Hi everybody,
>>
>>Here is a question http://forums.asp.net/p/1390729/2979048.aspx#2979048
>>
>>Using one SP is it possible to return number of records in CTE in the output parameter as well as the actual select result?
>>
>>Thanks in advance.
>
>How about:
>
>SELECT * FROM CTE
>SET @TotalCount = @@ROWCOUNT
>
But we need to farther filter the result of cte. We just need to return the original number.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform