宁
宁静蝴蝶
Unregistered / Unconfirmed
GUEST, unregistred user!
请问如何避免每次登陆程序多次登陆数据库,在主program定义ADOConnection,我的数据库是SQL,我的每个窗体中都有ADOConnection等相应ADO控件.
Form1.ADOConnection1.ConnectionString:='Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa;Initial Catalog=ZZGL;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=M_120;Use Encryption for Data=False; possible=False';
Form1.ADOConnection1.ConnectionString:='Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=sa;Initial Catalog=ZZGL;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=M_120;Use Encryption for Data=False; possible=False';