Solved

connection to MS SQL server using delphi  7 Professional

Posted on 2003-11-18
5
2,189 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
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…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

631 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