Posted by: Chintamani August 9, 2008
Login in to Rate this Post:
0
?
Hey guys
I am trying to use a BCP command on SQLSERVER 2005. I am getting some problem regarding it.
if I type the below code on command prompt
Bcp AdventureWorks.Sales.Currency out "c:\abc.txt" -c -T
Then the abc.txt is created on the C drive with all the values from that table.
but if I use my own table and write
Bcp test.dbo.tempInfo out "c:\abcd.txt" -c -T
then I will get this error
SQLState = 28000, NativeError = 18456
Error = [Microsoft][SQL Native Client] [Sql server] login failed for user 'Chintamani\Chintamani'.
SQLState = 42000, NativeError = 4060
Error = [Microsoft][SQL Native Client] [Sql server] cannot open database "test" requested by the login. The login failed
Any help will be appreciated.