Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic Where Clause In Stored Procedure
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00634614
Message ID:
00634622
Vues:
27
This message has been marked as a message which has helped to the initial question of the thread.
>I am building a QBE type form. There are 8 fields that the user might enter data into. If they enter data into the field, then I want to include that field in the where clause. Can you use IF's when building the stored procedure?
>
>Thank
>
>Kirk

Yes, you can. You can build a select command as a string and than execute it using T-SQL command EXECUTE or system stored procedure sp_executesql.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform