bcp login failure in query analyzer but ok in cmd console ???!!!

  • Hi guys,

    I tried to execute in query analyzer (I connect with windows authentication) this cmd:

    exec master.dbo.xp_cmdshell 'Bcp "SELECT * FROM db.dbo.table" queryout "d:\test" -n -S . -T',

    and the error is:

    Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'domain\user'.

     

    If I execute the bcp cmd directly from cmd line, the bcp is execute without problem.

    Do you have any suggestion?

    thank

  • Sorry,

    the error is:

    Error = [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'domain\machine'.

    the problem is that: I log on to windows as domain\user and log on to SQLserver with windows authentication, but the login is 'domain\machine' ???

    Any suggestion

     

  • Your,

    Windows Domain settings are chaged.

    You should login the SQL TO sa

    The Sql Server Administrator Account  

  • I'm thinking that you are right.

    thank a lot, I will investigate in this way...

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

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