Solved

connection to MS SQL server using delphi  7 Professional

Posted on 2003-11-18
5
1,869 Views
Last Modified: 2013-11-23
what is the best way to connect to MS SQL server using delphi 7 Pro??

I dont mind paying for a component.......

I have seen dbexpress from crlab.com


comments anyone???
0
Comment
Question by:alchemy9
5 Comments
 
LVL 17

Expert Comment

by:geobul
ID: 9770370
Hi,

I use ADO components which are built in Delphi (using 'Microsoft OLE DB Provider for SQL Server' in the connection string) and have no problems.

Regards, Geo
0
 

Author Comment

by:alchemy9
ID: 9770424
is the ole db provider included with professional or only enterprise

just seen this link as possible atlernatives

http://www.kylecordes.com/bag/index.html
0
 

Expert Comment

by:nick-p
ID: 9772574
The best way is actually through ADO...

Create a connection object, and click the connectionstring option and select the 'Microsoft OLE DB Provider for SQL Server'...

Make sure you are using a nt based system, because this doesn't work well with 95/98/ME, at least from my experience...
0
 

Expert Comment

by:nick-p
ID: 9772590
I forgot to add... make sure you update your MDAC to 2.8... Go to microsoft's download page...
0
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 250 total points
ID: 9777946
Personally I prefer ADO. But you have to decide if you want to use the ADO component sets or import the ADO type library directly. If you want to create a multi-tier application then I would suggest to import the type library. This will keep the serverside DLL's a bit smaller and better optimized. But for a simple desktop application with a database connection the ADO components should be more than good enough. And they are already part of D7Pro! :-)

ADO works a bit like the BDE. You have a connection, which is similar to a database in BDE. You have ADOTables and ADOQueries which are similar to TTable and TQuery components. You have a TADODataset which is a bit more generic component which is more useful if you create a multitier application. And you have the ADOCommand which can be used to call stored procedures, execute queries that don't return recordsets and some other uses. But of course you can also use ADOStoredProc to call a stored procedure.
ADO also offers the RDSConnection component which can be used to connect to a remote system and let the remote system call the database but this is only useful combined with the ADODataset component. I haven't found much use for it yet.

I hope you didn't mean MySQL instead of MS SQL. For MySQL you better use dbExpress instead.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi XE10 Round Image 2 154
Run video youtube webbrowse 10 65
select query - oracle 16 100
Tembedded WB animatid gifs not animated on some pcs 2 84
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question