BCP error on 64-bit Yukon

  • I'm getting the following error when I try to bring a file into Yukon on a 64-bit server:

    Code:

    EXEC

    xp_cmdshell 'bcp "<Database>.dbo.Table" IN "<Filename>" -n -T -S"<Server\Instance>" -e"<Error log file>" -h"TABLOCK"'

    Error:

    SQLState = 08001, NativeError = 17

    Error = [Microsoft][ODBC SQL Server Driver][DBMSLPCN]SQL Server does not exist or access denied.

    SQLState = 01000, NativeError = 53

    Warning = [Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionOpen (Connect()).

    NULL

     

    Any ideas? I've tried replacing the trusted connection option (-T) with a sysadmin user/pwd, but no luck.  I'm logged in as an admin on the server.

     

    Thanks,

    Fred

  • IF you are NOT running this SQL from the server holding the SQL Database, it doesn't know which Server to connect to.

     

    If you ARE running this from the server, my comment isn't any help.

     

  • If your sysadmin role registered as login for SQL Server?

    _____________
    Code for TallyGenerator

  • Solved.

    Turns out that the TCP/IP protocol for the SQL network configuration had been disabled.  How is another matter....

    Thanks for the replies.

    Fred

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply