*** URGENT *** Problems Connecting to MS SQL Server 2000

Hi guys,
I'm rather new to SQL Server and whenever I try to connect to my tables in SQL Servers through jdbc-odbc bridge and ODBC DSN it's Ok. BUT when I try the Microsoft or Merant driver I get log in problem. The server requires a trusted connection and won't accept my username/password. Please help out of misery. I read through some documentation and it mentioned setting up application roles, but I can't get it working. Those expert on the subject please provide a sample connection url, mine is:
String url = "jdbc:microsoft:sqlserver://localhost:1433;User=Administrator;Password=****;SendStringParametersAsUnicode=true";The jdbc error is:
Exception in thread "main" java.sql.SQLException: [Microsoft][SQLServer 2000 Dri
ver for JDBC][SQLServer]Login failed for user 'Administrator'. Reason: Not assoc
iated with a trusted SQL Server connection.
Thanks in advance.

The problem could be caused by one of two things.
The first reason could be that the 'Administrator' user is not set up with a SQL Server only password.
Another possible reason is that SQL Server is not setup to use SQL Server passwords, only Windows NT Authentication.
Open Enterprise Manager, expand your database and select users. Check the properties of the 'Administrator' user and make sure that it is set with SQL Server password. Also, check the properties of the SQL Server instance - right click on the SQL Server name, select properties and select the security tab. Make sure that SQL Server and Windows NT is selected and not just Windows NT.
Hope this helps.
Sudha

