C:> BCP DBO [項目]在 'C:\ item.txt' -n -T -S 「A-9」BCP錯誤時導入數據
我使用該命令,以將item.txt文件中的數據複製到項目表中。 但我得到的錯誤是:
SQLSTATE = 37000,NativeError = 4060 錯誤= [微軟] [SQL Server本機客戶端10.0] [SQL Server]無法打開databa 本身 「DBO」 由登錄請求。登錄失敗。 SQLState = 28000,NativeError = 18456 錯誤= [Microsoft] [SQL Server Native Client 10.0] [SQL Server]登錄失敗,請參閱ser'A-9 \ Admin'的 。
我的主機名是A-9。但我不確定用戶名。我可以得到它嗎?