Ask a Question related to ASP.NET General, Design and Development.
-
Paul #1
I am going to kill mysql
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=;serv er=127.0.0.1;database=dbnr
gplc;OPTION=17923")
but I keep getting the folowing error :
An OLE DB Provider was not specified in the ConnectionString. An example
would be, 'Provider=SQLOLEDB;'.
Any ideas as to where I am going wrong ??
Thanks for the help so far.
Paul Guest
-
How do I kill it?
:mad; When tring to read pages from the UK Daily Tel, I am continually distracted by asinine animated adverts. PLEASE - How can I kill them? -
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'... -
CFM will kill iis when off
This is a note for development environments. Using WinXPPRO IIS. When CFMX7 is installed and turned off IIS will be very slow to respond or pages... -
Kill Halo
I've been wading through all the information regarding component theme's, styles, etc. I think I'm more confused about it than when I started ... -
How to kill gdm??
Every time when killed gdm will restart itself, so if I start with gdm and later I don't want to see gdm after logout how should I do?? Thanks --... -
William F. Robertson, Jr. #2
Re: I am going to kill mysql
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" <paul@themedialounge.com> wrote in message
news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr> 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
>> gplc;OPTION=17923")
>
> but I keep getting the folowing error :
>
> An OLE DB Provider was not specified in the ConnectionString. An example
> would be, 'Provider=SQLOLEDB;'.
> Any ideas as to where I am going wrong ??
>
> Thanks for the help so far.
>
>
William F. Robertson, Jr. Guest
-
Alvin Bruney #3
Re: I am going to kill mysql
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.
[url]http://www.able-consulting.com/dotnet/adonet/Data_Providers.htm#MySQLNETNativeProvider[/url]
"Paul" <paul@themedialounge.com> wrote in message
news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr> 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
>> gplc;OPTION=17923")
>
> but I keep getting the folowing error :
>
> An OLE DB Provider was not specified in the ConnectionString. An example
> would be, 'Provider=SQLOLEDB;'.
> Any ideas as to where I am going wrong ??
>
> Thanks for the help so far.
>
>
Alvin Bruney Guest
-
Kevin Spencer #4
Re: I am going to kill mysql
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
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Paul" <paul@themedialounge.com> wrote in message
news:OFoB2$pWDHA.1812@TK2MSFTNGP11.phx.gbl...OleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr> 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
>> gplc;OPTION=17923")
>
> but I keep getting the folowing error :
>
> An OLE DB Provider was not specified in the ConnectionString. An example
> would be, 'Provider=SQLOLEDB;'.
> Any ideas as to where I am going wrong ??
>
> Thanks for the help so far.
>
>
Kevin Spencer Guest
-
Paul #5
Re: I am going to kill mysql
Is there no way that I can connect to mysql using ODBC?
"Kevin Spencer" <kevin@takempis.com> wrote in message
news:exuqHiqWDHA.656@tk2msftngp13.phx.gbl...library,> OLE DB and ODBC are 2 different technologies. You imported the OdbcOleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr> 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
> [url]http://www.takempis.com[/url]
> Complex things are made up of
> lots of simple things.
>
> "Paul" <paul@themedialounge.com> wrote in message
> news:OFoB2$pWDHA.1812@TK2MSFTNGP11.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
> >>> > gplc;OPTION=17923")
> >
> > but I keep getting the folowing error :
> >
> > An OLE DB Provider was not specified in the ConnectionString. An example
> > would be, 'Provider=SQLOLEDB;'.
> > Any ideas as to where I am going wrong ??
> >
> > Thanks for the help so far.
> >
> >
>
Paul Guest
-
Kevin Spencer #6
Re: I am going to kill mysql
Of course there is. You just use the ODBC library classes
(System.Data.Odbc), not the OleDb (System.Data.Oledb) classes.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Complex things are made up of
lots of simple things.
"Paul" <paul@themedialounge.com> wrote in message
news:uuaTnMzWDHA.3404@tk2msftngp13.phx.gbl...the> Is there no way that I can connect to mysql using ODBC?
>
>
> "Kevin Spencer" <kevin@takempis.com> wrote in message
> news:exuqHiqWDHA.656@tk2msftngp13.phx.gbl...> library,> > OLE DB and ODBC are 2 different technologies. You imported the Odbc> > but used the Oledb library in your code. If you need to use ODBC, useOleDbConnection("driver={MySql};uid=root;pwd=;serv er=127.0.0.1;database=dbnr>> > ODBC library classes.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > [url]http://www.takempis.com[/url]
> > Complex things are made up of
> > lots of simple things.
> >
> > "Paul" <paul@themedialounge.com> wrote in message
> > news:OFoB2$pWDHA.1812@TK2MSFTNGP11.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
> > >example> > > gplc;OPTION=17923")
> > >
> > > but I keep getting the folowing error :
> > >
> > > An OLE DB Provider was not specified in the ConnectionString. An>> >> > > would be, 'Provider=SQLOLEDB;'.
> > > Any ideas as to where I am going wrong ??
> > >
> > > Thanks for the help so far.
> > >
> > >
> >
>
Kevin Spencer Guest



Reply With Quote

