Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

SQL Command bcp out - login error

$
0
0

I am using SQL Server Management Studio 2012 with Windows Authentication. 

I opened a command box and tried to run the following:

C:\Users\Cheryl>bcp AdventureWorks2012.Sales.Currency out currency.dat -T -c

I have had no problems logging into SQL Server so far, but when I try to run this command, I get the following error:

SQLState = 37000, NativeError = 4060

Error = [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot open database "AdventureWorks2012" requested by the login. The login failed.

SQLState = 28000, NativeError = 18456

Error = [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'CherylsPC\Cheryl'.

Any ideas?  I am VERY new to SQL, just taking it for a course, so I could be missing something obvious.

Thanks.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>