B
brin
I have the following vb class and am trying to compile it using vbc.exe. I
receive errors stating that System.Data and System.Data.SqlClient cannot be
imported. I am fairly new to this, any help would be gratefully recieved.
Imports System
Imports System.Data.SqlClient
Imports System.Data
Imports System.Configuration
Namespace DBConnect
Public Class connect
protected conn as SqlConnection
Public Sub New()
conn = New SqlConnection(
"Server=localhost;uid=name;pwd=pass;database=db" )
End Sub
protected sub openConn()
conn.open()
end sub
protected sub closeConn()
conn.close()
end sub
End Class
End Namespace
Cheers
Brin
receive errors stating that System.Data and System.Data.SqlClient cannot be
imported. I am fairly new to this, any help would be gratefully recieved.
Imports System
Imports System.Data.SqlClient
Imports System.Data
Imports System.Configuration
Namespace DBConnect
Public Class connect
protected conn as SqlConnection
Public Sub New()
conn = New SqlConnection(
"Server=localhost;uid=name;pwd=pass;database=db" )
End Sub
protected sub openConn()
conn.open()
end sub
protected sub closeConn()
conn.close()
end sub
End Class
End Namespace
Cheers
Brin