| |

VerySource

 Forgot password?
 Register
Search
View: 934|Reply: 8

How to operate dbase database, odbc, dao, ado under VC?

[Copy link]

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-3 10:30:02
| Show all posts |Read mode
Hello everyone, I want to use VC to split (* .dbf) files into N dbf files according to a certain field. This involves database operations. I do n’t want to use odbc because it requires that a new data source be created in the odbc source . But with
ADO found that the connection string could not be found. Doesn't ADO consider the dbase database anymore? I also saw the best method on the Internet is to use DAO. I use it like this in VB. It is more convenient. I do n’t know how to use it under VC?
Reply

Use magic Report

0

Threads

55

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-5-15 11:30:01
| Show all posts
May only use ODBC or DAO.
Reply

Use magic Report

0

Threads

32

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 Invalid IP Address

Post time: 2020-5-15 19:00:02
| Show all posts
Using ODBC, the data source created during installation is to write the registry according to the location where the user installs:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-5-16 13:15:01
| Show all posts
Thank you for your suggestions, but if you use ODBC, it will automatically complete the work of building a data source in the odbc data source of the control panel. There is a problem, the location of the data source may be different according to the user's situation.
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-6-21 22:00:02
| Show all posts
Use ODBC SDK API.
With SQLDriverConnect, there is no need to set up a data source.
Specify the connection string as "Driver={Microsoft dBASE Driver (*.dbf)};DBQ=x:\your path; DriverID=277;".
Reply

Use magic Report

0

Threads

32

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 Invalid IP Address

Post time: 2020-6-24 13:30:01
| Show all posts
The location can be determined when installing the software, Install Shelled has this function.
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-7-3 00:15:01
| Show all posts
I missed one place. The part of operating the database is finally written as a dll for other applications to use
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-7-18 09:00:01
| Show all posts
How to operate dbase with dao, how to open dbase database
Reply

Use magic Report

0

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-7-25 10:45:01
| Show all posts
MSDN: DAO is best used with databases that the Microsoft Jet database engine can read....Best performance is with Microsoft Jet (.MDB) databases.

ODBC is recommended to operate dbase.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list