Nobody,
This is what I have after clipping the suggested strings out of the
link and changing it as you suggested:
Try
Dim connectionString As String =
"Provider=MySQLProv;Server=localhost;Database=Jags;
User=ed;Password=sioux;Option=3;"
Dim conn As New OleDb.OleDbConnection(connectionString)
Dim daAllModels As New OleDb.OleDbDataAdapter("Select * from
ModelTable", conn)
daAllModels.Fill(dsAllModels, "ModelTable")
Catch ex As Exception
Response.Write(ex.ToString)
End Try
It doesn't work, I get the following results in the form, but no data.
Error report follows. Obviously, it doesn't like the provider name.
System.InvalidOperationException: The 'MySQLProv' provider is not
registered on the local machine. at
System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString
constr, DataSourceWrapper& datasrcWrapper) at
System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString
constr, OleDbConnection connection) at
System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool,
DbConnection owningObject) at
System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection
owningConnection, DbConnectionPoolGroup poolGroup) at
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection
owningConnection) at
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) at
System.Data.OleDb.OleDbConnection.Open() at
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
srcTable, IDbCommand command, CommandBehavior behavior) at
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) at
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String
srcTable) at JagModelsWeb.WebForm1.Page_Load(Object sender, EventArgs
e) in c:\inetpub\wwwroot\JagModelsWeb\SelectModelsForm.aspx.vb:line 61
Note that I have installed mysql-connector-odbc-5.1.5-win32.msi on my
Windows machine. I also remind everyone I'm running MS Visual Studio
2002. I can see mysqld.exe running in Task manager, but also
sqlserver.exe. No evidence of a mysqlodbc or anything like that. Don't
what that inplies.
Ed