![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can I generate an identity column when importing using BCP that will sequence by the physical order of the records? |
#3
| |||
| |||
|
|
Can I generate an identity column when importing using BCP that will sequence by the physical order of the records? |
#4
| |||
| |||
|
|
Can I generate an identity column when importing using BCP that will sequence by the physical order of the records? |
#5
| |||
| |||
|
|
On Fri, 10 Jun 2011 06:18:07 -0700 (PDT), blindsey blindsey (AT) dsicdi (DOT) com> wrote: Can I generate an identity column when importing using BCP that will sequence by the physical order of the records? What physical order? A file can be in chunks all over a volume. If you mean within the file, the DBMS could write a row anywhere it has space to do so. You have to define an order if you want one. |
#6
| |||
| |||
|
|
Gene Wirchenko (genew (AT) ocis (DOT) net) writes: On Fri, 10 Jun 2011 06:18:07 -0700 (PDT), blindsey blindsey (AT) dsicdi (DOT) com> wrote: Can I generate an identity column when importing using BCP that will sequence by the physical order of the records? What physical order? A file can be in chunks all over a volume. If you mean within the file, the DBMS could write a row anywhere it has space to do so. You have to define an order if you want one. Gene, he is talking about reading a text file into SQL Server with the BCP command. Text files typically have a physical order. Well, if you want to talk disk blocks, that's really a logical order. But ordered they are. |
#7
| |||
| |||
|
|
Not my point. 1) He is then expecting them to be in order in the table. 2) He gives SELECTs with no ORDER BY clauses and expects an order. |
![]() |
| Thread Tools | |
| Display Modes | |
| |