Results 1 to 7 of 7

Thread: Bcp

  1. #1
    Join Date
    Jul 2003
    Posts
    142

    Bcp

    While I was doing BCP data to an output file, I reciveed the error SQLSTATE 08001 Native Error =17 which means unable to connect to data store.
    Please help gurus out there.


    Regards

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    What's id used to connect to sql in bcp?

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Post the bcp command you used.

  4. #4
    Join Date
    Jul 2003
    Posts
    142

    BCP

    Thanks.

    I have resolvd the problem (userid) It is Working ok.


    Regards

  5. #5
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    Could you post the complete history of what happend and how you resolved.

  6. #6
    Join Date
    Jul 2003
    Posts
    142
    Please find below the code i used.

    exec master..xp_cmdshell 'bcp pubs.dbo.authors out c:\bcpOutput\authors.txt -c -T -S\Username\ServerName -Uuserid -Ppassword'

    Any refinement would be appreciated.

    Thanks.


    Regards


    Olutimi

  7. #7
    Join Date
    Sep 2002
    Posts
    5,938
    Seems you are missing -o option that specifies output file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •