Explain the different ways to register a driver?
Answers were Sorted based on User's Feedback
Answer / bhoopesh alladi
By using the DriverManager.registerDriver() method , and
while loading of the driver and registering the driver
within a single method execution, that is
Class.forName(String DriverName)
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chandrarekha
loading a driver can be done manually by Class.forName
(....) and DriverManager.registerDriver(...) and also
programatically by
java -Djdbc.drivers=sun.jdbc.odbc.jdbc.... <.java filename>
Is This Answer Correct ? | 0 Yes | 1 No |
What are the methods which can verify the cursor particular position?
any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.
What is an outer join?
How to get a whole row of data at once?
What are the common tasks of JDBC?
MY code is: public class P1{ public static void main(String ar[]) { class.forName("java.lang.String"); } } errors i got are :New.java:5: error: <identifier> expected class.forName("java.lang.String"); ^ New.java:5: error: invalid method declaration; return type required class.forName("java.lang.String"); ^ New.java:5: error: illegal start of type class.forName("java.lang.String"); ^ New.java:7: error: reached end of file while parsing } ^ 4 errors HELP ME>......
how many JDBC drivers ?name them?
How do I set properties for a JDBC driver and where are the properties stored?
How do I insert an image file (or other raw data) into a database?
Can the JDBC-ODBC Bridge be used with applets?
Explain about multiple implementations and drive manager?
What is an SQL Locator?