14

When designing a new Crystal Report you have to create a new database connection. I have selected OLE DB (ADO) as the 'driver' as it made more sense than DAO,RDO or the other options for my requirements.

I need to execute an SQL Server 2005/2008 stored procedure on a remote server and show the results in Crystal Reports on a .NET client.

Selecting OLE DB, presents me with further options to select the correct provider, some of which are:

  • Microsoft OLEDB provider for ODBC drivers
  • Microsoft OLEDB provider for SQL Server
  • SQL Native Client
  • SQL Server Native Client 10.0

Which on is the best to use?

  • I don't want to use the ODBC drivers, for various disadvantages (setting up ODBC definitions and maybe slower).
  • Not sure how the OLEDB provider for SQL Server compares with the native client
  • The native client forced me to run the native client setup on each desktop. It also seems that there is different version for each version of SQL Server.

Initially I thought the native client is the logical choice for compatibility and performance but deployment seems to be an issue (unless I am doing something wrong)

What is the best connection driver/provider combination to use here?

0

1 Answer 1

8

I would go with the Microsoft OLEDB provider for SQL Server. If you use the native client, you will need to distribute it with your applications.

This article talks about the native client in detail: http://blog.flex2sql.com/index.php/2009/02/how-and-when-to-use-sql-server-native-client/

2
  • Thanks Brian, that is the type of information I was look for. The supplied link to the article explained it nicely. Nov 2, 2010 at 17:21
  • 1
    After 7 hours struggling with Crystal Reports and its message "Cannot connect to database" I found your answer and solved my problem. This represents how time wasting can be undetailed error messages... Thanks a lot Brian!
    – spekdrum
    Oct 2, 2012 at 7:46

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.