#1 mORMot 1 » When I use TSQLDBUniDACConnectionProperties to connect to oracle.... » 2018-03-07 00:57:00

wxb_km
Replies: 0

When I use TSQLDBUniDACConnectionProperties to connect to  an oracle instance,as following:

begin
   Props:=TSQLDBUniDACConnectionProperties.Create('Oracle','10.53.2.134:1521/or10g','rkdata','rkdata');
   Props.SpecificOptions.Values['Charset']:='utf8';
   Props.SpecificOptions.Values['Direct']:='True';
   Props.SpecificOptions.Values['UseUnicode']:='True';
   conn1:=TSQLDBUniDACConnection.Create(props);
   conn1.Database.LoginPrompt:=False;
   conn1.Connect;
end;

When go to  conn1.Connect,a connectdialog shows and ask me to input a password,then I can connect to oracle.But I whish connect silently,the information above(username,password...) is enogh,why the
connectdialog always show?
Help me! thanks in advance.

wxb_km@qq.com
2018.3.7

Board footer

Powered by FluxBB