Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6566341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:12:20+00:00 2026-05-25T14:12:20+00:00

How to get the sheet names in an Excel file using SQL Sever 2005?

  • 0

How to get the sheet names in an Excel file using SQL Sever 2005?

Please be noted that:

  • There is no front-end (C#, VB, PHP, etc.);
  • I am trying to get the sheet names using nothing but SQL Server 2005 alone.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:12:20+00:00Added an answer on May 25, 2026 at 2:12 pm

    You can’t. There are two routes to reading data from Excel. One is the COM/OLE automation route which would allow you to enumerate through worksheets in a workbook. That requires a procedural language which TSQL won’t do. I don’t even think if you allowed CLR methods into the mix, you’d be able to access the Office libraries as they aren’t on the BCL list.

    The second route would be to use the Jet driver via openquery in this case but as part of the setup, you need to explicitly define the file and worksheet to access. You can forgo listing the worksheet name but even then, Excel does not expose metadata about worksheets to the best of my divination.

    I’ll delete this answer if someone knows another way but having sliced this problem in a number of ways, I haven’t come up with an answer that doesn’t boil down to one of the two aforementioned approaches.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am preparing myself for importing data from excel sheet to sql server 2005.I
I try to get excel sheet names, with oledb. My connection string is: Provider=Microsoft.ACE.OLEDB.12.0;Data
I am reading an Excel file using good old OleDBConnections and OleDBCommands. How do
I'm using the NPOI Library to import some data from an excel sheet to
I have a list of folders that has those names variations: (there are around
For every week I have excel sheet converted to SQL database this excel sheet
I am having trouble using the Jet provider and OleDb to get the sheet
Excel 2007: I get my data from Access tables the Excel sheet is called
I am reading an Excel file using xlrd . In one column I have
I get this error: Can't locate Foo.pm in @INC Is there an easier way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.