Viewing 13 posts - 61 through 74 (of 74 total)
There's also a lot of good information here:
February 6, 2012 at 8:27 am
Without knowing a lot more about how your system is configured, it would be very difficult to make suggestions. For example:
- What RAID levels are you using and how many...
February 6, 2012 at 7:54 am
Yes, but it can be messy. Depending on how far you want to take it, here are some links:
February 3, 2012 at 3:36 pm
The first statement creates the foreign key in an untrusted state. It does this so that the key is guaranteed to be created, even if there is bad data, like...
February 2, 2012 at 2:26 pm
We see this kind of thing all the time. In our case, it's not a dramatic as in yours, but we'll have procedures that take 1min to run the first...
February 2, 2012 at 6:37 am
I agree about the uniqueidentifier probably not being the best choice, but leaving that alone, here's something that may work for you.
This doesn't read things row by row but I'm...
February 1, 2012 at 12:47 pm
Could you post the table and index DDL? It would probably help give you a better answer.
Something that jumps out is that you have an OR in your select...
February 1, 2012 at 11:35 am
I was about to type nearly the same thing venoym, but you beat me to it.
One thing I would also check is whether or not it is possible to make...
January 31, 2012 at 2:38 pm
Please forgive my earlier posts where I was attempting to kill a mouse with a tank. This is much simpler. I don't know why I didn't think of it before:
SELECT
...
January 25, 2012 at 2:02 pm
this isn't much better, but it gets rid of the DISTINCT in the SELECT
WITH CTE
AS (
SELECT
1 AS...
January 25, 2012 at 12:53 pm
A couple things:
- It's ugly
- If you have more than 32 rows in your base table, you will have to use the MAXRECURSION query hint
- If you have more than...
January 25, 2012 at 12:23 pm
Normally I do too, but they were in the original example. I was more interested in people's thoughts on using CROSS APPLY instead of a CTE.
January 24, 2012 at 12:02 pm
for the basic example, why not just do something like
SELECT usercount, Period, monthval
FROM (
SELECT MONTH( UserCreationDate ) AS monthval,
...
January 24, 2012 at 11:50 am
Viewing 13 posts - 61 through 74 (of 74 total)