2013-11-26 40 views
0

我想運行我的服務帳戶WPF aplication ...如何運行WPF(C#)應用程序的服務帳戶和集成安全

也許我不understain情況currectlly,但我想在我的connectionString使用integrated security=true;和運行應用程序本地,但使用不同的帳戶。這甚至有可能嗎?

假設我的Windows登錄acc是testAcc,我的服務帳戶是SAtestAcc。 SAtestAcc具有執行可是沒有任何對同一數據庫1在數據庫1和testAcc權利......

讓我怎麼在我的connectionString我試圖與AStestAcc連接到指定數據庫,但通過指定username NAD不password在connectionString中,但通過使用integratedSecurity=true

再說一遍:這甚至可能嗎?

感謝名單

+0

後來我發現瞭如何做到這一點這嘖嘖,這是外觀極好:http://freshclickmedia.co.uk/2008/11/programmatic-impersonation-in-c/ – lanicor

回答

相關問題