Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #467
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: BCP ordering? |
| Date | 2011-06-17 23:35 +0200 |
| Organization | Erland Sommarskog |
| Message-ID | <Xns9F07EFEFEB504Yazorman@127.0.0.1> (permalink) |
| References | <8d9b7401-207c-4c90-bac1-c99f98783b3b@r2g2000vbj.googlegroups.com> <pr9nv6l9k461keslbq1c7l6clovvl013oa@4ax.com> |
Gene Wirchenko (genew@ocis.net) writes: > On Fri, 10 Jun 2011 06:18:07 -0700 (PDT), blindsey ><blindsey@dsicdi.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. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
BCP ordering? blindsey <blindsey@dsicdi.com> - 2011-06-10 06:18 -0700
Re: BCP ordering? Erland Sommarskog <esquel@sommarskog.se> - 2011-06-11 00:05 +0200
Re: BCP ordering? stukie <stukieh@gmail.com> - 2011-06-17 06:53 +0000
Re: BCP ordering? Gene Wirchenko <genew@ocis.net> - 2011-06-17 12:15 -0700
Re: BCP ordering? Erland Sommarskog <esquel@sommarskog.se> - 2011-06-17 23:35 +0200
Re: BCP ordering? Gene Wirchenko <genew@ocis.net> - 2011-06-17 15:25 -0700
Re: BCP ordering? Erland Sommarskog <esquel@sommarskog.se> - 2011-06-18 11:29 +0200
csiph-web