Calling System Data Link Properties dialog

xiaoxiao2021-03-06  56

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;}

转载请注明原文地址:https://www.9cbs.com/read-109238.html

New Post(0)