用DELPHI adoconnection 连接局域网内sql数据库服务器,在程序启动时输入要登陆的服务器和数据库;代码如下:
  try
  begin
    with ADOConnection1 do
    begin
      Close;
      ConnectionString:='Provider=SQLOLEDB.1;'
      +'Integrated Security=SSPI;Persist Security Info=false;'
      +'Initial Catalog='+edit2.Text+';Data Source='+edit1.Text ;
      Open;
      if Connected then
      begin
        Form1.Show;
        Form2.Hide;
      end;
    end;
   end; 
except
  application.MessageBox('数据库连接失败,请确认无误后重试!','提示:')
end;
我用delphi运行程序时,连接局域网内数据库服务器一点问题没有,我用installshield express制作安装程序时,根据dependencies扫描,加入了connect.msm 和sqlbase.msm制作成功后在其他电脑上安装,
基本上还没有安装完成,安装程序就被中断结束了,如果不加入connect.msm和sqlbase.msm,安装程序在其他电脑上能安装完成,但填入登陆信息后,出现try cxcept end中的异常,请问为什么会这样?