2015-10-14 95 views
0

我使用Pentaho v5.2。當我試圖連接到SQL服務器我結束與下面的錯誤。我已經下載並放置了所需的驅動程序sqljdbc4-2.0 jar in pdi-ce-5.2.0.0-209\data-integration\lib。請幫助我,因爲我是Pentaho的新手。連接到Pentaho的MS SQL SERVER的錯誤

Error connecting to database [mssqlserverconn] : org.pentaho.di.core.exception.KettleDatabaseException: 
Error occured while trying to connect to the database 

Error connecting to database: (using class com.microsoft.sqlserver.jdbc.SQLServerDriver) 
Login failed for user 'Lenovo-PC\RamaKrishna'. 


org.pentaho.di.core.exception.KettleDatabaseException: 
Error occured while trying to connect to the database 

Error connecting to database: (using class com.microsoft.sqlserver.jdbc.SQLServerDriver) 
Login failed for user 'Lenovo-PC\RamaKrishna'. 
+0

它說登錄失敗。你確定你的用戶有權登錄到sqlserver嗎?用正確的用戶名密碼? –

+0

yes..i給出了正確的用戶名和密碼 –

+0

您可能正在使用「集成安全性」,它基本上佔用了您計算機的用戶域和登錄用戶名,而不是您可能真正需要的用戶名以連接。查看建議的答案 – YuvalHerziger

回答

0

從您引發的錯誤消息,這是一個身份驗證問題。 它看起來像你試圖從你的筆記本電腦域名使用你的用戶名 - 是你想要的?服務器是否接受此用戶名(Lenovo-PC\RamaKrishna)?

您可能一直在使用集成安全性,它基本上覆蓋了您在文本框中設置的用戶名,並使用您的Windows用戶名代替。

見下文: MS SQL CONNECTION NATIVE