2

Hello I'm currently working on a project using Visual 2010, I'm utilizing the SQL Libraries:

using System.Data;
using System.Data.SqlClient;

A major concern which leaps to mind, is.. Would my clients using the application need to have the SQL package installed in order for the application to communicate with the SQL Engine?

If so, is there a work around so that the user would not require downloading further required executionables/installers?

5
  • Those namespaces will be in the GAC. You don't have to worry about them being missing. If, for instance, you were using Entity Framework you'd need to make sure the binaries are part of your deployment process. Commented Aug 3, 2014 at 0:51
  • Those are not "SQL Libraries". They are ADO.NET "libraries". The second is intended to communicate with SQL Server. Most communication with SQL Server does not require SQL Server to be installed on the client machine. Commented Aug 3, 2014 at 0:54
  • @Yuck 100% sure that they would be in the Assembly cache and would require no other intervention from the clients to get this application running? Commented Aug 3, 2014 at 0:54
  • @DarylGill chances are pretty well just as high that those will be there as, say, the System.Windows.Forms namespace. It's all part of the .NET framework. Of course, you do have to make sure that's installed, but you'd have to do that anyway. And most installers will handle that if need be, if that's what you plan to deploy with. Commented Aug 3, 2014 at 1:04
  • @DarylGill Echoing what Matthew said, you get the namespaces you're asking about for free as part of installing the .NET framework. It's been this way as long as I can remember - at least since version 2.0 Commented Aug 3, 2014 at 1:16

1 Answer 1

1

The namespaces you have listed are part of the .NET framework and doesn't actually need any part of SQL Server to be installed.

Windows ships with the .NET framework installed so all you need to do is make sure that the correct version of .NET is installed for the version your application is compiled against.

Depending on what installer you use, you may be able to specify a specific version of the .NET framework as a dependency of your application.

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

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.