Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2008, 03:16 PM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 160
rjuyal is on a distinguished road
HELP: SQL Query Validator
Hi,
I have created a module in JAVA which lets the user to create the SQL Query through GUI. But at last now i have to validate the Query whether it will executable properly without error or not. how can i do this ? Please help


Thanks
Rakesh
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-05-2008, 09:13 AM
rjuyal's Avatar
Senior Member
 
Join Date: Mar 2008
Location: Delhi, India
Posts: 160
rjuyal is on a distinguished road
Solved
I am using execute method of preparedStatement. before executing i set the autoCommit property to false, and at last i roll back also.

in case of exception, i show Invalid Query, otherwise the Query Syntax is correct. I am displaying the exception message in case of failure. The messge is good from a prograamer point of view, but end user can't guess what the message means!!1


if anyone have better solution please let me know.
__________________
Newton said Gravitaion, Rakesh says Earth Sucks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts Validator anoop.retnakumar Web Frameworks 1 03-05-2008 07:54 AM
sql validator Joe2003 Advanced Java 0 02-07-2008 06:23 PM
Commons validator aczuczor Web Frameworks 0 07-27-2007 09:46 AM
Struts Validator - JScript version of Validator ´validwhen´ Felissa Web Frameworks 1 07-06-2007 05:39 PM
Validator framework Daniel Web Frameworks 1 06-25-2007 06:29 AM


All times are GMT +3. The time now is 10:11 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org