Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 February 22nd, 2010, 02:39 PM
Authorized User
 
Join Date: Mar 2009
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default regarding errors in database code


Dim
objConn As SqlConnection = New SqlConnection("server=(local);database=student;user=;passwor d=;")
Dim ObjDataAdapter As SqlDataAdapter = New SqlDataAdapter("SELECT name,class,branch" & "FROM student1", objConn)
Dim ObjDataSet As DataSet
Dim ObjDataView As DataView
Dim objCurrencyManager As CurrencyManager

this is the part of code i have used for implementing the student database.But after just clicking the build project button.It shows the 2 errors these are

1)Type SqlConnection is not defined.
2)Type SqlDataAdapter is not defined

I don't understand these errors.
So please tell me how to correct that errors?
Also tell me that how to make the database connection in SQL..

Thanking you...
 
Old February 22nd, 2010, 03:29 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

This thread would be better posted on the .net forum.

But if you need help, you have to include or use System.Data.Sqldataprovider
__________________
HTH

Gonzalo


================================================== =========
Read this if you want to know how to get a correct reply for your question.
(Took that from Doug signature and he Took that from Peter profile)
================================================== =========
My programs achieved a new certification :
WORKS ON MY MACHINE
================================================== =========
I know that CVS was evil, and now i got the
proof.
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Program Code Errors ed123 Beginning PHP 0 September 8th, 2007 03:53 AM
asp errors with database recordset code dhx10000 Classic ASP Professional 0 June 27th, 2006 12:30 PM
database errors singhzubin PHP Databases 2 April 16th, 2005 05:05 PM
Printing Errors / Example Code Fire BOOK: Access 2003 VBA Programmer's Reference 0 April 12th, 2005 02:52 PM





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