• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 811
  • Last Modified:

odbc select excel

Yes I have a select query to select the sheet name, I was wondering is there anyway to select a sheet name dynamically, so the sheet name can be what ever but the select statement will still select that sheet name.
Dim MyConnection As System.Data.OleDb.OleDbConnection
        Dim sqlStr As String = "SELECT * FROM [030120080704$]", extendedString As String
 
        MyConnection = New System.Data.OleDb.OleDbConnection( _
              "provider=Microsoft.Jet.OLEDB.4.0; " & _
              "data source=C:\Excel\Grocery7-04-08.xls; " & _

Open in new window

0
Seven price
Asked:
Seven price
1 Solution

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now