Hi Scott [and the others]:
Thanks for sharing light on the matter. Suppose I migrate from MSAccess to SQL Server
7.0 - would that be a better option?
Sorry but I am really a newbie.
And how do I write now these lines of code?
===============================
Connection con = null;
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:Product Database", "", "");
if (con != null) {
Statement statement = con.createStatement();
ResultSet rs = null;
if (R1.equals("V1")) {
rs = statement.executeQuery("SELECT * " +
"FROM MYDB WHERE FIELD1 LIKE '" +T1+ "' ");
} else if (R1.equals("V2")) {
rs = statement.executeQuery("SELECT * " +
"FROM MYDB WHERE FIELD LIKE '" +T2+ "' ");
}
else {
rs = statement.executeQuery("SELECT * " +
"FROM MYDB WHERE CATEGORY = '" +
category + "' ");
}
===============================
Thanks.
Daniel
--- Scott "M." Stirling <[EMAIL PROTECTED]>
> wrote:
>Unfortunately Access and the JDBC-ODBC bridge is unstable with any Java
>app. Search this lists archive for many discussions of the topic. See
>also any newsgroup or list archive where people discuss drivers and Java
>programs, such as comp.lang.java.databases or SERVLET-INTEREST at Sun.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists