Viewing 15 posts - 391 through 405 (of 1,473 total)
The setup portion is what I was referring to in my last post. Please provide sample data like this in the future, it makes it easier on us. ...
November 25, 2009 at 10:48 am
Sulaman, could you please provide the sample data in the manner explained by the article in my signature? That would make it much easier for us to work with...
November 25, 2009 at 9:47 am
Unfortunately, there isn't a way that is quite that easy in 2000.
For a quick and dirty approach, you could do something like:
SELECT SUM(usecounts) TotalUses, pagesused, sql
FROM master..syscacheobjects WHERE usecounts >...
November 25, 2009 at 9:39 am
Ian, Manu, thanks for the feedback. I meant to include in the original post that the table did not have any blob columns in it, sorry about that. ...
November 25, 2009 at 7:35 am
The AND NOT's can get pretty confusing, so just to explain this a bit more:
The problem is the logic of your where clause. Here's what you're saying(assuming case sensitivity...
November 24, 2009 at 8:36 pm
Lynn Pettis (11/24/2009)
November 24, 2009 at 8:10 pm
sharonrao123 (11/24/2009)
Thanks for your suggestion the "stuff" worked like a charm. You are a star
Just so that people reading this later don't get the wrong idea, can you confirm the...
November 24, 2009 at 7:54 pm
Jeff Moden (11/24/2009)
The biggest reason is that it violates normalization and every time you do that, it will come back to haunt you sometime in the future...
This strikes...
November 24, 2009 at 7:51 pm
Yep, I changed the aliases a few times and missed that one, my fault. (The parser would have caught that one if I had checked it, so that one...
November 24, 2009 at 7:43 pm
Welcome to the forums. This should get you pretty close, but it's untested; so I may have screwed up an underscore or 12. To get tested code in...
November 24, 2009 at 4:28 pm
Why do you want to get rid of the temp table? Or do you mean you'd like to get rid of the while loop that relies on the temp...
November 24, 2009 at 4:10 pm
Jeff Moden (11/23/2009)
November 24, 2009 at 9:21 am
Using that format, you're lowering your pool to 16 from 36, which only gives you a total 16,777,216 possible permutations and increases your rate of failure over what was originally...
November 24, 2009 at 8:46 am
That seems wrong to me still. I think it should probably be:
SELECT [CountryCode], sd.name
FROM MyDB.dbo.Country c
LEFT JOIN MASTER.dbo.sysdatabases sd (NOLOCK)
...
November 23, 2009 at 11:09 pm
A couple facts about this setup:
You can never rely on 2 random numbers to be unique, no matter how big the pool. Even in a pool of 40 billion...
November 23, 2009 at 11:01 pm
Viewing 15 posts - 391 through 405 (of 1,473 total)