Viewing 15 posts - 4,651 through 4,665 (of 6,486 total)
Why use a cursor or a loop at all?
insert testSP2
select newID(), id
from testSP;
update testsp
...
February 20, 2008 at 8:38 am
I'm thinking I wouldn't put the sub-query there, especially since it's returning a single scalar value.
you're also using 4 subqueries when you only need 1. Look at this rewrite...
February 20, 2008 at 8:18 am
Don't use the alias in the GROUP BY.
You probably want:
select EmpID as [Employee_ID] from dbo.Employee group by EmpID
Or perhaps just simply use the DISTINCT, since you don't...
February 20, 2008 at 7:42 am
Sometimes things like that take a little while to catch on. Just because there wasn't a lot of attendance doesn't mean that it won't pick up. Of course...
February 20, 2008 at 7:29 am
It functionally IS a N+M cluster. You just likely want to have 2 separate IP's and 2 separate DNS names to go long with that, which will then line...
February 19, 2008 at 9:51 pm
Yes - you would need named instances. Your two clustered instances would have to have nothing in common or overlapping, just in case one single server needs to run...
February 19, 2008 at 9:18 pm
Also - a couple of tips when this happens:
- check how many rows DID process. if you have 8000 rows, then chances row #8001 in the file has...
February 19, 2008 at 9:13 pm
It looks to me that your usage is mostly wrong. Your try does some testing, but does nothing that would raise an error (which is what would instantiate the...
February 19, 2008 at 2:27 pm
Loner (2/19/2008)
February 19, 2008 at 11:57 am
Christopher Ford (2/19/2008)
Kinda like finding chicken's teeth and my chicken just flew away to a different state.
Eh.... What? :blink:
---
Frank & Kevin both bring up some very valid points though...
February 19, 2008 at 11:45 am
Jeff Moden (2/19/2008)
February 19, 2008 at 10:45 am
ALZDBA (2/19/2008)
Thanks 🙂OT bis
Is there an "common CLR pittfals" link somewhere ?
I haven't found a good one yet.
The short list I have is this:
- SQL CLR...
February 19, 2008 at 10:14 am
Ahhh - a hierarchy.
While you might do it with a cursor - it probably would be better to use an iterative process using a temp table like the...
February 19, 2008 at 9:47 am
Jeff Moden (2/19/2008)
February 19, 2008 at 9:25 am
Marios Philippopoulos (2/19/2008)
Heaps don't have page splits.
An update of a VARCHAR column in...
February 19, 2008 at 9:09 am
Viewing 15 posts - 4,651 through 4,665 (of 6,486 total)