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.