Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2005, 10:57 PM
Authorized User
 
Join Date: Mar 2005
Posts: 36
Thanks: 2
Thanked 1 Time in 1 Post
Default Using SQL query for Excell document

Hi,
I am not able to read the names of worksheets in an excel file usin sql query, Can anyone suggest any solution.
Using sql statement I am able to read the content of a worksheet but I want to read the names of worksheets.

 
Old April 7th, 2005, 09:47 AM
Authorized User
 
Join Date: Mar 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I havent really used Excel as a datastore, but I would imagine that each worksheet is treated like an individual table. If I am right in assuming this, you could try,

SELECT name
FROM dbo.sysobjects
WHERE xtype = 'U'

But I couldnt be sure that is going to work.






Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Table to XML Document kapi.goel SQL Language 1 April 27th, 2006 07:24 AM
SQL Table to XML Document kapi.goel XML 4 April 24th, 2006 08:03 AM
converting excell to sql hastikeyvan Classic ASP Databases 0 July 3rd, 2005 08:53 AM
document form options value sql bubblez Classic ASP Databases 25 October 2nd, 2003 01:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.