Solved

MFC programming with OLE DB

Posted on 2000-03-08
3
474 Views
Last Modified: 2013-11-25
We tried creating an application in VC++ using MFC Appwizard.
When we tried to select an OLE DB data source in the wizard, we got an error message saying "Data source not accessible" followed by
"Table data not accessible". Can you please tell, what could be the problem.We could however, access OLEDB provider for SQL server when using it for ADODC ActiveX data control. Should we include some options while installing the visual studio?
0
Comment
Question by:sebide
3 Comments
 

Expert Comment

by:Subramanya
ID: 2598346
You have to create the DSN through control panel using odbc data sources
You can use this DSN in the programming
to connect to the database passing
username and passwd,But i never tryed
OLEDB data source directly in the
wizard
0
 

Author Comment

by:sebide
ID: 2599259
Thank you Mr.Subramanya for your immediate response.
We tried creating the ODBC DSN for SQL server and then create OLEDB provider for that ODBC DSN.But, the problem here was that we could select only one table ,that is, multiple selection was not possible. I tried it with CTRL key pressed and Shift key pressed also. Can you help us on this aspect? Please reply soon.
0
 

Accepted Solution

by:
mrmzxwfl earned 25 total points
ID: 2627308
Try another ODBC DSN
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
countEvens challenge 2 112
modThree challenge 4 98
Delphi Mdi application Child forms get behind control 7 273
SSRS troubles 4 70
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question