Viewing 15 posts - 1,186 through 1,200 (of 1,472 total)
Please refer to the link in my signature for an example of how to post table definition and sample data. There will probably be additional questions on this one,...
November 3, 2008 at 1:22 pm
I know it's the order by that's causing it, but I don't understand why it's causing the issue.
So if you remove the Order By, it functions the same on...
November 3, 2008 at 1:15 pm
smunson (11/3/2008)
November 3, 2008 at 12:42 pm
Thanks for the feedback moin6, glad we could help. Feel free to post your other questions as well.
November 3, 2008 at 11:59 am
Did you see my breakdown of the logic involved? I think it's pretty unambiguous, and covers all scenarios. The logic behind it is actually not as complicated as...
November 3, 2008 at 11:52 am
Dan, any updates for us on the performance and integrity of any of the proposed solutions? I believe there are at least 3 right now (Mine, anzio's and bhovious'......
November 3, 2008 at 10:51 am
Yes, I pointed it out in my last post, however, why would commented out code be relevant?
I either overlooked that or it wasn't there when I initially read the reply......
November 3, 2008 at 8:06 am
The commented out criteria in your original cursor declaration was
-- ScheduleId IS NULL AND StartDtTm > '10/20/2008'
This would give you a set where all ScheduleID's were null. Then, at...
November 3, 2008 at 7:49 am
Can the cursor be written against a CTE and then the update happen on the regular table?
The issue isn't the cursor itself, it's the fact that you've got NULL =...
November 3, 2008 at 7:17 am
I don't use cursors much, but it seems like you're missing a FETCH NEXT within your loop. You fetch the first set initially, and then begin your loop, but...
November 2, 2008 at 2:49 pm
I think I'm understanding you correctly. I had to compromise a bit with the LIKE, as you only wanted 1 row when you selected everything (which means you can't...
November 2, 2008 at 7:32 am
Yerp. I actually gave an example earlier where I used a table variable, but it doesn't support the WITH INDEX clause, and this actually served as a reminder that...
October 31, 2008 at 10:09 pm
Think you're looking for something like this. One of the biggest issues is you forgot something vital... something that rhymes with "Flustered Windex".
PRIMARY KEY CLUSTERED(RowID, SegmentID, STEP2)
[font="Courier New"] DECLARE...
October 31, 2008 at 4:36 pm
You don't need a loop, or a cursor. All you need to do is:
1. Create a clustered index on your row# column. (It is most likely already...
October 31, 2008 at 3:52 pm
This is a duplicate thread. Please direct future replies to:
http://www.sqlservercentral.com/Forums/Topic595159-338-1.aspx
October 31, 2008 at 12:42 pm
Viewing 15 posts - 1,186 through 1,200 (of 1,472 total)