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...
|