Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #428

Re: BCP ordering?

From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver
Subject Re: BCP ordering?
Date 2011-06-11 00:05 +0200
Organization Erland Sommarskog
Message-ID <Xns9F01FAD7E25Yazorman@127.0.0.1> (permalink)
References <8d9b7401-207c-4c90-bac1-c99f98783b3b@r2g2000vbj.googlegroups.com>

Show all headers | View raw


blindsey (blindsey@dsicdi.com) writes:
> Can I generate an identity column when importing using BCP that will
> sequence by the physical order of the records?
 
I was told by SQL Server developers that you cannot rely on this. So I submitted a Connect item to call for this:
http://connect.microsoft.com/SQLServer/feedback/details/278452/there-needs-to-be-a-way-to-preserve-order-when-bulk-loading-a-file

And I was told, that order is in fact guaranteed.

To be honest, I don't know what to believe. Try it, but keep your eyes open.


-- 
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 | NextPrevious in thread | Next in thread | Find similar


Thread

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