Viewing 15 posts - 4,741 through 4,755 (of 5,590 total)
Paul White (2/23/2010)
WayneS (2/23/2010)
Paul White (2/22/2010)
Totally awesome job there Wayne.Fixed that for you, Paul. 😀
... but seriously, Thanks!
:laugh: funny :laugh:
Payback... just couldn't resist. 😛
February 23, 2010 at 2:05 am
Loops, by their very nature, process things Row-By-Agonizing-Row. SQL is a set-based language, and thus performs best with set-based code.
If you provide the DDL scripts (CREATE TABLE, CREATE INDEX, etc.)...
February 23, 2010 at 2:03 am
Nugby (2/22/2010)
...
To reiterate, can someone can confirm...
February 23, 2010 at 1:56 am
Paul White (2/22/2010)
Totally awesome job there Wayne.
Fixed that for you, Paul. 😀
... but seriously, Thanks!
February 23, 2010 at 1:39 am
RBarryYoung (2/22/2010)
February 22, 2010 at 7:47 pm
You know, the people that help out here are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables affected, and INSERT statements to put...
February 22, 2010 at 6:30 pm
You don't mention if:
1. What the function returns (datatype), and
2. Whether this is a table-valued function, or a scalar-valued function.
So, assuming that this is a table-valued function that returns a...
February 22, 2010 at 6:22 pm
Paul White (2/22/2010)
WayneS (2/22/2010)
I must have missed the updated requirements... let me look at what those are and see what I can do.
The updated test data setup script is in...
February 22, 2010 at 5:57 pm
Steve Jones - Editor (2/22/2010)
Thanks, John. Hopefully it will be done tomorrow 🙂
Nope... Gus seems to be the type that would have the code finish 'bout the time the weekend...
February 22, 2010 at 4:50 pm
reidres (2/22/2010)
I don't want people on my team optimizing for trivial things, and the constraints of the project define those things. Speed may not be essential, or it may....
February 22, 2010 at 3:36 pm
If you use sp_executesql, the dynamic string can be set up so that all variables are parameters, and the parameters also passed in thru sp_executesql. As you add/drop lines in...
February 22, 2010 at 1:53 pm
Ivanna Noh (2/22/2010)
ok - but does the code look ok?I welcome constructive criticism 🙂
I think you want to change your INNER JOIN to a CROSS JOIN (which means remove the...
February 22, 2010 at 1:49 pm
Sean-752587 (2/22/2010)
Hi jcrawf02How would you change it to avoid the cast?
like this... you don't need to cast ROW_NUMBER to an int... it already is
select top 100
case
when ROW_NUMBER() over...
February 22, 2010 at 12:14 pm
GSquared (2/22/2010)
Just to annoy Jeff, here's my "ultimate version":
SOM! :w00t:
February 22, 2010 at 10:04 am
Paul White (2/22/2010)
tstaker (2/22/2010)
I'll second this one... I'd love to see a good article on APPLY.Ok, ok! I'll give it some thought...:cool:
Well??? Haven't you had enough time to think...
February 22, 2010 at 8:56 am
Viewing 15 posts - 4,741 through 4,755 (of 5,590 total)