View Single Post
  #2 (permalink)  
Old December 31st, 2004, 08:15 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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?
Reply With Quote