3

I usually use Delphi-targeted databases for most of my work (NexusDB typically, lately), but still have bad memories of how painfully slow connecting (and posting) to MS Access was via ADO. I have a new project that may need to target MS SQL Server. For D2007 Pro, what is the best way to connect to MS SQL Server? (Third party components = fine, if that's the best route).

6 Answers 6

6

The TADOConnection really isn't that bad. Access was never intended to be a production RDBMS. ADO works much faster with SQL Server than with Access. See http://support.microsoft.com/kb/225048 for some of the reasons why.

Sign up to request clarification or add additional context in comments.

3 Comments

if using TADO* without using databound controls, always call DisableControls before opening - it can be much faster.
p.s. It can be better to create your own subclasses, calling DisableControls in the constructor.
I use TADO* with TClientDatasets to connect MS SQL Server, no problem at all. All Access projects I've done was a maintenance project, which finished sometime ago.....
3

The AnyDAC offers great feature set and performance, as simplifies development of the database applications. AnyDAC supports MS SQL Server, MS Access and much more.

Comments

2

The UniDac Component from DevArt / Corelab is your best option It offers fast performance and you can talk to a number of differrent databases

Comments

2

I always recommended DevArt db components fro their performance and reliability.

You can choose between SDAC(for direct access to sql server) or UniDac (direct access to Sql server, Oracle, MySql,PostgreSql and Interbase/firebird)

if you don't require the advanced components that access specific features of sql server like TMSChangeNotification, TMSTransaction or TMSServiceBroker, then you can go with UniDac so your application will be designed to work with multiple databases.

Comments

1

Devart offer components and dbExpress drivers for accessing SQL Server databases. The also have UniDAC which supports other databases as well.

Da-soft AnyDac supports SQL Server and other databases.

Bob Swart has published Delphi for Win32 VCL Database Development on Lulu, if you need any help.

Comments

1

I use ADO to connect to Sql Server since Delphi 7 and it always worked great

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.