Solved

connection to MS SQL server using delphi  7 Professional

Posted on 2003-11-18
5
2,107 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

729 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