Viewing 15 posts - 16 through 30 (of 46 total)
CtrlAltDel,
That won't work because what if @filter1 is NULL and col3 is NULL? The SELECT won't return anything if @filter2 has a value.
Basically, if your database fields contain NULLs,...
October 17, 2003 at 2:25 pm
Jonathan....I'm not sure if your solution will work. For example:
@areaDesignatorID will only be NULL if the user doesn't want to search by that option on the search form. ...
October 17, 2003 at 1:54 pm
Hi Frank,
Regarding your last comment, I can't really place a default in a VARCHAR, because say the user leaves it blank on the form.....like say a Postal Code (or City...
October 17, 2003 at 1:53 pm
Sorry, I started with a simple question and now asking something different. My initial post was due to a problem I was having with ISNULL. Let me use...
October 17, 2003 at 4:00 am
Great. I was hoping for that.
I thought the following would evaluate to true if @areaDesignator and AreaDesignatorID were NULL...but of course it doesn't:
WHERE...
October 16, 2003 at 8:42 pm
Sure Frank....I'd be glad to. This approach is a little specific to my needs so you will have to read between the "lines". First, some setup info to...
September 3, 2003 at 3:34 am
GuardData,
I ended up using a cursor approach. What I do, is read in my list an item at a time, "normalize" it (the part that I was hoping the...
September 2, 2003 at 11:51 pm
DataGuard,
I wanted to do the "normalization" in the SELECT statement (thus the reason for a function). From your post, it sounds like that won't be possible and as far...
September 2, 2003 at 4:50 pm
GuardData,
How do I do the FUNCTION RETURN after the SELECT is executed?
--Lenard
September 2, 2003 at 3:29 pm
Frank you can use OUTPUT parameters.......have a look:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;q262499
GuardData, the table that I'm binding actually has a list of masks and "@sql" which I select. But before I...
September 2, 2003 at 12:20 pm
Frank that won't work in a function. Don't you have to explicitly return a variable? Here is what I've come up with so far but am having some...
September 2, 2003 at 2:08 am
Andy,
How would you code something like this in Dynamic SQL? I basically want to grab the value of the field and return it.
SELECT @telephone = Telephone FROM...
September 1, 2003 at 3:37 pm
Yes, I would be passing an ID as well. I forgot to show it.
Regarding the lookup table....I want to avoid that. I guess dynamic sql would...
September 1, 2003 at 1:44 pm
If you are trying to share variables between stored procedures, have a look at this
http://www.algonet.se/~sommar/share_data.html
--Lenard
August 29, 2003 at 12:38 pm
ccundy,
Here is a link you may find of interest:
http://www.algonet.se/~sommar/arrays-in-sql.html
He has a couple of functions that convert lists into tables.
--Lenard
August 28, 2003 at 11:10 am
Viewing 15 posts - 16 through 30 (of 46 total)