Viewing 15 posts - 6,121 through 6,135 (of 7,636 total)
Brian:
There are a couple of ways to do this. One is to left-fill the individual keys before the get added into the overall sortkey. So instead of:
100.10
30.20
you would...
August 1, 2008 at 1:35 pm
That's what the brackets [] are for:
DROP INDEX
[PK_PPRD_Metrics-2147478316]
ON PPRD_Metrics
August 1, 2008 at 1:09 pm
Please do not cross-post.
August 1, 2008 at 12:49 pm
And, if you are really hung up on using JOin, here is another example, but really, there is no reason to beleive that this query will generally perform significantly different...
August 1, 2008 at 12:33 pm
EXISTS can be faster than IN (but only sometimes), so here is an example:
Select Distinct RenewalID, RenewalReference
From Renewals r1
Where NOT EXISTS( Select *
From Renewals r2
Where r2.RenewalStatusCode...
August 1, 2008 at 12:28 pm
winston Smith (8/1/2008)
August 1, 2008 at 12:26 pm
Try this:
Select Distinct RenewalID, RenewalReference
From Renewals
Where RenewalReference NOT IN(
Select r2.RenewalReference
From Renewals r2
Where RenewalStatusCode = 'ACT'
)
August 1, 2008 at 12:05 pm
Afraid that I do not know, Grant. Maybe someone else does?
August 1, 2008 at 11:42 am
Ganesh Babu (8/1/2008)
But now I noticed that, the whole database gets locked. I could not query any other tables.:(.
Off-hand, it sounds like it is having to expand the database....
August 1, 2008 at 10:01 am
I would suggest using BULK INSERT. Check it out in BOL (Books Online), especially the XML section.
August 1, 2008 at 9:40 am
jcrawf02 (8/1/2008)
By the way, it's very big of you to contribute to the same thread as Jeff, when he's obviously anti-RBARry, but just can't spell your name . . .:hehe:
Heh,...
August 1, 2008 at 9:12 am
You can certainly get this behavior with COUNT(ColName), but it's not supposed to happen with COUNT(*).
July 31, 2008 at 2:09 pm
Sounds like a bug in SQL Server to me then, unless there is more to these commands than we are being shown.
July 31, 2008 at 2:05 pm
COUNT(*) is exact and correct. SysIndexes is approximate and sometimes incorrect.
July 31, 2008 at 1:07 pm
Viewing 15 posts - 6,121 through 6,135 (of 7,636 total)