Viewing 15 posts - 54,541 through 54,555 (of 59,067 total)
Kenneth Wilhelmsson (10/18/2007)
It will solve all your problems, no need for complex functions or anything else exotic.
The main problem: How do...
October 18, 2007 at 7:59 am
the first solution didnt work. because of the Tally i didnt implement...
ps.
meanwhile the client "revised" some specs, so i do need these numbers now. but i still need to pull...
October 18, 2007 at 7:53 am
... and, we have to help "application developers" learn how to program in T-SQL 😉 Although CLR's are helpful for those that don't really know T-SQL or set based...
October 18, 2007 at 7:46 am
PS... can you be a bit more specific on what you're UDF does and post the code? UDF's are inherently NOT set-based... might be able to show you a...
October 18, 2007 at 1:19 am
Yeaup... that would also be one of the problems...
Change the EXISTS to a regular join on a "derived" table or a normal table and see if things don't pick up...
October 18, 2007 at 1:17 am
Max Yasnytskyy (10/18/2007)[hrAre you trying to say that to solve this sort of problem any additional table is required?
Heck no... there are dozens of slower ways to do it :D...
October 18, 2007 at 1:08 am
Max Yasnytskyy (10/17/2007)
I haven't ever used SQL Server 7 fortunately or unfortunately but what is wrong...
October 18, 2007 at 1:05 am
Andras Belokosztolszki (10/17/2007)
Basically to do this in SQL and calculating this in queries is very inefficient and does not scale. You...
October 18, 2007 at 12:58 am
Max Yasnytskyy (10/17/2007)
Yeah, but he is using some sort of prefilled table isn't he?
Yep... you should try it 😀 Works well on a lot of things and the guys...
October 18, 2007 at 12:20 am
mrpolecat (10/17/2007)
October 17, 2007 at 11:46 pm
Max Yasnytskyy (10/17/2007)
I have found an interesintg function in msdb, seems like it is working much better ...
Ummm... this is an SQL Server 7/2000 forum... wanna tell us how well...
October 17, 2007 at 11:42 pm
Depends... index scans can be worse than a table scan because even after the index scan, it still has to get the data.
October 17, 2007 at 11:22 pm
The EXISTS with the sub-query, probably a correlated one at that, needs to be replaced with a join.
October 17, 2007 at 11:19 pm
So... you've never seen recursive CTE's? You just don't need to use a CLR for such a thing... the tools are in T-SQL... you just need to learn to...
October 17, 2007 at 5:07 pm
Viewing 15 posts - 54,541 through 54,555 (of 59,067 total)