Viewing 15 posts - 3,001 through 3,015 (of 6,486 total)
Also - there's no compelling reason that everything needs to be rolled onto the SAN on the same day. As a matter of fact - there would be lots...
June 6, 2008 at 10:43 am
If the straightforward method doesn't work - you MIGHT get away with, well, cheating..:)
Create a blank database with the same name and filenames as the one you're trying to attach,...
June 6, 2008 at 10:34 am
I can think of a few ways to do this, but I am not sure how solid or complete the rules are. Are we looking for EVERY instance of...
June 6, 2008 at 10:19 am
Vijay - I think that if you were to try to execute that as a recordset - you would get data back, just as if you had a "straight" SELECT...
June 6, 2008 at 9:49 am
I understand that - it's just terribly inefficient for what you're trying to do. I suspect that the appropriate SET-based solution (using the OUTPUT clause as previously mentioned) would...
June 6, 2008 at 9:38 am
When you're "windowing" aggregate functions - PARTITION BY is concaptually the same as GROUP BY. It defines the window you're operating on.
An example might work better:
Select customerID,
...
June 6, 2008 at 9:32 am
And just a friendly reminder....Don't try the "stop, smell, smile" trick in your data center. Most of them have some seriously FUNKY smells - whatever smile comes out of...
June 6, 2008 at 9:12 am
Grant Fritchey (6/6/2008)
June 6, 2008 at 8:41 am
If the datetime column is indexed, then Suresh's solution would probably give you better performance. It should allow for index seeks, whereas Telammica's will likely result in index scans.
Either...
June 6, 2008 at 8:30 am
A T-SQL function probably will not be appropriate for this. At this point I can't think of a way to even "cheat" to make a T-SQL function do that,...
June 6, 2008 at 8:11 am
Trader Sam (6/6/2008)
June 6, 2008 at 7:10 am
hmm... and it takes the keeper of the Duck to make me notice it on BOTH lists....I somehow ahdn't noticed it there previously....
Thanks Brian!
June 5, 2008 at 8:41 pm
You could also do this with the windowed version of an aggregate.
SELECT [order_key], promo_disc_amt,
Sum(promo_disc_amt) over (partition by NULL) totalPromo
FROM FactOrder
WHERE...
June 5, 2008 at 8:12 pm
K. Brian Kelley (6/5/2008)
chileu17 (6/4/2008)
Sorry :ermm: where do I right click what? 😀 thanks
If you're using SSMS, right-click on the database itself. That'll bring up a pop-up menu which has...
June 5, 2008 at 7:59 pm
Viewing 15 posts - 3,001 through 3,015 (of 6,486 total)