October 23, 2003 at 9:01 am
Hi
What order does bcp output its data? e.g.
bcp <table> out <filename> -T -S. -N
Is the order predictable, or would I have to use queryout to dictate the order? I'd like to output it in clustered index order so that its faster to load back in.
Thanks
October 23, 2003 at 11:11 am
Use "queryout" rather than "out" with a query ordering by the clustered index. Then, if you don't change the indexed values, you can load using the ORDER hint.
bcp "SELECT * FROM <table> ORDER BY <clustered index column(s)>" queryout <filename> -T -N
--Jonathan
--Jonathan
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy