Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optional query parameter
Message
De
19/10/2007 14:03:28
Xiaodong Yan
Better Database Solutions
Spring, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
Optional query parameter
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01262249
Message ID:
01262249
Vues:
51
Hi,

Have an SqlDataAdapter to query a table. To pull records with certain agentid, "Where AgentID=@AgentID" worked just fine.

How can I use the same query to pull either records for a certain agentid, or ALL agent records? i.e., optional parameter?

Thanks,
Xiaodong
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform