Skip to main content
replaced http://dba.stackexchange.com/ with https://dba.stackexchange.com/
Source Link

In his answer to Identity Columns or UDF that explicitly generates a unique id?Identity Columns or UDF that explicitly generates a unique id? mrdenny says:

When SQL Denali comes out it will support sequences which will be more efficient than identity, but you can't create something more efficient yourself.

I'm not so sure. Knowing Oracle's sequences, I have either to create a trigger for insert, encapsulate each insert into a call of a stored procedure, or pray that I do not forget to properly use the sequence when I do an ad-hoc insert.

I doubt that the advantages of sequences are so obvious.

In his answer to Identity Columns or UDF that explicitly generates a unique id? mrdenny says:

When SQL Denali comes out it will support sequences which will be more efficient than identity, but you can't create something more efficient yourself.

I'm not so sure. Knowing Oracle's sequences, I have either to create a trigger for insert, encapsulate each insert into a call of a stored procedure, or pray that I do not forget to properly use the sequence when I do an ad-hoc insert.

I doubt that the advantages of sequences are so obvious.

In his answer to Identity Columns or UDF that explicitly generates a unique id? mrdenny says:

When SQL Denali comes out it will support sequences which will be more efficient than identity, but you can't create something more efficient yourself.

I'm not so sure. Knowing Oracle's sequences, I have either to create a trigger for insert, encapsulate each insert into a call of a stored procedure, or pray that I do not forget to properly use the sequence when I do an ad-hoc insert.

I doubt that the advantages of sequences are so obvious.

added 7 characters in body; edited tags
Source Link
Paul White
  • 90.3k
  • 30
  • 424
  • 663

In his answer to sql2005 whats better: identity columnsIdentity Columns or generated uiniqueUDF that explicitly generates a unique id values? mrdenny mentions, mrdenny says:

When SQL Denali comes out it will support support sequences which will be more efficient efficient than identity, but you can't create create something more efficient yourself yourself.

I'm not so sure. Knowing Oracle sequencesOracle's sequences, I have either to create a trigger for Insert or toinsert, encapsulate each insert into a call of a stored procedure, or to pray that I do not forget to properly use the sequence, when I do an ad hoc-hoc insert.

I doubt, that the advantages of sequences are so obvious.

In his answer to sql2005 whats better: identity columns or generated uinique id values? mrdenny mentions, says

When SQL Denali comes out it will support sequences which will be more efficient than identity, but you can't create something more efficient yourself.

I'm not so sure. Knowing Oracle sequences, I have either to create a trigger for Insert or to encapsulate each insert into a call of a stored procedure or to pray that I do not forget to properly use the sequence, when I do an ad hoc insert.

I doubt, that the advantages of sequences are so obvious.

In his answer to Identity Columns or UDF that explicitly generates a unique id? mrdenny says:

When SQL Denali comes out it will support sequences which will be more efficient than identity, but you can't create something more efficient yourself.

I'm not so sure. Knowing Oracle's sequences, I have either to create a trigger for insert, encapsulate each insert into a call of a stored procedure, or pray that I do not forget to properly use the sequence when I do an ad-hoc insert.

I doubt that the advantages of sequences are so obvious.

edited tags
Link
gbn
  • 70.1k
  • 8
  • 165
  • 242
Tweeted twitter.com/#!/StackDBAs/status/45308695244058624
edited title; edited title
Link
Gaius
  • 11.2k
  • 3
  • 31
  • 64
Loading
Source Link
bernd_k
  • 12.3k
  • 24
  • 78
  • 111
Loading