To Restrict SQL account from accessing Sql server via SSMS

Hi All,
We are planning to tighten the security of our SQL Server.
In the initial phase, we want to restrict all the SQL accounts(except sa) from accessing SQL Server via SSMS
Since the SQL passwords are used in the connection strings(plain text) of our .NET Applications, developers are able to see it and they are accessing SQL server through SSMS with the credentials in the connection string.
The requirement is, SQL accounts should only be accessing the databases through .NET applications and not through any other applications like SSMS, SQLCMD...etc
1) We tried "Logon Trigger", but later we came to know that there is security breach in it.
2) Application Roles - Password is plain text, again back to square one.
We are looking for an alternate. Please share some ideas.
Thanks & Regards,
K.P.Senthil Kumar

The basic presumption here is that there is on way you can tie a connection to an application as such. There is app_name(), but since this is passed from the application, the application can call itself whatever you want.
As long as it is only a matter of keeping business users out, you can solve the issue with some three-tiered solution. Either by having a true middle layer, or just having a web server, or the application running on Terminal Server or Citrix.
But you want to keep the developers out who work with the code. That makes it difficult to lock them out of the middle layer.
Then again, you say "our SQL Server" is that singular? Don't you have more than one SQL Server? One for developement, one for test and one for production? If you only want to keep the devs out from development, you have different usernames
and password for different environments, and they are read from config files. The config files for production should be well-protected.
By the way, only permitting sa from logging in from SSMS is bad idea. Rather, you should disable sa, and everyone should log in with their individual Windows account. And those who should perform system-administration tasks should be member of sysadmin.
Erland Sommarskog, SQL Server MVP, [email protected]

