Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TYPE SQLDataAdapter NOT DEFINED

Posted on 2007-04-05
2
Medium Priority
?
769 Views
Last Modified: 2008-03-10
In MS Visual Studio.NET I am trying to make a simple data display page as part of a WebApplication, but I cannot instatiate the SqlComnnection or SqlDataAdapter object.

When i attempt to reference it, i get the following error:

"Dim myDA As New sqldataadapter" --> TYPE SQLDATAADAPTER NOT DEFINED

I have created a simple DataGrid object on the same page, and populated it with an sql Table using the drag-and-drop method.  This works Fine.  However, i want to be able to code the page manually.

Pls help
Regards
0
Comment
Question by:PeterMatthews
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
dctuck earned 2000 total points
ID: 18856806
Put

Imports System.Data.SqlClient

at the top of the file you are working in
0
 

Author Comment

by:PeterMatthews
ID: 18856823
Thanks DC!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question