Quote:
Originally Posted by solacunis.h
Question.
With XP comes Microsoft Works, there is a section called Data Base.
If you fill the data base with only the stuff you need to complete a project.
How do you connect to it considering it is internal, my Vis B is on the same machine.
This is self contained and not involving SQL etc.
cheers.
|
Regarding connecting with a Microsoft Works Database (*.wdb), there isn't really a clean way to do this. I tried playing with this some time ago, and the challenge I ran into was that I couldn't find a database driver or a data provider for Works database files.
Just a few thoughts...
I understand you don't have Access, so what you might try and do is export the *.wdb file as a flat *.csv file, and then import that into SQL Express (free).
You can create an ODBC connection to a *.csv or *.txt file by creating an ODBC connection with the Microsoft Text Driver. With that, there is a System.Data.ODBC database connection method in Visual Studio, which you could use to then tap into that *.csv file.
If you plan on using smaller databases, it might be worth the investment in Access, or maybe better, a Microsoft TechNet subscription (Windows and Office), or a pricier an MSDN subscription (Windows, Office, Visual Studio).
A bit more complicated, and certainly way more involved: you can create a blank Access *.mdb file when trying to create an Access ODBC connection within Windows (Control Panel, Administrative Tools, Data Sources, System DSN, Add, Microsoft Access Driver, Finish, Create...). If you created a blank Access file, you would then need to build an application in Visual Studio to populate the database (I know, ouch!).