16,019,321 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by leejoyprakash (Top 4 by date)
leejoyprakash
26-Sep-12 8:38am
View
Thank you Mehdi Gholam for your answer. This is really a useful piece of information.
Sorry that I forget to explain about my CSV file structure, in my case, the contents of one CSV file doesn't belongs to one table.
The CSV file is as follows:
COL 1,CAT 1,CAT 2,CAT 3,CAT 4,ITEM,DESCRIPTION
Val 1,Val 2,Val 3,Val 4,Val 5,Val 6,Val 7
The requirements are as follows:
1. COL 1 belongs to table1. First I need to check whether it exists, if not skip the record by tracking this in Error.csv
2. CAT 1 to CAT 4 belongs to table2. Check whether each of this exists, if not import into table2.
3. Item & Description belongs to table3. Check if exists, if not import into table3.
So I assume that, it not possible to do a bulk import for a CSV with values belonging to more than one table. Please correct me if I am wrong.
Thanks once again for your answer which really was a new idea for me.
Thanks
leejoyprakash
21-Sep-12 10:35am
View
Did you configure and test your ODBC DataSource ? Can you print and check whether any exception is raised in both servlet and JSP ?
catch(Exception e){ e.printStackTrace();} .
leejoyprakash
21-Sep-12 9:36am
View
I think you are missing the statement stmt = con.createStatement(); add this before stmt.executeUpdate(query);
leejoyprakash
21-Sep-12 9:29am
View
See if there are some errors in your javascript code with the help of firebug.