Viewing 15 posts - 56,266 through 56,280 (of 59,067 total)
Haven't tested it but learned a long time ago never to mix aggragation and formatting in a single select...
SELECT d.Cases,d.Status
FROM
(
SELECT
count(r.status_id) As...
May 31, 2007 at 5:23 am
Peter,
Now you know why I asked...
was pretty sure the Order By wouldn't do it...
May 31, 2007 at 5:18 am
Heh... that's funny... but I get what Peter is suggesting with that simple query... pass the data to the client box and let the client box work on the solution. ...
May 31, 2007 at 5:13 am
Will that put it in the order the OP requested?
May 30, 2007 at 11:15 pm
Chris,
Turn that SELECT into a CTE instead of using a table variable...
May 30, 2007 at 11:07 pm
| Anther motivation for the addition of a PK is this. MSSM won't update or delete a row through the... |
May 30, 2007 at 8:15 pm
Dang... I still don't have access to SQL Server 2005 ... I love the CTE's that use that wonderful Rownumber Over Partition...
Antonio... can you tell us how long that took...
May 30, 2007 at 8:06 pm
I did read that post... pretty well thought out and glad to be part of those thoughts. You covered a good number of the points that I was trying to...
May 30, 2007 at 8:03 pm
Heh... wise old fellow once said "To measure something is to change its state." No exception with SQL... sometimes, ya just gotta bite the bullet to find out what's going...
May 30, 2007 at 7:49 pm
Heh... I'm all for that especially with present company ![]()
May 30, 2007 at 7:46 pm
What did you end up with, David?
May 30, 2007 at 7:42 pm
Tomm's code for an upsert is good... think I'd do it in a stored procedure rather than DTS, but it'll do the trick either way.
I still use BULK INSERT and...
May 30, 2007 at 7:26 pm
Heh... you're welcome, Chris...
But that's just step one... (make it work)
Here's the code to generate a million row test table for step two... (make it work fast)
May 30, 2007 at 8:28 am
Viewing 15 posts - 56,266 through 56,280 (of 59,067 total)