Viewing 15 posts - 5,941 through 5,955 (of 6,486 total)
Well - it's certainly not a cartesian product, since you have a "real" set of join criteria.
I don't think it will make a lot (if any) difference, but I'm somehow...
October 26, 2007 at 7:07 am
Each PIVOT operation can only affect one aggreation operation at a time. If you need two separate aggregate operations - use them as separate derived tables and join them...
October 25, 2007 at 10:25 pm
But - what exactly IS a data layer "without business logic"?
The data structure itself is "business logic".
The indexing scheme is dictated by "business logic".
The Keys, primary or foreign...
October 25, 2007 at 10:02 pm
I remember seeing those and we had had a bit of a disagreement. Not that they're not a reasonable starting point - I'm just not convinced they cover all...
October 25, 2007 at 9:50 pm
This all gets back to a platform for actually implementing the SecureOS concept. Build the minimal core with no "windows or doors in", except for one pre-established protocol for...
October 25, 2007 at 12:30 pm
Sorry - have no idea if it will work against 7.0.
If anything I have a gut feeling that the DESC syntax is invalid on 7.0.
October 25, 2007 at 12:16 pm
Point is - I'd advocate actually leveraging reporting services, Crystal reports, Business Objects, or something like that to steer them in the right direction. I mean - that's what...
October 25, 2007 at 12:08 pm
Relational integrity can't be guaranteed from the business layer alone. It just can't - you could skip some logic at any time, and oops, there it goes - you...
October 25, 2007 at 11:26 am
I'd have to agree with Grant - it very quickly becomes an unsupportable solution. You're just asking for trouble.
SSMS given to an unqualified user (even with only read capability...
October 25, 2007 at 10:59 am
Here's an example - adapt it to using your table and field names.
use testing
go
drop index endmatric.ix_em_coend
--create the index that will help with the sequencing.
create index ix_em_coend on endmatric(company,date_start desc)
--grouping will...
October 25, 2007 at 10:27 am
If there is something you could count/aggregate to give some idea that things are consistent. e.g. sum of all orders, or averages of the time fields, etc....
something...
October 25, 2007 at 9:09 am
rose_red1947 (10/24/2007)
Try with SET clause before @RESULT = Execute @SQLQuery
No....
Let's try this again. from BOL:
The types of statements that are valid in a function include:
DECLARE statements can be...
October 25, 2007 at 8:48 am
I have the profiler results. They're attached, but I summarized them a bit.
I ran it twice, once as is, and once after adding a CHAR(300) field (so that the...
October 25, 2007 at 8:13 am
running a cast the the string as is returns a datetime value - why are you throwing in the dashes?
e.g.
CAST('20071022' as datetime)
October 24, 2007 at 4:44 pm
you also have option III
delete A
from dbo.a A inner join dbo.Stg_a B with (nolock)
on A.id = B.id
where YearMonth = @PrevDayYoMo
avoiding the correlated subquery will tend to run a LOT...
October 24, 2007 at 3:56 pm
Viewing 15 posts - 5,941 through 5,955 (of 6,486 total)