IT Community - Software Programming, Web Development and Technical Support

jdbc with excel

This is a discussion on jdbc with excel within the Java Programming forums, part of the Software Development category; I'm using Linux as server, and Window as client. I put the Excel file to Linux, and then JavaBean ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Java Programming

Register FAQ Members List Calendar Mark Forums Read
  #21 (permalink)  
Old 09-06-2007, 06:16 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Question Re: jdbc with excel

I'm using Linux as server, and Window as client. I put the Excel file to Linux, and then JavaBean read the Excel file. The client can view the data through the brower.

Is this possible to place the Excel file to Linux , not Window ?
__________________
The OXYGEN
Delivers edgy, intelligent Technology to all...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 09-06-2007, 07:35 AM
amansundar amansundar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 325
amansundar is on a distinguished road
Red face Re: jdbc with excel

It's not quite clear what you want to do.

1) Do you want to connect to an Excel file over JDBC? This would be quite similiar like to any other data source / DBMS.

But I know this approach only with JDBC-ODBC. Since Excel can't run on LINUX, you would have to do a remote connection. There seems to be an ODBC for LINUX, but I don't know much about it. (It was mentioned in this forum sometimes - search, if you want.) But I think you would need a Win machine as "server" then which runs your Excel.

or

2) Does your Java Bean (planned or existing?) read the Excel file format directly, as File I/O, without calling the Excel app? Then you would need no JDBC, no Excel, only the Excel file and the logic how to interpret it.

If this is available, then this JavaBean will run on LINUX of course and can be simply used by your server app.

If you want to program this Bean yourself, I would not do the hard work of understanding the Excel file format, but rather cause the "creator" of the Excel file (a user on a Win machine using Excel app) to export the data as a csv file. This can be read much easier. Since it has internally the same logical structure like a RDBMS table, you maybe can connect to this flat file over JDBC.

Probably you can find a lot of help for both ways, in this forum and elsewhere.
__________________
cheers
Aman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 09-07-2007, 06:01 AM
Sundaram Sundaram is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Location: chennai
Posts: 117
Sundaram is on a distinguished road
Send a message via MSN to Sundaram Send a message via Yahoo to Sundaram
Question Re: jdbc with excel

I need to know how to write from Excel to Access and to read from Access back
to Excel via ODBC/JDBC.

Any suggestions? I've heard it's pretty complicated...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 09-07-2007, 08:03 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Red face Re: jdbc with excel

The easiest way is to configure a DSN that uses the ODBC driver for Excel. Then your Excel spreadsheet looks like a database.
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 09-10-2007, 09:02 AM
leoraja8 leoraja8 is offline
D-Web Sr.Programmer
 
Join Date: May 2007
Posts: 194
leoraja8 is on a distinguished road
Wink Re: jdbc with excel

Hi all,

Since Excel comes with an ODBC driver, we'll use the JDBC-ODBC bridge driver that comes packaged with Sun's JDK to connect to our spreadsheet.

Here is the sample for excel integration in jdbc.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 09-11-2007, 09:27 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 399
rrrajesh84in is on a distinguished road
Question Re: jdbc with excel

how to search the word and excel document that have stored sql server?
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 09-11-2007, 09:38 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: jdbc with excel

- setup the JDBC crawler to crawl the proper table in MS SQL Server


for more visit here...
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 09-11-2007, 09:41 AM
jeyaprakash.c jeyaprakash.c is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 228
jeyaprakash.c is on a distinguished road
Question Re: jdbc with excel

Hi friends...,


I am using JSR 82 bluetooth api for developing bluetooth based application.

i am not able to find API for switching on the Blue tooth.

Can any help on this regard.

Thanks in advance!
__________________
thanx n regards
jeyaprakash.c
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 09-11-2007, 09:48 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: jdbc with excel

hi Prakash!

j2me does not provide any api for switch on the bluetooth device we can find the status(on-off) of our bluetooth device using jsr 82.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 09-13-2007, 01:37 AM
krishnakumar krishnakumar is offline
D-Web Analyst
 
Join Date: May 2007
Posts: 206
krishnakumar is on a distinguished road
Question Re: jdbc with excel

Hi all,

I'm getting an odbc error doing a select on an excel file using jdbc-odbc.

Here is statement

"select * from Sheet1",

with the excel file having a Sheet1 worksheet and some data.

The error says: "The Microsoft Jet engine could not find the object "Sheet1".
Is this because of a special syntax requirement for the excel odbc driver? i've successfully made a connection to the excel datasource, but
my select sql doesn't go through. can anyone shed light on this one?
__________________
Krishnakumar.S
Beware of Everything -that is un true; stick to the Truth shall succeed slowly but steadily
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #31 (permalink)  
Old 09-13-2007, 03:48 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Wink Re: jdbc with excel

When you try to import or link a Microsoft Excel spreadsheet, if you click Show Named Ranges in the Import Spreadsheet Wizard or the Link Spreadsheet Wizard, you may receive the following error message:

The Microsoft Jet database engine could not find the object '<name of selected range>'. Make sure the object exists and that you spell its name and the path name correctly.


You may also receive this error if you use a macro or a Visual Basic for Applications procedure to import or link the spreadsheet.

NOTE: This error message may occur if you convert a Microsoft Access 2.0 database to Access 2000, and the database includes a TransferSpreadsheet macro action or Access Basic code with a Range argument that contains the sheet name along with a named range.

For example:

Code:
DoCmd.TransferSpreadsheet acExport, 8, "MyTable", "C:\MyFile.xls", True, "MySheet!MyRange"
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/java-programming/3603-jdbc-excel.html
Posted By For Type Date
DiscussWeb IT Community - Technical Support and Technology Discussions This thread Refback 09-06-2007 12:54 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA Oracle connectivity with Jdbc-odbc bridge amansundar Java Programming 4 09-24-2007 11:59 PM
Difference between JDBC and ODBC? vijayanand Java Programming 0 09-20-2007 08:05 AM
Which is the fastest type of JDBC driver in Java? leoraja8 Java Programming 2 09-05-2007 08:31 AM
Can the JDBC-ODBC Bridge be used with applets? bluesky Mobile Software Development 2 09-04-2007 08:04 AM
What is the latest version of JDBC? vadivelanvaidyanathan Java Programming 3 08-25-2007 01:57 PM


All times are GMT -7. The time now is 11:01 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0