Click here to Skip to main content
15,910,471 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to export data to sql uploaded in web Pin
Pete O'Hanlon14-Jan-14 23:13
mvePete O'Hanlon14-Jan-14 23:13 
GeneralRe: how to export data to sql uploaded in web Pin
Paul Conrad15-Jan-14 5:39
professionalPaul Conrad15-Jan-14 5:39 
GeneralRe: how to export data to sql uploaded in web Pin
Pete O'Hanlon15-Jan-14 5:42
mvePete O'Hanlon15-Jan-14 5:42 
GeneralRe: how to export data to sql uploaded in web Pin
Paul Conrad15-Jan-14 5:50
professionalPaul Conrad15-Jan-14 5:50 
GeneralRe: how to export data to sql uploaded in web Pin
Paul Conrad15-Jan-14 5:38
professionalPaul Conrad15-Jan-14 5:38 
GeneralRe: how to export data to sql uploaded in web Pin
fatemehsoleimani16-Jan-14 4:26
fatemehsoleimani16-Jan-14 4:26 
AnswerRe: how to export data to sql uploaded in web Pin
Prabhu S M15-Jan-14 0:48
Prabhu S M15-Jan-14 0:48 
QuestionMySQL connection [solved] Pin
V.13-Jan-14 2:36
professionalV.13-Jan-14 2:36 
Does anyone know what could be wrong here:

Using Odbc to connect to a MySQL database.
Driver={MySQL ODBC 5.2 Driver};Server=[server url];Port=3306;Database=[dbname];User=[usrname];Password=[pwd];Option=3;


I checked the datasource (64 bit, the 32 bit doesn't seem to have a driver) and it looks ok. The only difference is the driver in the Data Sources says: "MySQL ODBC 5.2 Unicode Driver", but I tried that too (and the ANSI version as well).

I always receive the error:
ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

I googled this, but nothing worked so far.

Additionally I tried the OleDb version with this stuff: http://dev.mysql.com/downloads/connector/net/[^], but that doesn't work either with this connection string.
(Provider=MySQL Provider;Data Source=[servername];User ID=[usrname];Password=[pwd];Initial Catalog=[dbname];) The driver is "activated".


The parameters I pass are correct and MySQL Workbench is working as well as the ODBC connection.
The code is pretty robust by know and PostgreSQL ODBC works, so I'm pretty sure it's not the code (although you never know.)

Does anyone have an idea?
thanks!

[SOLUTION]
My mistake, I was under the impression that the provider installed OleDb support, but in fact it installs an entire new provider (MySql provider). When interfaced with that it looks like it's working. Shucks | :-\
[\SOLUTION]


modified 13-Jan-14 9:27am.

AnswerRe: MySQL connection [solved] Pin
OriginalGriff13-Jan-14 6:21
mveOriginalGriff13-Jan-14 6:21 
Questionnetwork printer management Pin
iraheb12-Jan-14 0:25
iraheb12-Jan-14 0:25 
AnswerRe: network printer management Pin
OriginalGriff12-Jan-14 1:47
mveOriginalGriff12-Jan-14 1:47 
AnswerRe: network printer management Pin
Marco Bertschi12-Jan-14 5:14
protectorMarco Bertschi12-Jan-14 5:14 
Questionimport dat from excel to sql Pin
fatemehsoleimani10-Jan-14 23:24
fatemehsoleimani10-Jan-14 23:24 
AnswerRe: import dat from excel to sql Pin
Richard MacCutchan10-Jan-14 23:56
mveRichard MacCutchan10-Jan-14 23:56 
GeneralRe: import dat from excel to sql Pin
fatemehsoleimani11-Jan-14 7:31
fatemehsoleimani11-Jan-14 7:31 
Questionhow to display the value of id result in access database in a datagridview using c# Pin
Member 1049158710-Jan-14 6:02
Member 1049158710-Jan-14 6:02 
AnswerRe: how to display the value of id result in access database in a datagridview using c# Pin
Eddy Vluggen10-Jan-14 6:21
professionalEddy Vluggen10-Jan-14 6:21 
QuestionSQL Primary Key Issue Pin
Glen Childs10-Jan-14 0:21
Glen Childs10-Jan-14 0:21 
AnswerRe: SQL Primary Key Issue PinPopular
Wayne Gaylard10-Jan-14 0:50
professionalWayne Gaylard10-Jan-14 0:50 
AnswerRe: SQL Primary Key Issue Pin
Simon_Whale10-Jan-14 1:35
Simon_Whale10-Jan-14 1:35 
QuestionHow can I get HotSpot and Size of mouse cursor in C#? Pin
job@3deden.com9-Jan-14 21:27
job@3deden.com9-Jan-14 21:27 
AnswerRe: How can I get HotSpot and Size of mouse cursor in C#? Pin
Richard MacCutchan9-Jan-14 22:54
mveRichard MacCutchan9-Jan-14 22:54 
QuestionHOw can i export multiple datagridview to an excel file with multiple sheet Pin
Real_Criffer9-Jan-14 2:45
Real_Criffer9-Jan-14 2:45 
AnswerRe: HOw can i export multiple datagridview to an excel file with multiple sheet Pin
237419-Jan-14 3:03
237419-Jan-14 3:03 
AnswerRe: HOw can i export multiple datagridview to an excel file with multiple sheet Pin
Eddy Vluggen9-Jan-14 8:53
professionalEddy Vluggen9-Jan-14 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.