Adding a reference to the COM of Microsoft Ole DB Service Component 1.0 Type Library and Microsoft ActiveX Data Objects 2.x Library. Then call the following function.
public static string PromptDataSource (int hWnd, string connectionString) {MSDASC.DataLinks dl = new MSDASC.DataLinksClass (); ConnectionClass conn = new ConnectionClass (); conn.ConnectionString = connectionString; object oConn = conn; dl.hWnd = hWnd; dl .Promptedit (ref 淘); return conn.connectionstring;}