Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BCP
Message
 
À
27/04/2009 15:56:46
Greg Rowe
Memphis Police Department
Memphis, Tennessie, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Titre:
Re: BCP
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01396577
Message ID:
01396843
Vues:
53
Greg,

Sounds like a role/security issue. Check the role members on the different servers.

From BOL:

When it is called by a user that is not a member of the sysadmin fixed server role, xp_cmdshell connects to Windows by using the account name and password stored in the credential named ##xp_cmdshell_proxy_account##. If this proxy credential does not exist, xp_cmdshell will fail.

Requires CONTROL SERVER permission.


All it takes is a gentle F1 ;)


-R!

>When I run exec master..xp_cmdshell 'bcp ##temp_text out \\servername\sharename\filename.txt -c' I receive the following error
>
>SQLState = 08001, NativeError = 17
>Error = [Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or access denied.
>SQLState = 01000, NativeError = 2
>Warning = [Microsoft][ODBC SQL Server Driver][Shared Memory]ConnectionOpen (Connect()).
>
>I successfully run the command on another server without any problems or errors. I verified the share's security. I can successfully run exec master..xp_cmdshell 'bcp dir c:\ > \\servername\sharename\filename.txt'
Ricardo A. Parodi
eSolar, Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform