Viewing 15 posts - 16 through 30 (of 144 total)
ouch...Thanks.
April 16, 2007 at 3:32 pm
Thanks all! I tend to go with what is recommended industry wide. On with the brackets!
April 16, 2007 at 3:32 pm
what if you want to check for zero or one, like it's boolean. Or check for an empty string?
April 16, 2007 at 3:10 pm
the reason I need to perform an IF on that @TermID is because the user may have not selected a TErm in the Search UI. Thus, if that param is...
April 16, 2007 at 2:47 pm
Why are you using dynamic sql or this ?
because, I have a bunch of params incoming from a search interface where the user is able to either select or not...
April 16, 2007 at 2:45 pm
I know about the need for it with reserver words, but, for example our dba always puts it around everything. Also, thew new SQL Prompt by RedGate does also.
April 16, 2007 at 2:10 pm
here, someone else found a way for it to work
FROM
[dbo]
.[Product] P WITH (NOLOCK)
WHERE
...
February 27, 2007 at 9:27 pm
this is one reason I hate SQL. we have to come up with crazy ass ways to get it to do what we want cause it's not an OOP language....
February 27, 2007 at 9:26 pm
thanks for your pointers though!
regards
February 13, 2007 at 2:02 pm
Ok, figured it out on my own:
Declare @Keyword varchar(30),
@KeywordLen tinyint,
@ProductID int,
@Pos smallint,
@StartPos smallint,
@EndPos smallint,
@Result varchar(1000),
@ResultToReturn...
February 13, 2007 at 2:01 pm
oK, looks like I'm slowy working my way through this one myself. I found out that no matter what, after the IF statements, @valid is never being set to true
February 13, 2007 at 1:53 pm
Ok, I tested this here
Declare @Keyword varchar(30),
@KeywordLen tinyint,
@ProductID int,
@Pos smallint,
@StartPos smallint,
@EndPos smallint,
@Result varchar(1000),
@valid int,
...
February 13, 2007 at 1:42 pm
so going back to my example again now (updated):
Declare @Keyword varchar(30),
@KeywordLen tinyint,
@ProductID int,
@Pos smallint,
@StartPos smallint,
@EndPos smallint,
@Result varchar(1000),
...
February 13, 2007 at 1:28 pm
I am thinking this will also not work:
SELECT
@MP3Pos = CHARINDEX('MP3', @ProductDescription,...
February 13, 2007 at 1:16 pm
I don't understand why you're doing this
@WavPos
< @MP3Pos OR @MP3Pos = 0
The whole idea is to check whether...
February 13, 2007 at 1:08 pm
Viewing 15 posts - 16 through 30 (of 144 total)