Hi
Place an ADO Connection in your form. then
procedure TForm1.FormCreate(Sender: TObject);
begin
ADOConnection1.ConnectionString := 'Provider=SQLOLEDB.1;Password=password;Persist Security Info=True;User ID=sa;Initial Catalog=DATABASE;Data Source=SERVERNAME'
or SERVERNAME can be (local) if you're using MSDE on local pc
to connect
Try
ADOConnection1.Open;
Except
End;
end;