Similar Messages

  • Inserting Japanese characters to SQL Server via CFMX

    What is necessary in the setup to save non-Latin characters
    to SQL Server via CFMX form? The ColdFusion data source has the
    Unicode option enabled (Enable Unicode for data sources configured
    for non-Latin characters). The target field in the database is an
    nvarchar. What else is necessary to properly insert and then later
    display the non-Latin characters?
    On Microsoft's site they describe the need to convert to and
    from UCS-2 when accessing SQL Server via ASP. Is this type of
    conversion relevant to CFMX?

    jegrubbs wrote:
    > What is necessary in the setup to save non-Latin
    characters to SQL Server via
    > CFMX form? The ColdFusion data source has the Unicode
    option enabled (Enable
    > Unicode for data sources configured for non-Latin
    characters). The target field
    > in the database is an nvarchar. What else is necessary
    to properly insert and
    > then later display the non-Latin characters?
    - define db columns as "N" types
    - ensure cf pages are utf-8 encoding:
    --tag the files w/a BOM
    --use
    <cfprocessingDirective pageencoding="utf-8">
    on each page
    --use
    <cfset setEncoding("form","utf-8")>
    <cfcontent type="text/html; charset=utf-8">
    in application.cfm or .cfc
    - when doing INSERT/UPDATE make sure to use either unicode
    hinting (N'text') or
    cfqueryparam (making sure to turn on the unicode option for
    that DSN in
    cfadmin). cfqueryparam is the best choice.
    also see:
    http://www.sustainablegis.com/unicode/greekTest.cfm
    > On Microsoft's site they describe the need to convert to
    and from UCS-2 when
    > accessing SQL Server via ASP. Is this type of conversion
    relevant to CFMX?
    nope the JDBC driver will handle that gruff. make sure you
    use the JDBC driver
    (name as ms sql server in cfadmin) and NOT the odbc bridge
    thnig.

  • Migrating SybaseIQ to SQL Server via SSMA?

    Hi all,
    anyone who tried to migrate from Sybase IQ to SQL Server via SQL Server Migration Assistant (SSMA)? As from the product Website only Sybase
    ASE is officially supported. I'm looking especially for a way to migrate Stored Procs.
    BR Dirk

    Hi Dirk,
    Indeed, SQL Server Migration Assistant (SSMA) is a free supported tool from Microsoft that simplifies database migration process from
    Sybase ASE version 11.9 and higher to all editions of SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, and SQL Azure. If you want to migrate T/SQL Stored Procedures from Sybase IQ to SQL Server, maybe need to use the third-party
    tools, such as SQLWays or other tools.   
    There is a detail about SQLWays Tool, you can review the following article.
    http://www.ispirer.com/products/sybase-to-sql-server-migration
    Note: Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft
    cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and please be cautious and ensure you have completely understood
    the risk before retrieving any software from the Internet.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How to upgrade SQL Server 2012 SSMS

    I have SQL Server 2012 SSMS (11.0.3000.0) on my machine, however this crashes at least 5-8 times a day. So I want to try to apply KB2874879. But when I try to install it I can't progress because it says there is no instance found to apply. I only want
    to update the SSMS, I'm not running any local instance on that machine. How can I get SSMS to the latest version ?

    Hi,
    According to your description, I know the SQL Server Management Studio always crashes on the client machine and there is no SQL Server was installed on that machine.
    KB2874879 is cumulative update package 6 for Microsoft SQL Server 2012 Service Pack 1 and it should be installed on SQL Server. And install CU6 does not guarantee it will resolve the SQL Server Management Studio crash issue on the client machine. If the
    SQL Server Management Studio is corrupted, you need to perform a repair installation from the Installation Center.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Problem with Connection to SQL Server via Servlet (in iPlanet 6 App Server)

    Hi ,
    I am using the iPlanet ApplicationServer 6.0 SP2 for development & testing of an internet application.
    I am facing a problem when I am trying to connect to MS SQL SERVER via the native jdbcodbc driver (obdc32.dll). The error is something like this :
    [26/Jul/2001 11:50:35:7] warning: DriverConnect: (28000): [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'.(DB Error: 18456)
    [26/Jul/2001 11:50:35:7] warning: ODBC-027: CreateConn: failed to create connection [new connection]: DSN=fadd,DB=cashbook,USER=test,PASS=xxxxxxxxx
    [26/Jul/2001 11:50:35:7] error: DATA-108: failed to create a data connection wit
    h any of specified drivers
    Error in connecting to the Database for cirrus :java.sql.SQLException: failed to
    create a data connection with any of specified drivers
    java.sql.SQLException: failed to create a data connection with any of specified
    drivers
    at com.netscape.server.jdbc.Driver.afterVerify(Unknown Source)
    at com.netscape.server.jdbc.Driver.connect(Unknown Source)
    at com.netscape.server.jdbc.DataSourceImpl.getConnection(Unknown Source)
    at gefa.util.DBConnection.jdbcConnectionOpen(DBConnection.java:65)
    at gefa.servlet.ServUpload.doPost(ServUpload.java:45)
    at gefa.servlet.ServUpload.doGet(ServUpload.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
    Source)
    at com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
    wn Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
    at com.kivasoft.thread.ThreadBasic.run(Native Method)
    at java.lang.Thread.run(Thread.java:479)
    I have configured a DSN with the name "fadd" on the machine with the application server and it used NT authentication. I have supplied an NT userid and password that has appropriate rights on the database "cashbook".
    When I write a java standalone program, it does connect but via a servlet it does not connect.
    Can some guide me with this problem please ?
    Anything one might have observed in the past ? (may be specific to iPlanet ?)
    Thanks a lot in advance
    ~Sunil

    I'm using iPlanet App server as well and experiencing similar problem. I load my SQL Server driver by Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"), then use DriverManager.getDriver() to obtain the Driver.
    However, the Driver returned is not the SQLServerDriver as expected. The Driver returned is com.netscape.server.jdbc.Driver! And then when I do Driver.getConnection("jdbc:microsoft:sqlserver://MyServer"), it throws an SQLException saying that it doesn't accept a jdbc:microsoft:sqlserver subprotocol. Well, of course it doesn't, it's not a microsoft Driver at all.
    I suspect the problem is that the netscape Driver's acceptsURL() method ALWAYS returns true in iPlanet app server, thus when you getDriver(), the netscape Driver is always returned (and always returned as the first one since it's default?). Thus even though the same piece of code works fine as a standalone application, it just doesn't work on iPlanet app server.
    My work around is:
    Class.forName("my.Driver");
    Enumeration enu = DriverManager.getDrivers();
    Driver useThis = null;
    while (enu.hasMoreElements()) {
    Driver d = (Driver)enu.nextElement();
    if (d.getClass().toString().indexOf("my.Driver") > -1) {
    useThis = d;
    Mind that my above code does not have an performance issue. If you look into the source code of how DriverManager get a Driver for a particular URL, it also loads the whole set of available Drivers, then call acceptsURL() method on each of them to find the first "suitable" one. Thus time complexity is the same.
    I know this is not a very elegant solution and it defeats the purpose of having a DriverManager. Does any one else has a better way to solve this problem, like a way to specify the priority of each Driver so that SQLServerDriver is returned before the netscape Driver?
    Thanks a lot.

  • How to restrict the user from accessing other screens before submittingdata

    Hi All,
      I have some screens developed in Webdynpro ABAP and all these have been linked to Portal as pages. In Portal If i click on the link in detailed navigation i can see the corresponding screen on the right side. Now in one screen i have to input some data and submit the data, Now my problem is if i enter some data and before submitting the data if i click on any other link in the detailed navigation, that corresponding screen is opening and all the data of the previous screen is lost.
    Can any one suggest me, how can i restrict the user from accessing other screens before submitting the data of that screen from portal perspective.

    Hi Prasanna,
    The pages can be restricted from the user access by using the ACL permission or you can restrict the page by making invisible in navigation area which you do not want to show to the user . Open the page properties and select navigation category in the drop down and select the Invisible in navigation area property to yes.By default this property is No.Change the property for all pcd pages which want to hide from user access.
    Hope this helps you...
    Regards,
    Rudradev Devulapalli
    Reward the points if helpful....

  • How to read enumerated values from an OPC server via Datasocket

    Hi Labviewers,
    I am using LV8.2 and I am trying to find if it is possible to read enumerations from an OPC server via Datasocket, not just the values.
    I can successfully read a value for an OPC server via Datasocket and I get a value for example 3, is it possible to get the enumeration/string that corresponds to this value i.e. "Open".
    Many thanks in advance
    Dimitris

    Hi Sarah,
    With the input type as variant I get the following response:
    1                                     <-This is the current numeric value of the parameter
    4 Attribute(s):
       'Quality' -> 192
       'TimeHigh' -> 29861723
       'TimeLow' -> -665408304
       'Timestamp' -> 39.238E+3
    With the Input set to         Enum constant I get no values or strings coming back. With the Input set to                Ring constant I just get the numeric value   
    Dimitris   

  • Restrict SQL Server access on IP and/or Hostname base

    I need to implement a security policy for machine-2-machine accounts that requires to limit their access to database, only if it is from the IP (or hostname) of the application server that hosts the application. It has been decided because is a native feature
    provided on Oracle, I can't find anything similar on SQL Server, please can you help me to address this requirement according Microsoft best practices?
    Thank you
    Andrea

    regarding firewall solution, if I must reach a DB from my workstation with AD integrated authentication but not with a standard login, normally used by a Java application on ux environment application server, how can I manage it with a fw rule? (I use mixed
    authentication on SQL Server because I have mixed platforms)
    If you want rules like: account X but account Y may access the server from machine A, a firewall solution becomes difficult, since the firewall don't know what is in the packets they block.
    However, it is still doable, provided that the server has multiple NIC. Each NIC will be an endpoint in SQL Server. You use the firewall to configure which machines that can access the IP address at all. But you only grant CONNECT permission on the endpoint
    for accounts that should be permitted to use that IP address.
    I noticed on various forums possible custom solutions based on logon triggers, I think it can be havy in terms of performance in cases (like mine) when there are tens of databases and hundreds of logins to manage in logon phase, checking whitelist tables
    on every logon, moreover I monitored the actual situation with server side traces on login event and I captured many records where hostname field is NULL and it seems it can be managed from the application code side, so this check can be bypassed.
    Yes, looking at the hostname is out of the question. You will need to look at the IP address, as I mentioned.
    I am not going deny that a logon trigger is a heavier solution than a firewall. There is also the risk that if you mess it up, you lock yourself out. This can be sorted out by using the DAC, but it can cause some panic...
    Erland Sommarskog, SQL Server MVP, [email protected]

  • I cannot debug with SQL server 2008 SSMS asks for Firewall permission?

    hi friends,
    I run SQL server 2008 R2 developer edition on windows 8 basic edition. SQL server is installed in my local machine. when I tried to debug a sql script it asked the firewall permission as show on image
    when googled I found this
    Article from MSDN with fix tool but it cannot installed on my Windows 8 OS, is there way to fix it without giving any unauthorized access to my system?
    thanks
    I use Visual studio 2012 Ultimate and SQL server 2008 developer edition!

    Hi,
    The hotfix you provide applies for Windows Server 2008.
    The windows firewall on this machine is currently blocking remote debugging.
    According the message, the following ports need to be enabled for remote debugging. Use the procedure that is described in the section
    Configuring a Port in Windows Firewall to enable the following ports through Windows Firewall:
    Ports
    Protocol
    135
    TCP
    Required
    500, 4500
    UDP
    Required if your domain policy requires   network communication to be performed through IPSec.
    See the below article for more information:
    How to: Enable Transact-SQL Debugging
    http://msdn.microsoft.com/en-us/library/vstudio/s0fk6z6e(v=vs.100).aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • SCCM MP Account from accessing across untrusted domain

    Hi,
    I am wondering if anyone has any suggestion on how to setup MP connection account from MP in untrusted domain (DMZ) to site server. I tried to create a user account in the domain where SCCM primary site exists and configured that account for MP to use but
    unfortunately I am getting following error..
      *** [28000][18452][Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
    I have not tried using SQL replica yet but I thought if account works then I would refrain from using SQL replica.
    Thanks,

    ** Resolved **
    Instead of using DOMAIN\USER, I created a local account on site server and assigned EXECUTE right to DB.. Its now communicating from DMZ without any problem...

  • Communicating With SQL Server via HTML

    Hello.
    I have recenty reintroduced myself to the Java world after having taken a class in college a few years back. I am trying to retrieve information from a SQL Server based on user input on an HTML form and display it back to HTML. From examples found online and an example from the class that connected to an access DB, I have put the following code together. I know it's not complete but I am stuck. I get a null pointer error on the line: stmt = con.createStatement(); I can't figure it out. I have verified that I can connect to the SQL Server through a command line program but I can't seem to apply it to this scenario. Can someone please help me?!
    package coreservlets;
    import java.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.util.*;
    public class exiTracking extends HttpServlet {
    public static final String url = "jdbc:microsoft:sqlserver://";
    public static final String serverName= "server4";
    public static final String portNumber = "1433";
    public static final String databaseName= "DB";
    public static final String userName = "user";
    public static final String password = "pass";
    public static final String selectMethod = "cursor";
    public static java.sql.Connection con;
    public static Statement stmt;
    public static String query = "select custid from tarcustomer";
    DOPOST - GATHERS AND POSTS
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    String so = request.getParameter("sono"); //get info from html form
    String po = request.getParameter("custpono");
    String title = "Retrieval Result";
    String validationResult ="";
    String redirect = "";
    String headTag = "<HTML><HEAD><TITLE>"+title+"</TITLE>";
    String selectResult = "";
    String endHeadTag = "</HEAD>";
    String resultString = "invalid";
    try {
    con = this.getConnection();
    stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery(query);
    while (rs.next()) {
    String s = rs.getString("custid");
    if(s.equalsIgnoreCase(so)){
    resultString = "valid"; //password is found
    break; }
    rs.close();
    stmt.close();
    catch (SQLException e) {
    System.err.println(e.getMessage());
    if(selectResult == "valid")
    redirect = "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"1;URL=http://java.sun.com\">";
    validationResult = "Successful query. Well done chap. <br>You will be re-directed to our homepage momentarily.";
    else {
    validationResult = "Unsuccessful Search. " +so+ " " +po+ "<br><Br>" +selectResult;
    redirect = "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2;URL=/sotracking/html/index.html\">";
    String outString = headTag + redirect + endHeadTag +
    "<BODY BGCOLOR=\"#FDF5E6\">\n" +
    "<H1 ALIGN=\"CENTER\">"+validationResult+ "</H1>\n"+
    "</BODY></HTML>";
    out.println(outString);
    try {
    con.close();
    catch (SQLException e) {
    System.err.println(e.getMessage());
    GET CONNECTION
    private java.sql.Connection getConnection(){
    try{
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    con = java.sql.DriverManager.getConnection(getConnectionUrl(),userName,password);
    //if(con!=null);
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("Error Trace in getConnection() : " + e.getMessage());
    return con;
    CONNECTION URL
    private static String getConnectionUrl(){
    return url+serverName+";databaseName="+databaseName+";selectMethod="+selectMethod+";";
    }

    Thanks for the quick reply!
    As I mentioned originally, it's been a while since so please bear with me. I really appreciate your help.
    While I am doing some logging, it is purely by accident as I am copying some text from previous code. I don't remember where or how to view the logs.
    As far as the environment I am running, I am using an app called JEDPlus to edit and compile code for this program. After downloading and installing the Microsoft SQL 2000 Driver for JDBC (including SP3) I used a comand line compiler for a command line program that succesfully connected to a SQL Server to retrieve information based on a command line argument and am using the classpath setup (as well as the other code for connecting to SQL Server) from that and applying it here. I believe I am pointing to the mssqlserver.jar / msutil.jar / msbase.jar / as well as the serlvet.jar files.

  • 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

  • BC4J connect to Microsoft SQL*Server via Allaire Jrun JDBC

    This post is in answer to Matteo Tamburini's questions about
    connecting to SQL*Server using the allaire jdbc drivers.
    see Re: Version 10.1.0.3.03 of Oracle Data Provider for .NET
    These drivers are available for download from Macromedia at:
    http://www.macromedia.com/v1/Handlers/index.cfm?ID=22399&Method=Full
    They are shipped as one jar file: jrun_drivers.jar
    I installed it into <jdev_home>\lib
    To make a connection from designtime, follow (roughly)
    the steps in the HowTo walkthrough:
    Notice that the JDBC driver class is:
    allaire.jrun.jdbc.JRunDriver
    and the URL is something like:
    jdbc:jrun:sqlserver://machinenane:1433;Selectmethod=cursor
    There are two gotchas:
    1. the Selectmethod=cursor is important
    2. you will get an error saying that the class
    allaire/jrun/servlet/JRunSE
    can't be found.
    Indeed - that package is not to be found inside the .jar
    file; I suspect it is a rogue import in the source.
    The workaround is to ask the VM not to verify classes - do this
    by specifying -Xverify:none in the Java Options box of the
    "Runner" tab of project properties.
    I did successfully test a project deployed as a JSP inside OC4J:
    the caveats are that you have to enter the jar file location
    in j2ee\home\config\application.xml (as in Matteo's thread)
    and that the -Xverify:none switch needs to go on the CLIENT
    project, because it launches the embedded OC4J
    hope all this helps, Karl McHorton (BC4J Development)

    Well, you must have tested to make sure that the socket value is indeed the correct value. But with that error, and you are certain that the socket value is correct, then it becomes difficult.

  • SQL SERVER 2014 SSMS

    All right, I'm at wits end. After three weeks of downloading, installing, uninstalling, downloading … ad nauseam; SQL SERVER 2014 (SQLEXPRADV_64_ENU.exe) in an attempt to obtain Sql  Server Management
    Studio (SSMS). I’m working on a Lenovo Thinkpad with Windows 7 Professional. SQL Server 2014 is working fine. However, no where can I find the SSMS executable. I do find the SSMS icon file (ssms.ico), ssms.pkgdef,  ssms.pkgundef, ssms.splash.bmp, ssms.winprf
    all in C:/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/MangementStudio; but no ssms.exe.  In desperation I did reload SQL SERVER 2008 in order to have SSMS 2008 and it is up and running but doesn’t open the SQL SERVER 2014 database engine (therefore
    I have no access to my database with the 2008 tool).  How can I get SSMS 2014 up and running? I really hate to have to uninstall the current instance, re-download and install a new instance and then again find the SSMS executable isn’t there (that process
    takes a full day). Any suggestions would be greatly appreciated.

    All right. to wrap things up I finally gave up, uninstalled all the programs associated with SQL Server 2014 (about a one hour job), then again downloaded SQL Server 2014. After reading all I could about the various versions
    of the SQL Server downloads, I selected SQLEXPRWT_x64_ENU version instead of the advanced version that a tutorial suggested the first time I attempted to download the software. The SQLEXORWT is suppose to contain ssms. Once downloaded I went through the
    install process (another 3 hours) and low and behold there was the ssms executable.
    I was able to get everything up and running, able to connect my databases to ssms and able to get access to my database on Visual Studio 2012 through command line code. I decided to use the localDB database. The biggest problem
    I had in writing the connection string was that most of the instructions on the net indicated the Server name to be (localdb)\v11.0. This didn't work for me and after some searching and using the command line found the Server name on my machine was actually
    (localdb)\MSSQLLocalDB.
    I still have one irritating problem. Although I can connect SSMS to my databases, and although I can connect to the databases in Visual Studio through code, I cannot connect Visual Studio itself to the database. I can connect
    Visual Studio to the Server but not to the databases. When I attempt to connect to the database I get numerous error messages the two most prominentbeing "permission denied" and "Could not load file or assembly 'Microsoft.Sdk.Stc, Version=11.0.0.0,
    Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies" . Any thoughts on why Visual Studio 2012 won't connect to the databases would be greatly appreciated.
                T

  • 1 of my 2 POP accounts from the same server stoped downloading new emails

    I have 2 POP accounts from the same mail server; recently I was sending lots of emails from one of them and I got some errors while trying to send.
    After that day, that POP account stopped retrieving new emails. I rebuilt the Mailbox, removed it and added it again but nothing.
    If I use the option to view Messages on Server VS. Messages Downloaded to my Mac, I see that there are a whole lot more emails that I am not getting.
    My other account in the other hand, has a lot more emails and still downloads the new stuff.
    Please help me!

    Are you saying the notes are incorrect?
    No, I wasn't commenting on that at all. I was just saying that DBUA is the recommended way of upgrading databases... and that's in spades if you're talking about 100GB databases.
    I'll lay odds that DBUA to 10.2.0.1 and then patching to 10.2.0.3 is quicker than exporting and importing 100GB of data.
    (Applying a 10.2.0.3 patch is done with opatch and doesn't require a fresh installation of Oracle. A patch mostly just modifies the data dictionary: it's finished in minutes, not hours).
    My real point: these sorts of questions are incredibly easy to ask, answer, discard, re-ask, modify, mull over and basically experiment with in a virtual environment.
    And again: it's utterly bizarre why you wouldn't have physical access to this database (and keep in mind that I can't keep in mind little nuggets of information such as this one which you didn't see fit to share earlier!)
    It's in a virtual server. Virtual servers can be zipped up and emailed! (OK, maybe not 100GB... but I've shipped a small hard disk in a zip-lok pack envelope half way round the world before now -though obviously it wasn't critical to have the contents of that envelope available for use all the time... Still, it sounds to me like here's a technology (virtualisation) that's not being properly exploited).

Maybe you are looking for

  • Receive an ORA-01403: no data found error after importing

    After making changes to an application and exporting it and importing it into another applications (copy of the app) on the same server I recieve this error. Error Single Sign-On Procces Failed However if I export and import the application to a diff

  • Fill command no longer works, has turned into Grow

    I've been scouring sites for a solution and have not found one as of yet. My Edit/Fill command (shift + F5) has suddenly turned into Grow. I've seen other people with this problem and the only solution I have seen up to now is to use (shift + delete)

  • Page without template and template without allowedPaths

    Under websites, Geometrixx Demo Site page ( root page) has no template assigned and the templates for Geometrixx  like homepage has no allowedPaths property but still shows up when I create a page  in Geometrixx Demo Site. How is this working?

  • Measure Error:  UJO_READ_EXCEPTION_018

    Hi All I am facing an issue where when I select QTD measure, it gives me error Bad request. Server message: code: UJO_READ_EXCEPTION_018 severity: error description: MDX statement error: table config for index <TIME DIM TECH NAME> is not valid log id

  • Hide some items in form

    Hello. I have a form with many records. There are 6 items in one record.. Is there a way to hide one item in every 4th record (or something similar)? Thanks.