Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
JDBC and Relational Databases
drop database with PreparedStatement
yaron re
Greenhorn
Posts: 7
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
any idead why the following code doesn't work:
con = dataSource.getConnection();
ps = con.prepareStatement("DROP DATABASE DBNAME ");
rs = ps.executeQuery();
Jan Cumps
Bartender
Posts: 2661
19
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Maybe because your code has an active connection to the database?
What happens when you execute the code? (better not try this on your production instance)
OCUP UML fundamental and ITIL foundation
Adeel Ansari
Ranch Hand
Posts: 2874
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why do you think that its appropriate here in performance?
yaron re
Greenhorn
Posts: 7
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
the dataSource is in a superior level to the instance that i am tring to delete.
The connection must have the ability to delete the DB.
Adeel Ansari
Ranch Hand
Posts: 2874
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The question remains the same. What are you getting? Any errors? Excpetions? Messages?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
handling multiple queries with the same connection
ORA-01000: maximum open cursors exceeded
idiom for finally closing resources
SQLException: Driver not found for URL
General Error
More...