----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------



If you get the same error in JRun and JServ, it is almost certainly your code.
My guess is that you are doing something wrong in handling your connection to
the database.  You should probably look at sun's site to get support on this
error from the driver.

James


Steve Mente wrote:

> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> I have just completed configuring Apache 1.3.11 / JServ 1.1/ GNUJSP 1.0 on
> an NT 4.0 server.  I am opening connections to a SQL database and doing
> simple SELECTS and INSERTS using servlets and JSP pages. My problem is that
> I keep receiving error.  The strange thing is that the database connection
> works fine 1 time and then the next time pops up this error.  I had similar
> results trying to use JRun.  Do I have an issue with my code, the database
> driver, configuration, or some combination of these?  Any help would be
> greatly appreciated.
>
> Steve Mente
> Metrix, Inc.
> [EMAIL PROTECTED]
>
> java.sql.SQLException: [Microsoft][ODBC Driver Manager] Function sequence
> error
>         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:4089)
>         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:4246)
>         at sun.jdbc.odbc.JdbcOdbc.SQLColAttributesString(JdbcOdbc.java:752)
>         at
> sun.jdbc.odbc.JdbcOdbcResultSetMetaData.getColAttributeString(JdbcOdbcResult
> SetMetaData.java:702)
>         at
> sun.jdbc.odbc.JdbcOdbcResultSetMetaData.getColumnName(JdbcOdbcResultSetMetaD
> ata.java:361)
>         at
> sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(JdbcOdbcResultSet.java, Compiled
> Code)
>         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java,
> Compiled Code)
>         at com.metrix.simple.DbRequest.getRequest(DbRequest.java, Compiled
> Code)
>         at jsp___2frid_2ejsp._jspService(jsp___2frid_2ejsp.java:72)
>         at org.gjt.jsp.HttpJspPageImpl.service(HttpJspPageImpl.java:75)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at org.gjt.jsp.JspServlet$Page.process(JspServlet.java, Compiled
> Code)
>         at org.gjt.jsp.JspServlet.service(JspServlet.java:284)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
> org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
>         at org.apache.jserv.JServConnection.run(JServConnection.java:188)
>         at java.lang.Thread.run(Thread.java:479)
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to