Marni Alvarez
4/23/2002 5:56:00 AM
Can anyone help? I installed ODBC.NET Provider but it
seems the namespace Microsoft.Data.Odbc has not been
registered properly. I am getting this error:
error BC30002: Type 'OdbcConnection' is not defined.
Here is my code below. Any ideas?
<%@ Import Namespace="Microsoft.Data.Odbc" %>
<script language="VB" runat="server">
Public Sub Page_Load(Sender As Object, E As EventArgs)
Dim conn As New OdbcConnection("DRIVER{MySQL};SERVER=localhost;DATABASE=test;UID=marni")
Dim cmd As OdbcCommand
conn.Open()
cmd = New OdbcCommand("select * from mytable", conn)
...
Thanks in advance,
Marni