October 16, 2013 at 8:31 am
OCTom (10/16/2013)
Since I'm not using 2012, yet, I didn't know about SEQUENCE. So, I looked it up and found a nice Technet article by Denny Cherry.He not only explains what it is but also why you might use it.
Yeah, I noticed there weren't really use cases on MSDN or the cited article. It wouldn't have been introduced if it wasn't useful, but I'm having trouble coming up with a case where I would use it. Then again, we've only had 2012 here for about a week and a half. Thanks for the article with use cases!
October 16, 2013 at 8:36 am
Drew Copenhaver (10/16/2013)
OCTom (10/16/2013)
Since I'm not using 2012, yet, I didn't know about SEQUENCE. So, I looked it up and found a nice Technet article by Denny Cherry.He not only explains what it is but also why you might use it.
Yeah, I noticed there weren't really use cases on MSDN or the cited article. It wouldn't have been introduced if it wasn't useful, but I'm having trouble coming up with a case where I would use it. Then again, we've only had 2012 here for about a week and a half. Thanks for the article with use cases!
Maybe it's included because people coming from Oracle asked for it.
October 16, 2013 at 10:24 am
Luis Cazares (10/16/2013)
Drew Copenhaver (10/16/2013)
OCTom (10/16/2013)
Since I'm not using 2012, yet, I didn't know about SEQUENCE. So, I looked it up and found a nice Technet article by Denny Cherry.He not only explains what it is but also why you might use it.
Yeah, I noticed there weren't really use cases on MSDN or the cited article. It wouldn't have been introduced if it wasn't useful, but I'm having trouble coming up with a case where I would use it. Then again, we've only had 2012 here for about a week and a half. Thanks for the article with use cases!
Maybe it's included because people coming from Oracle asked for it.
Oh yeah? I'm really not familiar with Oracle. What kind of real-world stuff would you use this for? Either in SQL or Oracle.
October 16, 2013 at 10:51 am
As far as I know, because I'm not that familiar with oracle either, Oracle doesn't have an Identity functionality as SQL Server has. That's why they use sequence.
Looking for information to confirm this, I found that they included something similar in Oracle until 12c, so before that, sequence was the way to go.
Reference: http://www.oracle-base.com/articles/12c/identity-columns-in-oracle-12cr1.php
October 16, 2013 at 10:53 am
Oh, okay, that makes a lot of sense then. Thank you! It's more the 'across multiple tables or outside of tables' thing I'm having trouble finding use cases for.
October 21, 2013 at 12:10 am
Good easy one.
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
October 31, 2013 at 3:52 am
I am on a really good sequence 🙂
five good answers on a range !
🙂
Viewing 7 posts - 16 through 21 (of 21 total)
You must be logged in to reply to this topic. Login to reply