Similar Messages

  • Cant export worksheet when connected to MS SQL Server 2000

    SQL Developer version: 1.5.1
    Hello,
    I have a connection to an SQL Server 2000 database. I can select data with an "order by" clause but I receive an error when I attempt to do an "Export --> xls" on the worksheet data. I dont think this was a problem prior to SQL Developer 1.5.
    No export error occurs if the "order by" cluase is removed.
    Here is an example of a select stmt that generates the error.
    select LastName, FirstName, EmployeeID
    from northwind.dbo.employees
    order by LastName, FirstName
    Here are the error details:
    First dialog box error text: The ORDER BY clause is invalid in views, inline functions, derived tables, and subqueries, unless TOP is also specified.
    Second dialog box error text (after clicking Details button):
    java.lang.NullPointerException
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.addColumnsToTree(ColumnPanel.java:85)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.showPanel(ColumnPanel.java:61)
         at oracle.dbtools.raptor.dialogs.export.ColumnPanel.<init>(ColumnPanel.java:45)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.showPanels(TableExportAction.java:297)
         at oracle.dbtools.raptor.dialogs.actions.TableExportAction.launchDlg(TableExportAction.java:197)
         at oracle.dbtools.raptor.format.ui.ExportContextMenuListener$1.actionPerformed(ExportContextMenuListener.java:137)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    The table selected from is not a view, inline function, derived table, or subquery (as the error suggests). I can work around the problem by adding "TOP nnnn" to the select statement but this shouldn't be required.
    Any suggestions?
    Thanks.

    I confirmed that this is not a problem in SQL Developer 1.2.1.32.13. It started with 1.5. In 1.5.1.5540 I can successfully run the query and see the output in the Results tab. Only the Export has the error.

  • Creating a connection pool using SQL Server 2000, Sun ONE Application Serve

    Has any one succesfully configured SQL Server 2000 to work with Sun ONE Application Server 7 on Windows 2000 server service pack 4? I am embarking on a new J2EE project and I need to configure it as soon as possible.
    The problem I am having is that, when I ping the data souce name, there is a connection error.
    I have set the data source name and other details as follows:
    Under JDBC, I have set the parameters for the connection pool as follows:
    Data Source Name:      com.microsoft.jdbc.sqlserver.SQLServerDriver
    Database Name:          jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Test
    User:               test
    Password:          test
    In the JVM settings page, I have set the prefix class path as follows for the location of the Microsoft JDBC
    drivers that I downloaded as follows:
    c:\microsoft\drivers/lib/msbase.jar
    c:\microsoft\drivers/lib/msutil.jar
    c:\microsoft\drivers/lib/mssqlserver.jar
    Under JVM Options, there is a strange setting which I don't understand: perhaps this is the cause of the
    connction error?
    -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver
    Please help????

    I'm in a similar boat...
    Trying to setup AS7 JDBC and followed the instructions on the link you provided and get the following exception. I kept the case the same, thinking 'setpassword" was incorrect, so I tried changing the property to "Password", but get the same exception but it points to "setPassword" instead.
    SEVERE: RAR5041:Cannot get jdbc connection
    com.sun.enterprise.repository.J2EEResourceException
    java.lang.NoSuchMethodException: setpassword
    at com.sun.enterprise.repository.JdbcConnectionPool.createDataSource(JdbcConnectionPool.java:243)
    at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:80)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
    at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:74)
    at com.sun.enterprise.resource.Jdbc10XaAllocator.createResource(Jdbc10XaAllocator.java:94)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
    at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
    at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
    at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:170)
    at com.sun.enterprise.resource.JdbcDataSource.internalGetConnection(JdbcDataSource.java:241)
    at com.sun.enterprise.resource.JdbcDataSource.getConnection(JdbcDataSource.java:98)
    at com.rvi.database.jdbcConnection.getConnection(jdbcConnection.java:93)
    at com.webapp.database.ArticlesDAO.selectByYear(ArticlesDAO.java:102)
    at com.webapp.actions.ArticleAction.list(ArticleAction.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
    at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
    at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
    at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)

  • How can i connect to a SQL Server 2000 database usgin JSP?

    I need (URGENT) to connect to SQL Server 2000 databse using JSP. I do not know how to program using JSP, so if anyone has any code snippet please let me see it. What i need is to give my site some login/password security.
    Anyone?
    Thx.

    just create an ODBC of your database from control pannel -> administrative tools -> data sources (ODBC) ,double click it .....
    go to the tab SYstem DSN , click on ADD button. select the driver for your connection. it will be the last one in the list "SQL Server".
    click Next then give ur DSN name there, description and Server Name , on next give your username and password of SQL server. when it will be connected to the server celect your database from there and hence there will be an ODBC bridge same as in case of MS Access.
    code for connecting to ODBC is
    // DSN-NAME same as in System DSN.
    // username and password are of your databse
    try
              url = "jdbc:odbc:DSN-NAME";
              Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
              connect = DriverManager.getConnection( url,"username","password" );
              catch ( ClassNotFoundException cnfex ) {
                        setErrorMsg( cnfex.getMessage() );
              catch ( SQLException sqlex ) {
                        setErrorMsg( sqlex.getMessage() );
              catch ( Exception ex ) {
                        setErrorMsg( ex.getMessage() );
    Now you are connected to the SQL Server ..... use connect object for further processing .........

  • Connecting to an SQL Server 2000 Database

    Hi!
    I am trying to make a connection to a database created from SQL Server 2000. However, I don't know how to do it. Can anyone please help? How would the Java code different from the code we use to connect to a database created from MS Access?
    jt

    Hi Hartmut,
    I have a program which inserts a date into a table.
    I use a dsn configured to a database (as you've
    suggested). In my case, it's MS Access:
    private boolean writeToMSAccess(Hashtable ht) {
        // Build sql statement;
        // we use of # around the date, for MS Access.
        String sql =
            "INSERT INTO Broadcast (Author, BroadcastTime, Title, Length, BroadcastGroup,Link) " +
            "VALUES ('" + (String)ht.get("author") + "', " +
            "#" + date + "#, " +
            .... + "')";
            // Connect to the database, execute the sql.
            // dsn is passed into the program
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            String url = "jdbc:odbc:" + dsn;
            Connection conn = DriverManager.getConnection(url, login, password);
            Statement  stmt = conn.createStatement();
            stmt.executeUpdate(sql);
            stmt.close();
            conn.close();
            return true;
        }Now if I point my DSN to SQL Server for example,
    it won't work b/c of the # marks. I'd have to change:
        String sql =
            "INSERT INTO Broadcast (Author, BroadcastTime, Title, Length, BroadcastGroup,Link) " +
            "VALUES ('" + (String)ht.get("author") + "', " +
            "#" + date + "#, " +
            .... + "')";to:
        String sql =
            "INSERT INTO Broadcast (Author, BroadcastTime, Title, Length, BroadcastGroup,Link) " +
            "VALUES ('" + (String)ht.get("author") + "', " +
            "'" + date + "', " +
            .... + "')";My question is, is there a way to detect which database
    my dsn points to, so that I can determine at run-time
    whether or not to use the # marks?
    Or is there another way around this problem?
    Any help is greatly appreciated!
    -alex

  • Connecting to MS SQL server 2000 with SSMS 2008

    Hello
    I have been trying to solve this problem for months now and searched lots of threads, but no success.
    Our office has sql server 2000 database, which is installed on Windows XP. I am given 'sa' password. On my computer, which is Windows 7, I have SSMS 2008. I am able to connect to mentioned server using Windows ODBC data source and with MS Access.
    The problem is no matter what I tried, I could not connect with SSMS. When I go to "Server Connection" > "Server Name" > > "Network Servers" in SSMS, the needed server is found automatically, but I still fail to connect.
    I know that SSMS 2008 should be able to connect to server2000 (or maybe I am wrong?).
    Please help.

    TITLE: Connect to Server
    Cannot connect to SOFODB.
    ADDITIONAL INFORMATION:
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server, Error: -2)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=-2&LinkId=20476
    BUTTONS:
    OK
    I am not sure but this type of issue can be resolved by increasing time out.Time out sec is 15 by default change it to 60 or 120 and see if you can connect if not please revert.
    When you are connecting using SSMS click on option button...In connection properties page see for connection timeout...change it to 60 or 120 .See if this works
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Connect to MS SQL Server 2000 data warehouse

    Hi,
    I use a MS SQL Server 2000 database for my web application where I use JSP. I suppose to create data warehouse using MS SQL Server's Data Transformation Service. But I don't know it's possible to connect to a MS SQL Server's data warehouse using JSP. So I want to know is it possible to connect to data warehouse using JSP and if it is how to do it? Thank you.

    You can certainly connect to M$ SQL Server using the JDBC driver:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=4f8f2f01-1ed7-4c4d-8f7b-3d47969e66ae&displaylang=en
    Connecting to a data warehouse is no different from any relational database. (My understanding is that a data warehouse usually means a star schema implemented in a relational database.) This will connect you.
    If you're not familiar with JDBC, you might need the tutorial:
    http://java.sun.com/docs/books/tutorial/jdbc/

  • Problem Connecting To MS SQL Server Via JSP

    Please advise !
    My envoironment is Windows 2000, j2sdk1.4.1_02, Java Web Services Developer Pack 1.1.
    I have set my system variables as below :
    JAVA_HOME : C:\j2sdk1.4.1_02
    CATALINA_HOME : C:\jwsdp-1.1
    CLASSPATH : %JAVA_HOME%\lib;%CATALINA_HOME%\lib;.
    PATH : %JAVA_HOME%\bin;
    I have copied all the *.jar files from "C:\jwsdp-1.1\jaxp-1.2.2\lib\endorsed" to "C:\j2sdk1.4.1_02\jre\lib".
    I have download and install the Microsoft SQL Server 2000 Driver for JDBC. I copied msbase.jar, msutil.jar, mssqlserver.jar to "C:\j2sdk1.4.1_02\lib".
    I have created database call "test" in my local SQL server.
    I have created table call "Conferences"
    I have created those file :
    ConnectionBean.java
    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import javax.servlet.http.*;
    public class ConnectionBean implements HttpSessionBindingListener {
         private Connection connection;
         private Statement statement;
         private static final String driver="com.microsoft.jdbc.sqlserver.SQLServerDriver";
         private static final String dbURL="jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=test;"; // database address/database name
         private static final String login="sa";
         private static final String password="";
         public ConnectionBean()
         try {
              Class.forName(driver);
              connection=DriverManager.getConnection(dbURL,login,password);
              statement=connection.createStatement();
         catch (ClassNotFoundException e) {
              System.err.println("ConnectionBean : driver unavailable");
              connection = null;
         catch (SQLException e) {
              System.err.println("ConnectionBean : driver not loaded");
              connection = null;          
    public static void main(String args[]){
         ConnectionBean nb = new ConnectionBean();
         public Connection getConnection()
         return connection;
         public void commit() throws SQLException
         connection.commit();
         public void rollback() throws SQLException
         connection.rollback();
         public void setAutoCommit (boolean autoCommit) throws SQLException
         connection.setAutoCommit(autoCommit);
         public ResultSet executeQuery (String sql) throws SQLException
         return statement.executeQuery(sql);
         public int executeUpdate(String sql) throws SQLException
         return statement.executeUpdate(sql);
         public void valueBound(HttpSessionBindingEvent event)
         System.err.print("Connection: in the valueBound method");
    try
              if (connection == null || connection.isClosed())
              connection=DriverManager.getConnection(dbURL,login,password);
              statement=connection.createStatement();
         catch (SQLException e) { connection = null; }
         public void valueUnbound(HttpSessionBindingEvent event)
         try
    connection.close();
    catch (SQLException e) { }
    finally
    connection = null;
         protected void finalize()
         try
         connection.close();
    catch (SQLException e) { }
    conference.jsp
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="connection" class"ConnectionBean" scope="session" />
    <html>
    <body>
    <center>
    <font size="+2" face="arial"><b>Conference Registration</b></font>
    <form action="shuttle.jsp" method="post">
    <table border=1 bgcolor="tan" width="50%" align="center">
    <tr><td>
    <table border="0" bgcolor="white" cellspacing=0 width="100%"
    <tr bgcolor="tan">
    <th>?</th><th>City</th><th>Tickets Remaining</th><tr>
    <%
    Strign sql = "SELECT * FROM Conferences";
    ResultSet results = connection.executeQuery(sql);
    while (results.next()){
    if (results.getInt("seats") > 0) {
    %>
    <td>
    <input type="radio" name="show"
    value="<%= results.getString("id") %>">
    </td>
    <% } else { %>
    <td>?</td>
    <% } %>
    <td><%= results.getString("city") %></td>
    <td align="center"><%= results.getString("seats") %></td>
    </tr>
    <% } %>
    </table>
    </td></tr></table>
    <p>
    <input type="submit" value="Next Choose Shuttle)">
    </form>
    </center>
    </body>
    </html>
    I created 2 folder call "WEB-INF" and "classes" in my web server directory.
    I have compiled the ConnectionBean.java and copied the ConnectionBean.class to my "classes" folder.
    But i get an error like this :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.compiler.ParseException: /conference.jsp(1,34) Attribute class has no value
         at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563)
         at org.apache.jasper.compiler.JspReader.parseTagAttributesBean(JspReader.java:616)
         at org.apache.jasper.compiler.Parser$Bean.accept(Parser.java:654)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:213)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2349)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:646)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:644)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:483)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
         at java.lang.Thread.run(Thread.java:536)
    It look like cant find the class, I have try copied ConnectionBean.class to "C:\jwsdp-1.1\common\classes", but still came out a some error message.
    I'm very sad and demotivate because i have try so many time and i still cant make it.
    Please help ! thank you.
    regards.

    What's creating the connection and putting it into the session scope?
    I'd start looking at the docs to figure out how to set up a data source for your app.
    I know how to do it for Tomcat 4.1.24. Does Tomcat come bundled with the Java Web Services Developer Pack 1.1? If so, check this out:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html

  • How to connect to Ms SQL Server 2000 with forms9i......

    hi,
    how do i connect my forms9i to the database in the Ms SQL Server 2000 on the same machine ?
    please give a code example also
    thanks
    regards
    monty

    See
    http://www.oracle.com/technology/products/forms/pdf/275201.pdf
    Also search the forum and you will find discussions on this topic.

  • Connection with MS SQL Server 2000

    Our Application server is in UNIX and we need to select data from a MS SQL Server 2000 table and this non SAP server is in Windows OS. Is it possible to establish a connection from  our application server which is in UNIX to Non SAP server MS SQL Server 2000 which OS is Windows ? Again, how to call a MS SQL stored procedure from Oracle ?
    Please help me.

    Hi there;
    I am a starter with Java and need your help with this little program.
    Create a console application project named Payroll that stores an employee's hourly pay rate and hours worked. Compute gross pay (hours times rate), withholding tax, and net pay (gross pay minus withholding tax). Withholding tax is computed as a percentage of gross pay based on the following:
    Gross Pay: Withholding percentage :
    0 to 300.00 ::::: :::::: Withholding percentage 10%
    300.00 to 400.00:::::: Withholding percentage 12 %
    400.01 to 500.00 :::::: Withholding percentage 15 %
    500.01 and over ::::::: Withholding percentage 2 0 %
    Thank you
    Alex

  • Creating a connection to MS SQL Server 2000...

    Hi ,
    Using the :
    1)Oracle SQL Developer 1.1.3 and 1.2.1 ,
    2)MS SQL Server 2000 - both db and agent are running ,
    I cannot create a connection to MS SQL Server (error: "Failure - Network Error IO Exception : Connection refused : connect").
    Both software - and Oracle DB , as well- have been installed on the same server(Win XP) and i have deactivated the firewall , without the desired result....
    Also the server is standalone and does have a static IP Address....
    What can I do ...????
    Thanks....
    Sim

    I have also downloaded and installed the SQL Developer 1.5.0.53.
    When i declare the same settings to SQL SERVER DB - as in the other SQL Developer versions(1.1.3 and 1.2.1)- I get a different error message..:
    "Failure - Cannot connect to SQL Server on localhost" - whereas in the other versions i get[i] "Failure - Network Error IO Exception : Connection refused : connect".
    When i declare another host name (one that does not exist , for example "localhost1") then the error message is :"Failure : Unknown host name localhost1".
    So ,the above tests may show that the error seems to be in the port setting....however , i cannot verify it since the port setting is 1433 - the one i declare in the connection.
    Do you have an idea....????
    I would be grateful if somebody could provide some 'light'.....!!!!
    Sim

  • Problem creating connnection pool - SQL Server 2000

    Server - Weblogic 6.1
    I am trying to create a connection pool for MSSQL Server 2000.
    Using Administration Concole I entered the following information:
    Name : MSSQLCP
    URL: jdbc:weblogic:mssqlserver4
    Driver ClassName: weblogic.jdbc.mssqlsvr4.Driver
    Properties: user=sa
    db=pubs
    password=
    No password.
    I targeted my server.
    I created a data Source for this pool and targeted my serevr.
    When I start my server I get the following error:
    <Error> <JDBC> <Cannot startup connection pool "MSSQLCP" Cannot load driver class:
    weblogic.jdbc.mssqlsvr4.Driver>
    <Error> <JDBC> <Error during Data Source creation: weblogic.common.ResourceException:
    DataSource(MSSQLCON) can't be created with non-existent Pool (connection or multi)
    (MSSQLCP)>
    Am I missing something? What I am doing wrong?
    Thanks in advance,
    Igor

    Thank you. I suspected something like this.
    "Sree Bodapati" <[email protected]> wrote:
    Hi Igor,
    your driver class name is incorrect,
    weblogic.jdbc.mssqlsvr4.Driver
    try replacing it with, weblogic.jdbc.mssqlserver4.Driver and make sure
    you
    associate a target to the connection pool.
    hth
    sree
    "Igor Kravzov" <[email protected]> wrote in message
    news:3c10c8e9$[email protected]..
    Server - Weblogic 6.1
    I am trying to create a connection pool for MSSQL Server 2000.
    Using Administration Concole I entered the following information:
    Name : MSSQLCP
    URL: jdbc:weblogic:mssqlserver4
    Driver ClassName: weblogic.jdbc.mssqlsvr4.Driver
    Properties: user=sa
    db=pubs
    password=
    No password.
    I targeted my server.
    I created a data Source for this pool and targeted my serevr.
    When I start my server I get the following error:
    <Error> <JDBC> <Cannot startup connection pool "MSSQLCP" Cannot load
    driver
    class:
    weblogic.jdbc.mssqlsvr4.Driver>
    <Error> <JDBC> <Error during Data Source creation:
    weblogic.common.ResourceException:
    DataSource(MSSQLCON) can't be created with non-existent Pool (connection
    or
    multi)
    (MSSQLCP)>
    Am I missing something? What I am doing wrong?
    Thanks in advance,
    Igor

  • Having problems connecting Coldfusion10 with sql server express 2012

    Hi,
    I am having problems setting up a datasource for a local sql express 2012 server. Its running as the default instance. Connections are working with ODBC and client told just not Coldfusion.
    When I try to set up a connection using the sql driver I get this error:
    Connection verification failed for data source: Leaf
    java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Invalid argument: connect
    The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Invalid argument: connect
    When I try a Socket connection with an ODBC connection I setup in windows I get this error:
    Connection verification failed for data source: LeafDB
    java.sql.SQLException: [Macromedia][SequeLink JDBC Driver]Internal network error, connection closed.
    The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver]Internal network error, connection closed.
    Any ideas?
    Thanks,

    Hi Rossco199,
    The issue is likely caused by you not having yet assigned port 1433 in SQL Express itself. Follow the procedure described on the following page, and you should solve the problem: http://www.tensixconsulting.com/2012/02/sqlserverexception-the-tcpip-connection-to-the-hos t-port-1433-has-failed/
    In particular, remember to assign port 1433 to 127.0.0.1 and to IPAll. Also set 'Active' and 'Enabled' to 'Yes' for the IP 127.0.0.1. While you're at it, if 'Named Pipes' is disabled, you should right-click on it and select 'enable'. Afterwards, restart the Windows service 'SQL Server(SQLEXPRESS)'.
    It is advisable to allow ColdFusion server authentication. However, the SQL Express server is configured by default to allow only Windows authentication. This conflict may lead to errors.
    Should you then encounter the dreaded Error 233: "No process is on the other end of the pipe", proceed as follows. Open the tool Microsoft SQL Server Management Studio. Right-click on the name of your database server, then on Properties. In the user interface that opens, click on Security. Select the combined 'SQL Server and Windows Authentication mode'. Restart the service 'SQL Server(SQLEXPRESS)'.

  • Error in Connecting to MS SQL Server 2000

    Thanks for your reply.
    My Problem and the Error shown in the command prompt is:
    java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
    Error Trace in getConnection() : com.microsoft.jdbc.sqlserver.SQLServerDriver
    Error: No active Connection
    Inspite of giving the full classpath of 3 JAR files, msbase,mssqlserver and msutil.jar, this error has occured.
    What can I do in this?

    Please refer
    http://support.microsoft.com/kb/313100

  • Problem Using JSQL level 4 driver for SQL Server 2000

    I am having problem , connecting to my Sql Server 2000 ( deployed on Windows 2000 Professional) using Microsoft JSQL level 4 Deriver .
    I am doing it with following code,
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         Connection conn = DriverManager.getConnection
    ("jdbc:microsoft:sqlserver://192.168.0.232:1433;databaseName=DBNew;user=nakhter;Password=java;");
    It gives me following Exception ,
    java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Login failed for user 'nakhter'. Reason: Not associated with a trusted SQL Server connection.
         at com.microsoft.jdbc.base.BaseExceptions.createException Unknown Source)
         at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processErrorToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSLoginRequest.processReplyToken(Unknown Source)
         at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
         at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
         at com.microsoft.jdbc.base.BaseConnection.open(Unknown Source)
         at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
         at java.sql.DriverManager.getConnection(DriverManager.java:517)
         at java.sql.DriverManager.getConnection(DriverManager.java:177)
    I am usign my windows authentication usrname and password .
    I has tried it with user "sa" but still same exception .
    Could someone help me in this regard ?

    You need to switch SQL server to just use SQL Server authentication or both. The problem is that it is looking for a Windows NT account for nakhter with the password java. We get this all the time on new SQL Server installs if you just take the defaults.

