Viewing 15 posts - 1,126 through 1,140 (of 3,348 total)
VegasL (1/14/2016)
Thanks Guys do you mean something like this
No, we mean it exactly as we wrote it. What you posted is a sort of random mish-mash of things we posted...
January 15, 2016 at 5:21 am
Sweetbee870 (1/14/2016)
I do have a question when joining multiple tables together I do know we use the like fields within each table. As you add...
January 15, 2016 at 5:20 am
TomThomson (1/13/2016)
SQLRNNR (1/12/2016)
January 14, 2016 at 7:00 am
A very good question and I am absolutely happy with it.
One thing that is missing is the explanation of WHY in this specific case enforcing the order impacts the performance....
January 14, 2016 at 4:53 am
ScottPletcher (1/13/2016)
January 13, 2016 at 2:27 pm
You probably have users that have dbo rights. Those bypass all security checks. (Or users do the deletes through stored procedures that are owned by the table owner, in which...
January 13, 2016 at 2:09 pm
etl2016 (1/13/2016)
The 20 tables are actually intermediate 'result sets' each of which are LEFT OUTER JOIN-ed to the other incrementally.
I believe, whether its 20 physical tables or 20 data sets...
January 13, 2016 at 2:05 pm
ScottPletcher (1/13/2016)
Slapping an identity on the table isn't particularly damaging in and of itself.
It actually is. If not needed, it is a waste of storage both on disk, in all...
January 13, 2016 at 1:59 pm
First, create a table source (e.g. temporary table, CTE, derived table, ...) that has all the weeks you need to include in your report.
Second, replace the
From @Temp
Where (Week_no IN...
January 13, 2016 at 1:53 pm
Not sure how you do a cursor over a stored procedure result. If you do it by storing it in a temporary table then cursoring over that, then my remark...
January 13, 2016 at 1:44 pm
ScottPletcher (1/13/2016)
In particular, don't just slap an identity on the tableand assume that's automatically the best clustering key.
Fixed that for you. 😉
January 13, 2016 at 9:31 am
Based on what logic is that row returned? The date listed is not within the next two months, and the course listed is not the course you include in the...
January 13, 2016 at 6:02 am
Okay, I have not run your code yet, but I did notice that you do not have any ORDER BY in your cursor definition - so how do you ensure...
January 13, 2016 at 5:45 am
Gail's observations are correct. Some more input:
* If cost threshold for parallelism is at 50 and you still see lots of CXPACKET (meaning: lots of parallel stuff), then you are...
January 13, 2016 at 5:33 am
Thanks for the additional information. Please repost the INSERT statements for the CourseInstance table, using an unambiguous date format: yyyymmdd. Now I have no idea how to interpret the dates...
January 13, 2016 at 5:10 am
Viewing 15 posts - 1,126 through 1,140 (of 3,348 total)