p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET (http://p2p.wrox.com/forumdisplay.php?f=83)
-   -   Missing System.Data.SQLClient dll (http://p2p.wrox.com/showthread.php?t=23295)

mike_abc December 31st, 2004 08:01 AM

Missing System.Data.SQLClient dll
 
I am not able to add the System.Data.SQLClient Namespace to my project. :(

If I right-click on Solution Explorer/References to "Add Reference" there's no System.Data.SQLClient Namespace to be found !

In fact, the System.Data.SqlClient.dll is missing from my \Windows\Microsoft.NET\Framework\.... folder alltogether. Is that the reason ?

Is something wrong with my installation or what ? Can I download it from somewhere ?

Imar December 31st, 2004 08:15 AM

Hi Mike,

You should add a reference to the System.Data assembly, that holds the System.Data namespace, including System.Data.SqlClient. Once you added the reference, use

Import System.Data.SqlClient

for a VB.NET project or

using System.Data.SqlClient;

for a C# project.

The Import / Using statement makes the SqlClient namespace (located in the System.Data assembly) available to your code.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Drunken Butterfly by Sonic Youth (Track 4 from the album: Dirty) What's This?

scolty June 3rd, 2011 10:18 PM

Thanks
 
I just had the same problem. Thanks for helping me solve it.


All times are GMT -4. The time now is 12:15 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.