Maybe you are looking for

  • Firefox 6.0.2: Periodic freezes every minute (60")

    My problem is as follows: everything worked fine with my Firefox on all my computers. All of them were sync'ed with firefox sync (including my mobile). Then, on my Windows 7 Home Premium 64-bit desktop (Q9450 CPU, 4Gb of RAM, Asus P5KC motherboard In

  • Java Sqlite Connection in Linux

    I am getting the following connection error between Java and Sqlite in Redhat Linux OS: Unable to load sqlite: java.lang.UnsatisfiedLinkError: /usr/local/lib/libsqlite_jni.so: /lib/i686/nosegneg/libc.so.6: version `GLIBC_2.7' not found (required by /

  • I'm a new user, what does sync mean

    My first attempt to ask a question went to cyber space which is a good indication of how little I know about my new toy, iPod touch. I keep reading about Sync & I have no idea what that means, what it does or how it works? Ta in advance

  • Web-based Assembler

    hai if i want to build up a web-based Assembler system that can provided services likes MASM. It can compiler the 8086 assembly code enter by client and come out a result and send back to client and display the result on client screen. How to develop

  • My Q10 is unlocked but does recognize only one network

    Dear All, My friend bought a brand new q10 this summer and originaly used it with a Vodafone Greece connection. Now i have it and the unit works only with Vodafone sim cards and does not recognize any other Greek network (Cosmote and Wind). Is it pos