用控制元件ADOconnection adoquery 和 datasource 連接資料庫 但運行時出現一個登錄視窗 database Login
要輸入user name()和 password ()怎樣解決
uj5u.com熱心網友回復:
設定 ADOConnection 引數 LoginPrompt 為falseuj5u.com熱心網友回復:
設定 ADOConnection 引數 LoginPrompt 為false在連接字串里植入用戶名和密碼
uj5u.com熱心網友回復:
設定 ADOConnection 引數 LoginPrompt 為falseuj5u.com熱心網友回復:
ADOConnection 引數 LoginPrompt 為falseuj5u.com熱心網友回復:
嗯,沒錯 誠如樓上們所言 把ADOConnection 的 LoginPrompt 屬性 設為falseuj5u.com熱心網友回復:
把ADOConnection 的 LoginPrompt 屬性 設為falseuj5u.com熱心網友回復:
設定ADOConnection 的 LoginPrompt 屬性 false就解決了哈,前提是你資料庫未加密uj5u.com熱心網友回復:
7樓的,那如果資料庫是加密的情況呢。資料庫鏈接字串是不是就不一樣了。uj5u.com熱心網友回復:
ADOConnection1->ConnectionString="Provider=SQLOLEDB.1;Password="+密碼+";Persist Security Info=True;User ID="+用戶名+"sa;Initial Catalog=foxdbfs;Data Source="+資料庫機器名或者IPADOConnection1->Connected=true;
uj5u.com熱心網友回復:
設定一下ADOConnection控制元件的屬性 引數 LoginPrompt 為false ,即可。轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/131737.html
標籤:數據庫及相關技術
