Eric
5/25/2013 12:59:10 PM
|
yk9AU
I'm in my first year at university http://www.wind-sun.com/ForumVB/blog.php?cp=27 dark star russian lolitas (ouepla Wow thanks.
|
Aaliyah
5/25/2013 8:04:06 AM
|
trfAR
A jiffy bag http://favurbghyjf.bravesites.com lil lolita pussy pics i love her beautifull pussy!!!!!!!
|
Olivia
5/25/2013 3:04:59 AM
|
GaCBkH
I do some voluntary work http://www.gigapan.com/profiles/fabiocidel ls latin lolita models He's good lover :) No doubt!
|
Gavin
5/24/2013 9:59:22 PM
|
qd81tj
This is the job description http://www.jetphotos.net/members/viewprofile.php?id=68252 best little lolitas sites Wow that would be awkward both standing there and and being the person in the floor
|
Landon
5/24/2013 5:08:50 PM
|
obf7bt
Where's the nearest cash machine? http://connect.masslive.com/user/fabiocidel/index.html videos angels girls lolitas id give my middle nut for a handjob from her
|
Payton
5/24/2013 2:35:43 AM
|
3yvrE
Whereabouts are you from? http://www.complexitygaming.com/forums/blog.php?cp=368 pure nude free lolitas Real hot, but man you better be in very good shape with her.
|
Payton
5/24/2013 2:35:31 AM
|
3yvrE
Whereabouts are you from? http://www.complexitygaming.com/forums/blog.php?cp=368 pure nude free lolitas Real hot, but man you better be in very good shape with her.
|
Payton
5/24/2013 2:34:21 AM
|
3yvrE
Whereabouts are you from? http://www.complexitygaming.com/forums/blog.php?cp=368 pure nude free lolitas Real hot, but man you better be in very good shape with her.
|
Landon
5/23/2013 4:20:52 PM
|
g9aKd
Another service? http://www.mygardeningplace.com/lsmagazinexl young lolitas lotus nude This was sexy! xx
|
Autumn
5/23/2013 11:09:21 AM
|
ahiBql
I don't know what I want to do after university http://neomagicpics.orgfree.com tiny little lolitas pussy love watching white girls being banged like this.
|
Ayden
5/23/2013 12:51:59 AM
|
pAsexo
Looking for work http://neomagicpics.noads.biz little loli nn topless is there more of her? she got a name?
|
1/9/2013 10:38:08 AM
|
|
btw
1/7/2013 4:53:04 AM
|
dhr.
perfect. tx.
|
12/14/2012 1:18:16 PM
|
|
12/14/2012 7:59:11 AM
|
|
noa
9/19/2011 5:38:00 AM
|
loops
diffrence between coursers and loops
|
Carly
8/3/2011 6:31:37 PM
|
Wait, I cannot fahtom it being so straightforward.
|
Jason
7/11/2011 9:14:26 PM
|
Set vs. Loop
Hi Jon,
I definitely agree set based code is much faster. This is just a loop example for someone who can't figure out how to write the set based version and hopefully they are not dealing with too many rows either.
|
jon
7/11/2011 7:53:15 AM
|
Hi Jason, thank you for taking the time to respond. I would be happy to provide some optmized set based code but it is not really clear what your query is doing. Anyway my point was really that a while loop is no better than a cursor, but it seems that you have change the article slightly since i last checked in.
|
Jason
7/10/2011 3:48:48 PM
|
Yeah, that was supposed to be SP 2
Typo, changed to SP2
|
Gail Shaw
7/10/2011 10:41:26 AM
|
SQL 2005 R2???
No such version. There's 2005, 2008 and 2008 R2.
|
Jason
7/7/2011 5:06:56 PM
|
Page Revision
Thank you guys for all the comments! I decided to get to the bottom of this issue (and now myth for me) about cursors. There are a vast amount of posts about them being bad, and so few about them being good. So instead of reading what people say, I did a review of SQL 2000, 2005, and 2008 on Microsoft's website and looked through all of the bug fixes. This was just an issue prior to 2005 R2. I have revised this page and ahve joined the Cursors Are Good (but try not to loop in general) camp.
|
Gail Shaw
7/7/2011 3:56:45 PM
|
Known bug
Got a reference for that known memory leak? Is Microsoft planning to fix it in a future version?
|
Jeff Moden
7/7/2011 7:48:27 AM
|
A fast_forward, read_only, static cursor is just as effective as a While Loop and uses the same resources because they're both using a Temp table (as in your example).
It's a myth that Cursors are worse than While Loops especially with the "settings" I mentioned above.
The real key is to not use any form of RBAR if at all possible (and it's usually possible).
|
Jason
7/6/2011 12:06:03 PM
|
Cursors
Hi Jon - I think it really depends on what you need to do. This is a straight forward example that will let you compare previous rows and future rows to perform calculations, while saving them off to the current row. I have actually used this type of logic in replacement of a cursor and saw a query go from over 5 minutes to under 1 minute. I guess it depends on what you need to do in the end. If there is an alternative situation you are thinking of, please feel free to email me the solution and I will post a section in this article with your name attached (if you want). Contact information is at the top.
|
jon
7/6/2011 2:23:00 AM
|
Cursors
You say that cursors are bad, then go on to show some code that is just as bad if not worse that a cursor.
|
Jason
7/5/2011 1:09:35 PM
|
MS SQL Server vs. Oracle
Great comment. I have updated the main page to be more clear that this is aimed at MS SQL Server.
|
7/5/2011 2:54:38 AM
|
You might want to make it clear that this is SQL Server specific. Nowhere does it say that, and in fact is implying (to me) it's aimed at any SQL database, at least until I read it. The bit on query plans makes it abundantly clear!
|
Jason
7/4/2011 11:12:19 AM
|
Cursors and SQL
It is definitely a comment limited to SQL Server. I don't have much experience with Oracle and wrote this post with SQL Server in mind.
|
7/3/2011 9:41:22 PM
|
It's usually better to use a set if you can but "cursors are really bad" is not true for Oracle. They're fine, that limitation is SQL Server & maybe Sybase specific.
|