Your best option by far is to use SQL Server. I've had access actually lose data
before. And you just can't have that kind of thing going on.
And I would also say, if you plan on having any amount of traffic on your pages, I
would NOT use the jdbc-odbc bridge. It does not work well. Spend the money on a good
driver.
Travis
---- Original Message ----
From: Michael Goodwin <[EMAIL PROTECTED]>
Sent: 2001-01-18 09:47:15.0
To: JRun-Talk <[EMAIL PROTECTED]>
Subject: RE: Jrun 2.3.3 and MSAccess
Daniel,
I am using SQL Server 7 and it works fine with the JDBC-ODBC bridge. As far
as changing the code, all you need to do is change your 32bit ODBC to point
from the access database to the SQL Server database, using the SQL Server
driver. Migrating form Access to SQL Server is a fairly trivial operation.
If this code worked in Access, the SQL statements should not need to be
changed.
Question: are you writing this servlet for publishing data to the web? If
so I have found using the Allaire tag library with JSP far easier to write
code for retrieving data and publishing it to the web. If that is the case
let me know and I will send you some helpful samples.
-- Mike
-----Original Message-----
From: daniel garcia [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:56 PM
To: JRun-Talk
Subject: Re: Jrun 2.3.3 and MSAccess
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