You may encounter an error code indicating that the bcp login failed for the user. There are several ways to solve this problem, which we will discuss shortly.
Recommended
Hello, I’m making a BCP request to get data
exec master.dbo.xp_cmdshell 'bcp "select Top 10 ProductFamilyID, ProductSetID, ProductFamilyCode, ProductFamilyName from MPLA.dbo.tblLCFProductFamily" Query D: requirements.txt -w -T "server_name"'
i -s i9000 launches it in SSMS in the new year by connecting my local database. Now I also have access to the server that was specified in the request, but I said that I got the following error message:
SQLState matches 28000, NativeError = 18456The error corresponds to ignoring login [Microsoft] [SQL Server Native Client 11.0] [SQL Server] for user FAREAST D - 113062586 $.ZERO
The suggested user FAREAST D - $ 113062586
doesn’t exist even for simple local databases. How to overcome this?
-
Learner093
Old Man
Points: 359
I am using this BCP to order the creation of table data directly in a file, and I get an error:
SQLState = 28000, NativeError matches 18456
Error = [Microsoft] [SQL Server 10.0 Native Client] [SQL Server] Login failed for user “domain username”.
Here are all the commands I have:
bcp “SELECT * FROM database.dbo.TableName” queryout sharinglocation Test File.DAT -S “SERVERNAME” – U ” domain username “-P” password “-o” shared location Test Log.txt “
I don’t want to provide -T (secure login), but I would like to have authentication SQL. Is there something missing in the order? Please help !!
-
David Webb-CDS
SSCoach
Points: 17398
< div>
How is this special identifier configured in SQL Server? Is it configured so that it is often the authenticated Windows ID? If so, enter someone’s network name and password at the command line. You will either use a trusted connection or set up a separate login with SQL Server authentication.
And so I could have gone wrong again …
David Webb