File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic creation of Data Source Name(DSN) programatically , help needed urgent

thottempudi chowdhary
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am geting the following error, when i run the program
[Microsoft][ODBC Driver Manager] Data source name too long

the code that i have written is
Connection con = DriverManager.getConnection("jdbc dbc river={MicroSoft Access Driver (*.mdb)};DBQ=C:/ROSA97.mdb","","");
i wanted dynamic creation of DSN programatically only, as my client does not know how to create DSN manually(through control panel). so someone please tell me what is wrong in the above code.

thanks in advance.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic