Viewing 15 posts - 5,716 through 5,730 (of 6,486 total)
Embed a CASE statement into the SELECT... syntax. You're restricting yourself to one group only, so there's no sense in using a GROUP BY clause.
Something like:
select
...
November 19, 2007 at 8:53 am
Jez (11/19/2007)
But the question remains - should I extract the records I need from...
November 19, 2007 at 8:14 am
pjesrani (11/18/2007)
yes it exceeds the no of cells
By the way - you didn't mention in which direction it "exceeds". If vertically (i.e. rows>65K) then yes - the options discussed...
November 19, 2007 at 7:53 am
GilaMonster (11/15/2007)
Matt Miller (11/15/2007)
November 16, 2007 at 11:08 pm
Jeff Moden (11/15/2007)
Thanks for fixing...
November 15, 2007 at 5:41 pm
Jeff Moden (11/15/2007)
Took a while to get the code realigned correctly after the copy/paste operation
Matt,
Reformatting code that you've copied from those "Code" windows is actually pretty easy (although I wish...
November 15, 2007 at 5:28 pm
use testing
go
IF OBJECT_ID('dbo.weekdays') IS NOT NULL
DROP FUNCTION dbo.weekdays
go
--steal code directly from Jeff Moden's article and turn into a function
create function dbo.weekdays(@startdate datetime,@enddate...
November 15, 2007 at 3:46 pm
I've been beating the heck out of this drum lately - but an actual regular expression will help you find all of the various issues you're looking at here. ...
November 15, 2007 at 3:01 pm
Jeff Moden (11/15/2007)
No noticeable difference in processing time.
You mean on the dynamic SQL by itself or the whole Phone Test #1?
Thanks for the great tip (we call them "oolies" in...
November 15, 2007 at 2:27 pm
AM -
Jeff Moden and I were just having a bit of a conversation about that in another thread. He just posted an example that will work on a...
November 15, 2007 at 2:19 pm
Jeff - I was going to quote you...but I didn't know what to pick up. You're right - most of the examples in there are fairly disgusting SQL.
That being...
November 15, 2007 at 2:00 pm
Jeff - one last update on Phone Test #1.
I got the results to match. two smallish updates:
- changed the AND t.N < LEN(m.Doc)-14 to AND t.N < LEN(m.Doc)-11...
November 15, 2007 at 1:20 pm
Jeff Moden (11/15/2007)
Matt,
What does the orginal data look like and what does it end up looking like after your concatenation?
The original data is the output of Phone Test #1....
November 15, 2007 at 11:37 am
First - test results. Took a while to get the code realigned correctly after the copy/paste operation. I made one change to your code (making the @sql variable...
November 15, 2007 at 11:36 am
You can get a running start at it by filtering for things that contain <\. By far and large I don't think you will find that sequence "in the...
November 15, 2007 at 9:49 am
Viewing 15 posts - 5,716 through 5,730 (of 6,486 total)