Viewing 2 posts - 1 through 2 (of 2 total)
Self-generating code is not a good thing. Non-ecsaped string data will cause you pain and maintaining the code will be terrible.
SELECT * FROM Production.Product
WHERE
(@ProductNumber IS NULL OR...
September 25, 2009 at 2:17 am
#1058378
What if you would like to query using a where clause?
For example...
SELECT COUNT(*) FROM books WHERE title LIKE '%Harry Potter%'
Or...
SELECT COUNT(*) FROM invoices WHERE deleted = 0
I could be wrong...
September 3, 2009 at 2:57 am
#1048590