Originally posted by Rob Prime:
1) You are adding the exact same instance of the string array to the set. Because it is a set, there will always be only one element.
2) See Ernest's comment; this also solves issue 1.
3) You can use Arrays.toString(...) to nicely print an array.
Originally posted by Ivan Bosnjak:
Still doesn't work...[/QB]
Originally posted by Paul Sturrock:
So you don't have the Microsoft JDBC driver in your application's classpath. Make sure you have the driver jar files in your classpath and it should work fine.
Originally posted by Paul Sturrock:
There will be more to that message. What else does it contain? Could you post the stack trace?
Originally posted by Tarun Yadav:
What's the exception that you get? Could you post the stack trace?