| |

VerySource

 Forgot password?
 Register
Search
View: 879|Reply: 3

Does anyone have ever encountered a need to query both excel tables and tables in the database at the same time

[Copy link]

1

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-3-3 12:00:02
| Show all posts |Read mode
I want to query the excel table and the table in the database together, and display it, but I don’t know how to do it. Experts please give pointers
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2021-3-3 12:15:01
| Show all posts
Refer to SQL online help OPENDATASOURCE
Reply

Use magic Report

1

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2021-3-3 12:30:01
| Show all posts
I tried to use  SELECT * in the query analyzer
FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0',
  'Data Source="D:\General\SIC.xls";User ID=Admin;Password=;Extended properties=Excel 5.0')...xactions

 'Unable to find the registry key of OLE DB provider'Microsoft.Jet.OLEDB.4.0' appears. '
And I use  'Microsoft.Jet.OLEDB.4.0' in the program,
  'Data Source="D:\General\SIC.xls";User ID=Admin;Password=;Extended properties=Excel 5.0'
No problem
Don't understand why?
Reply

Use magic Report

1

Threads

3

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

 Author| Post time: 2021-3-3 12:45:02
| Show all posts
Is now appearing

The OLE DB provider'Microsoft.Jet.OLEDB.4.0' reported an error. verification failed.
[OLE/DB provider returned message: Unable to start the application. The workgroup information file is missing or has been opened exclusively by another user. ]

mistake
I don’t have the file, nor did I open it. Why is this happening?
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