SQL Server bcp

 

D:/projects/openi/misc/xxxx_data_20090828>bcp [xxxxolap].[dbo].[wdb_cxbz]  in wdb_xxx.txt      -c -T

SQLState = 37000, NativeError = 4060

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

SQLState = 28000, NativeError = 18456

Error = [Microsoft][SQL Server Native Client 10.0][SQL Server]Login failed for user 'xxxx/robin'.

 

 

解决办法

- MS SQLSERVER MANAGEMENT STUDIO -> SECURITY

- new LOGIN,加入 'xxxx/robin'

- ROLES&MAPPING

 

你可能感兴趣的:(sql,server,microsoft,sqlserver,login,database,user)