BCP Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rsrinivasan
    New Member
    • Mar 2007
    • 221

    #1

    BCP Problem

    Hi all,

    Im using bcp utility to copy all the data from a table to file. The file is created as it is. But i cant open that bcp file. How can i open this file.

    Thanks in advance,
    Srinivas r.
  • davef
    New Member
    • Sep 2007
    • 98

    #2
    Originally posted by rsrinivasan
    Hi all,

    Im using bcp utility to copy all the data from a table to file. The file is created as it is. But i cant open that bcp file. How can i open this file.

    Thanks in advance,
    Srinivas r.
    What format is your output file?
    This works for me (mixed authentication) :
    bcp <dbname>.<schem a>.<table-name> out "C:\Test.da t" -c -U <user-name> -P <password> -S <server-name\instance-name>

    http://msdn2.microsoft.com/en-us/library/ms162802.aspx

    Comment

    Working...