Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 21st, 2003, 03:14 AM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default some problem about ODBC connection ---hurry up

hello everyone

i have some question about odbc connection
i use mysql database so i can't use oledb provider
but i can also use "Microsoft.Data.Odbc.OdbcConnection()"
but when i connect the database there is some error when i use open function .
i have no idea about this when i use oledb provider it's ok .


code :
Dim connstrx
connstrx = "Provider=MSDASQL.1;Persist Security Info=False;User ID=root;Data Source=rpmsmysql"
Dim odbcconn As New Microsoft.Data.Odbc.OdbcConnection()
Dim odbcconn As OleDb.OleDbConnection
odbcconn.ConnectionString = connstrx
odbcconn.Open()


 
Old September 17th, 2003, 05:39 PM
Authorized User
 
Join Date: Aug 2003
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rosalynb
Default

for ODBC,
did you download the following link ?
http://www.microsoft.com/downloads/d...2-D165078E32B1

then you should right click on the references under your solution and add it there.
the path that should browse from is :
C:\Program Files\Microsoft.NET\Odbc.Net

hope it helps.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing ODBC connection kornshell SQL Server ASP 0 June 18th, 2007 09:52 AM
ODBC Connection problem with .csv file wattgn VB Databases Basics 2 November 2nd, 2005 05:30 PM
Need Help with ODBC connection johnjohn Visual C++ 2 December 7th, 2004 01:11 PM
ODBC Connection abilodeau Access 3 September 22nd, 2004 09:05 PM
ODBC connection mishaq SQL Server 2000 13 June 16th, 2004 02:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.