Hi
I did the following in an effort to connect to mysql using VB.net on a
windows XP pro machine.
I made reference to and used the import statement as follows :
Imports Microsoft.Data. Odbc
I then created my connection with the following :
Dim objConnection As New
OleDbConnection ("driver={MySql };uid=root;pwd= ;server=127.0.0 .1;database=dbn r
gplc;OPTION=179 23")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionStrin g. An example
would be, 'Provider=SQLOL EDB;'.
Any ideas as to where I am going wrong ??
Thanks for the help so far. 5 1539
Create a file with the extension .udl. Try to open it. It will open with
the little "connection wizard" (I can't remember what the real name of it
is.) Set up all your connection information, test the connection, and save.
Then open the UDL file with notepad and that will be the connection string
to use.
HTH,
bill
"Paul" <pa**@themedial ounge.com> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl... Hi
I did the following in an effort to connect to mysql using VB.net on a windows XP pro machine. I made reference to and used the import statement as follows :
Imports Microsoft.Data. Odbc
I then created my connection with the following :
Dim objConnection As New
OleDbConnection ("driver={MySql };uid=root;pwd= ;server=127.0.0 .1;database=dbn r gplc;OPTION=179 23")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionStrin g. An example would be, 'Provider=SQLOL EDB;'. Any ideas as to where I am going wrong ??
Thanks for the help so far.
Mysql uses its own providers which are oledb. You need to set references to
bytefx and sharpziplib and then do the imports thing. That will make
namespaces available to your code. All of them start with MYSQL.... etc. http://www.able-consulting.com/dotne...NativeProvider
"Paul" <pa**@themedial ounge.com> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl... Hi
I did the following in an effort to connect to mysql using VB.net on a windows XP pro machine. I made reference to and used the import statement as follows :
Imports Microsoft.Data. Odbc
I then created my connection with the following :
Dim objConnection As New
OleDbConnection ("driver={MySql };uid=root;pwd= ;server=127.0.0 .1;database=dbn r gplc;OPTION=179 23")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionStrin g. An example would be, 'Provider=SQLOL EDB;'. Any ideas as to where I am going wrong ??
Thanks for the help so far.
OLE DB and ODBC are 2 different technologies. You imported the Odbc library,
but used the Oledb library in your code. If you need to use ODBC, use the
ODBC library classes.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Complex things are made up of
lots of simple things.
"Paul" <pa**@themedial ounge.com> wrote in message
news:OF******** ******@TK2MSFTN GP11.phx.gbl... Hi
I did the following in an effort to connect to mysql using VB.net on a windows XP pro machine. I made reference to and used the import statement as follows :
Imports Microsoft.Data. Odbc
I then created my connection with the following :
Dim objConnection As New
OleDbConnection ("driver={MySql };uid=root;pwd= ;server=127.0.0 .1;database=dbn r gplc;OPTION=179 23")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionStrin g. An example would be, 'Provider=SQLOL EDB;'. Any ideas as to where I am going wrong ??
Thanks for the help so far.
Is there no way that I can connect to mysql using ODBC?
"Kevin Spencer" <ke***@takempis .com> wrote in message
news:ex******** *****@tk2msftng p13.phx.gbl... OLE DB and ODBC are 2 different technologies. You imported the Odbc
library, but used the Oledb library in your code. If you need to use ODBC, use the ODBC library classes.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Complex things are made up of lots of simple things.
"Paul" <pa**@themedial ounge.com> wrote in message news:OF******** ******@TK2MSFTN GP11.phx.gbl... Hi
I did the following in an effort to connect to mysql using VB.net on a windows XP pro machine. I made reference to and used the import statement as follows :
Imports Microsoft.Data. Odbc
I then created my connection with the following :
Dim objConnection As New
OleDbConnection ("driver={MySql };uid=root;pwd= ;server=127.0.0 .1;database=dbn r gplc;OPTION=179 23")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionStrin g. An example would be, 'Provider=SQLOL EDB;'. Any ideas as to where I am going wrong ??
Thanks for the help so far.
Of course there is. You just use the ODBC library classes
(System.Data.Od bc), not the OleDb (System.Data.Ol edb) classes.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer http://www.takempis.com
Complex things are made up of
lots of simple things.
"Paul" <pa**@themedial ounge.com> wrote in message
news:uu******** ******@tk2msftn gp13.phx.gbl... Is there no way that I can connect to mysql using ODBC?
"Kevin Spencer" <ke***@takempis .com> wrote in message news:ex******** *****@tk2msftng p13.phx.gbl... OLE DB and ODBC are 2 different technologies. You imported the Odbc library, but used the Oledb library in your code. If you need to use ODBC, use
the ODBC library classes.
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer http://www.takempis.com Complex things are made up of lots of simple things.
"Paul" <pa**@themedial ounge.com> wrote in message news:OF******** ******@TK2MSFTN GP11.phx.gbl... Hi
I did the following in an effort to connect to mysql using VB.net on a windows XP pro machine. I made reference to and used the import statement as follows :
Imports Microsoft.Data. Odbc
I then created my connection with the following :
Dim objConnection As New
OleDbConnection ("driver={MySql };uid=root;pwd= ;server=127.0.0 .1;database=dbn r gplc;OPTION=179 23")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionStrin g. An
example would be, 'Provider=SQLOL EDB;'. Any ideas as to where I am going wrong ??
Thanks for the help so far.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob Swerdlow |
last post by:
My application starts up a number of processes for various purposes using:
self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py")
and then shuts them down when appropriate with
os.kill(self.popen.pid, signal.SIGTERM)
Everything works fine on MacOSX. However, I'm doing a port to Solaris (so I
can run it on my web site) and find that the child processes are not
stopping! Solaris is creating TWO new processes: one for the SHELL...
|
by: Fred |
last post by:
There is a setting in INIT.ORA that has the unintended side-effect of
making sure the ALTER SYSTEM KILL SESSION command has immediate affect.
Without this setting, I've seen some instances where the session reports
as being KILLED in V$SESSION but is not physically removed until the
instance is bounced. Does anyone remember this value offhand?
|
by: Robert Oschler |
last post by:
Hello,
I just had an unhappy unincident. I did a spot check on one of my PHP/MySQL
pages and when I tried running the page I got an "Unable to connect to
database" error which is what the PHP code driving the page reports when the
MySQL connect attempt bombs out.
I went into PHPMyAdmin and ran "Show Processes". What I found was over 10
processes still trying to INSERT a record, all with a LOCKED status. I
manually killed every...
|
by: craig |
last post by:
I'm having so much trouble just trying to get up and running with
mysql
The latest is that I discovered now that it executes from the command
line that I can not kill the mysql process.
I'm having problems trying to get permissions to create a db. I get so
much feed back from mysql that it is difficult to guess what
specifly is my problem.
|
by: Geoffrey |
last post by:
I'm trying to use an SQL plug-in to synch. FileMaker (FM) with a MySQL
DB. All is going great EXCEPT my FM text fields. If I have any special
characters in my FM text field, they foul-up the INSERT/UPDATE query
and produce an error.
For example, in the following sentence in the FM field:
I'm happy!
The information needs to go into the MySQL column as:
| |
by: Fresh Air Rider |
last post by:
Hi
I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by
70%.
Surely this is going to de-skill or dumb down the developers task and
open up the task to less qualified and trained staff.
Tell me if I'm wrong.
|
by: opt_inf_env |
last post by:
Hello,
Let us suppose that PHP file contains cycle which will never stop. For
example:
while ( 2==2 )
{
some usage of database;
}
User which opens this PHP page runs time consuming execution of the
cycle. My question is whether this execution will be automatically
stopped after user closes the PHP file (or closes his browser). I
|
by: subnet |
last post by:
I'm trying to write a very simple program that uses a signal-based
synchronization between two processes. Here's it:
-----------------------------------------------
/* The world's simplest syncronization example */
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
void handler(int sig);
|
by: Fabrice |
last post by:
Hello,
I 'would like to build a system (based on database, not SqlServer but MySQL)
to permit only one session per user. I'm using a form athentication.
My Solution :
---------------
When a connection is established by a user, I realize an insert in a Table,
named tbLogin with many informations such as idUser, SessionId, Guid, Date,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |