General information
Title:
Optional query parameter
Environment versions
Network:
Windows 2003 Server
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only