Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB.NET
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 31st, 2004, 08:01 AM
Authorized User
Join Date: Dec 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 ?
Old December 31st, 2004, 08:15 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

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.


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?
Old June 3rd, 2011, 10:18 PM
Authorized User
Join Date: Feb 2011
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
Default Thanks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Reference System.Data.dll (ch 2, ex 1) Moonpile BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 January 8th, 2007 02:44 PM
System.Data.SqlClient.SqlDataReader - URGENT wk ASP.NET 2.0 Basics 8 September 27th, 2006 05:00 AM
'SYSTEM.DATA.SQLCLIENT.SQLEXCEPTION' soorsha General .NET 0 September 23rd, 2006 11:59 PM
System.Data.SqlClient.SqlException: Login failed f belete SQL Server 2005 3 May 18th, 2006 08:18 AM
System.Data.SqlClient.SqlException kbarsi Beginning VB 6 2 August 13th, 2005 09:39 PM

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