Viewing 15 posts - 15,721 through 15,735 (of 18,923 total)
This function will run on each line which takes more than than writing it in the select. Secondly, David's version will run only once, therefore much faster than yours...
July 5, 2005 at 10:11 am
I should send the link to sushila... proves I'm not the only one who HTHs guys to add to the posts count
.
July 5, 2005 at 9:56 am
.
BTW if you nuke Quebec yours truly will not be here anymore to save your arse when you screw up a query
July 5, 2005 at 9:31 am
No. Sql server picks up the best sequence to apply the where condition. You can't really have much control on that part (unless you use a case statement).
July 5, 2005 at 9:16 am
That's more like it
.
Shall we dare to ask him why he's doing that?
July 5, 2005 at 9:12 am
Have you tested each case (view/function)?? The optimizer should come up with the same plan.
Since you have a left join am indexed view is out of the question.
I think...
July 5, 2005 at 9:08 am
You know better... I never use that datatype.
July 5, 2005 at 9:02 am
You're almost right
.
declare @str varchar(32)
select @str = '0010A0'
select (ltrim(replace(@str,'0',' ')))
--1 A
select REPLACE(ltrim(replace(@str,'0',' ')), ' ', '0')
--10A0
July 5, 2005 at 8:40 am
They all work fine.. some are just a tad faster... and easier to undertsand
.
July 5, 2005 at 8:27 am
You seem to be the expert on paterns. Do you have a tutorial or a list of exemples of real life pattern searches (bol doesn't offer much in real life...
July 5, 2005 at 7:49 am
You'll have to use dynamic sql in this case. Make sure that the users cannot access those values in any way (other than picking the db from a combo).
July 5, 2005 at 7:19 am
Make one proc per server and call the good server with an if/else.
July 5, 2005 at 7:03 am
can you paste the plans... maybe we can spot something you missed?
July 5, 2005 at 6:35 am
Viewing 15 posts - 15,721 through 15,735 (of 18,923 total)