Results 1 to 3 of 3

Thread: BCP problem

  1. #1
    Join Date
    Jul 2006
    Posts
    28

    Unanswered: BCP problem

    Exec Master..xp_CmdShell 'bcp "exec mydb..SP_test ''200603''" queryout c:\test.txt -c -Slocalhost -Usa -Ppassword'

    when i run this code in java , the file is created , but data not pump in , anyone know why is it so ?

    it can run in query analyzer and no problem

  2. #2
    Join Date
    Jul 2006
    Posts
    28
    sorry, is my mistake , it doesn't give any error , just that i put in wrong parameter so no data

  3. #3
    Join Date
    Jul 2006
    Posts
    28
    sorry, is my mistake , it doesn't give any error , just that i put in wrong parameter so no data out

Posting Permissions

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