easy,
在ODBC中建立SQL SERVER 的数据源,BDE会自动识别上去得

解决方案 »

  1.   

    用delphi5-6里面的ado连接,最好用ado,ado比bde简单,而且bde   borland公司不升级了。
      

  2.   

    也可以不用ODBC只用BDE.不过你在连前必须保证SQL Server 要采用SQL Server的
    身份验证(不能只采有 NT 集成的身份验证 ).
      

  3.   

    procedure TfrmMain.FormShow(Sender: TObject);
    begin
     statusbar1.Panels[0].Text:='正在连接数据库...';
     conn.ConnectionString:='Provider=MSDASQL.1;
             Persist Security Info=False;Data Source=test';
     try
           conn.Connected:=true;
     except
           on E:EOleException do
              begin
                   statusbar1.Panels[0].Text:='数据库连接失败';
                   showmessage(E.Message);
                   application.Terminate;
              end;
     end;
     statusbar1.Panels[0].Text:='数据库连接成功';end;