Solved

MFC programming with OLE DB

Posted on 2000-03-08
3
466 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now