Viewing 15 posts - 3,661 through 3,675 (of 5,502 total)
What column do you want to use in your table referenced in the APPLY statement?
Either way, it most probably won't work the way you probably have in mind...
If you want...
April 27, 2010 at 12:38 pm
It depends on the table structure you've used to store this information... 😀
But if you're looking for time zones per country, SQL Server is the wrong source to start with,...
April 27, 2010 at 10:24 am
Please provide DDL for a sample data together with some sample records and your expected results. Based on your verbal description it gets confusing (to me, at least...). Please read...
April 27, 2010 at 10:11 am
Please try to run your code in TempDB. You'll find that it's not runable at all, even after 10 or so corrections...
April 26, 2010 at 4:31 pm
Would it help to add %2 = 0 (modulo of division by 2) to your current group calculation? Or divide the group number by 2 (assuming it's an integer).
April 26, 2010 at 2:50 pm
Dan H. (4/26/2010)
"This is not 'Nam, this is bowling....there are rules." - Walter Sobchak
You folks down in CA have a weird understanding of bowling... Do you at least use...
April 26, 2010 at 2:43 pm
Lynn Pettis (4/26/2010)
... Another reason for ensuring consistancy when coding.
I guess as long as we're not forced by db collations we're getting lax "by nature"...
At least I do. :blush:
April 26, 2010 at 2:36 pm
Dan H. (4/26/2010)
Sacramento, California. Yes, it's sunny here and we all like to surf. Oh yeah, and everyone smokes pot.
Dan, I urge you to put that pistole down!...
April 26, 2010 at 2:31 pm
Oh, I forgot: if the process is performance crucial, you should think about shredding the xml into properly indexed relational tables... 😀
April 26, 2010 at 2:22 pm
BobA 66314 (4/26/2010)
I use OPENXML because it is faster, and the task occurs while online user waits. Any idea why it ignores this one...
April 26, 2010 at 2:18 pm
The benefit for storing data in the cloud is simply to save money. But the very same department that actually benefits from that (financial dptmt.) is unlikely to put their...
April 26, 2010 at 2:02 pm
I would try to do it set based as much as possible:
If the last step is DELETE then DELETE the sequence order if it exist.
If the last step is INSERT...
April 26, 2010 at 1:45 pm
It seems like you're still using OPENXML instead of XQuery even though you're already on SS2K8, obviously (guessing based on the syntax and the DATE data type...).
When using XQuery it...
April 26, 2010 at 1:29 pm
Wow! You didn't only set a very high standard with your first article (CROSS APPLY) - you continue to hold that level with each and every article since! Once again:...
April 26, 2010 at 1:16 pm
The ORDER BY clause used with ROW_NUMBER specifies the order within in each PARTITION BY group. You might want to try
SELECT ROW_NUMBER() OVER (PARTITION BY P.prop_seql
ORDER BY ASV.booking_date...
April 26, 2010 at 12:54 pm
Viewing 15 posts - 3,661 through 3,675 (of 5,502 total)