|
-
Nov 8th, 2006, 12:47 PM
#1
Thread Starter
New Member
[RESOLVED] Null Value into SQL Para Query
Is there syntax to pass a null value into a MS SQL 2000 database query set up for a parameter value so that the query will disregard the parameter? I've encountered this situation with both ASP 2.0 dataset added to a web site and a VB.net data adapter filling a dataset. With a query using multiple filter criteria using the =@ParamName within the query I hope there is syntax to tell the query to disregard one or more filter criteria not used. Otherwise I'll need a large combination of queries to handle all possible combinations of filter items selected. If yes, I'd love to see a code snippet. Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|