15,897,273 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Wendell D H (Top 5 by date)
Wendell D H
29-Sep-15 15:57pm
View
87,045 Aliens after 30 days? :-)
Wendell D H
29-Sep-15 13:52pm
View
I kind of like this problem. :-) I am going to do this for the sake of it. I am not going to post code for reasons mentioned by others, but does anyone have the final answer?
Wendell D H
28-Sep-15 13:59pm
View
OK. I see the problem... I am not sure why you have to have a like, but anyway. Try... ICITEM like @PRMICITEM + '%'.
This will only work with string types varvhar, char, etc... IDK, but I believe LIKE will only work correctly with string types. It only makes sense with string types anyway. If ICITEM is an integer, the using like makes no sense. But that's the best information I can provide. Good Luck.
Wendell D H
28-Sep-15 13:28pm
View
No. See the 'OR'... If @PRMICITEM is null, then it will not put any restrictions on ICITEM. If @PRMICITEM is 3, then it will only get items with ICITEM = 3. Did you try it? Make sure you have the parenthesis correct. (ICITEM = @PRMICITEM OR @PRMICITEM IS NULL)
Wendell D H
28-Sep-15 13:20pm
View
Perhaps I still don't under stand...
(ICITEM = @PRMICITEM OR @PRMICITEM IS NULL)
Assuming @PRMICITEM is the parameter...
If @PRMICITEM is three, then it will return all records with ICITEM equal to three. If @PRMICITEM is null (which I am assuming is what is meant by empty) the it will not put any restrictions on ICITEM.