"Hide Instance" setting not working with 2012 SQL Server Database Engine

I have turned on the "Hide Instance" setting in SQL Server Configuration Manager on my SQL Server 2012 Database Server. After several restarts of my SQL Server/Agent/Browser services, as well as the server, I am still able to browse for the Instance
from another computer.  I can also find the instance by running the "sqlcmd -L" command.  Is there another step to get this to work?  I have seen other people suggest that you disable the SQL Browser service, but we would like to avoid
that.

Hi,
According to the description, I know the you are able to find the instance in the Browse for Servers window from another computer after turning on the ‘Hide Instance’ setting in SQL Server Configuration Manager. Are you able to connect to the instance as
well?
Make sure that the HideInstance has been set to 1 in the below registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.instancename\MSSQLServer\SuperSocketNetLib
Note: You may take a backup of the key before make any changes on the registry keys.
For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
How to back up and restore the registry in Windows
Thanks.
Tracy Cai
TechNet Community Support

Similar Messages

  • Menu Parameter does not work with MS SQL Server

    I need to create a “Menu Parameter” from a “List of Values supporting "All" and multiple selection. This parameter happens to be a list of funds. The DB is SQL Server.
    We have a stored function that takes a comma separated list of funds as a parameter. SQL Server 2005 does not support array lists as bind parameters to stored procs/functions so we do not have a choice.
    The Menu parameter is effectively a bind parameter but I cannot use it directly due to the sql server limitation mentioned above. I really only have 2 choices:
    1) Oracle could generate the comma separated list like many BI tools do. This does not seem to be an option but it could not hurt to ask is this is available.
    2) Convert the bind variable to a comma separated list prior to passing it into the function. This is what I have tried to do below. This also has a problem in that the @liststr variable goes out of scope during execution. I see the error in the BIPublisher logs. This query works fine in Toad and Aqua Data Studio but fails when I run the report complaining about an undefined variable @liststr.
    - Convert bind variable to comma separated list of values
    DECLARE @listStr VARCHAR(MAX)
    SET @liststr =
    SELECT COALESCE ( COALESCE(@listStr+',' ,'') + fgcode , @listStr)
    FROM FundGroup where fgcode in ('AOMF ALL')
    - Pass the csv into the function
    select *
    from PeriodPNLNoNAV('1/1/2012', '1/31/2012', @listStr, '')
    order by fgdesc

    Hi Martin.
    I try to resolve this problem ( sqlserver masking) but I can't found the OBE mentioned.
    You or anyone have examples about masking MS SQLServer, because in the Oracle documentation suggest that is possible but not "how do it", except the use of heterogeneous services.
    Thanks in advance.
    D.

  • Binding in Prepared Statement is not working with Microsoft SQL Server JDBC

    I ran the following program with sqljdbc4.jar in the class path. There is data in the EMPLOYEE table for the employee name DEMO but the following program is not retrieving data for DEMO. When the same program was run with Merlia.jar in the class path, it was retrieving data for DEMO.
    Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection con = DriverManager.getConnection("jdbc:sqlserver://SERVER23:5000;databaseName=TESTDB", "SYSADM", "SYSADM");
    String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ?" ;
    PreparedStatement sts = con.prepareStatement(sqlSele);
    sts.setString(1, "DEMO" );
    ResultSet rs = sts.executeQuery();
    while(rs.next())
    System.out.println("driverConn.main()" + rs.toString());
    catch(Exception e)
    System.out.println(e);
    e.printStackTrace();
    Can someone help me out from this issue.

    This is the program that I used for testing the behaviour of prepared statement with sqljdbc4.jar. Also included the code for Merlia.jar.
    import java.sql.*;
    public class driverConn {
         public static void main(String [] a)
              try{
              Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
              //Class.forName("com.inet.tds.TdsDriver");
              Connection con = DriverManager.getConnection("jdbc:sqlserver://SERVER23:5000;databaseName=TESTDB", "SYSADM", "SYSADM");
              //Connection con = DriverManager.getConnection("jdbc:inetdae7a:SERVER23:5000?database=TESTDB", "SYSADM", "SYSADM");
              String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ?" ;
              //String sqlSele = "SELECT * FROM EMPLOYEE WHERE EMPNAME like ‘%DEMO%’”;
              PreparedStatement sts = con.prepareStatement(sqlSele);
              sts.setString(1, "DEMO" );
              //sts.setString(1, "%DEMO%" );          
              java.sql.ResultSet rs = sts.executeQuery();          
              while(rs.next())
                   System.out.println("EMPNAME is " + rs.getString(“EMPNAME”) + “”);                    }
              catch(Exception e)
                   System.out.println(e);
                   e.printStackTrace();
    Following are the specifications:
    Version of the Driver:
    Microsoft JDBC Driver 4.0 for SQL Server CTP3
    Downloaded the driver using the link http://www.microsoft.com/download/en/details.aspx?id=11774
    Java Version:
    Java 1.7.0_02
    Database Version:
    Microsoft SQL Server 2008 (SP2) - 10.0.4000.0 (X64)

  • Is it possible to have different authentication mode for SQL Server Database Engine and corresponding SQL Server instance?

    Hi,
    I have installed the x64 SQL Server 2008 R2 Express with default settings and run MBSA 2.3 (using default settings too). It shows three SQL Server instances: MSSQL10_50.SQLEXPRESS, SQLEXPRESS and SQLEXPRESS (32-bit). For the first, authentication
    mode is Windows, for the rest two - mixed. Here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/03e470dc-874d-476d-849b-c805acf5b24d/sql-mbsa-question-on-folder-permission?forum=sqlsecurity question
    about such multiple instances was asked and the answer is that "MSSQL10.TEST_DB
    is the instance ID for the SQL Server Database Engine of the instance, TEST_DB", so in my case, it seems that MSSQL10_50.SQLEXPRESS is the instance ID for SQL Server Database Engine  of the SQLEXPRESS instance.
    I have two questions:
    1) How can it be that SQL Server DB Engine instance has different authentication mode than corresponding SQL Server Instance?
    2) Why 32-bit instance reported although I installed only 64-bit version?
    Also, this https://social.technet.microsoft.com/Forums/security/en-US/6b12c019-eaf0-402c-ab40-51d31dce968f/mbsa-23-reporting-sql-32bt-instance-is-running-in-mixed-mode-when-it-is-set-to-integrated?forum=MBSA question seems to be related to this
    issue, but there is no answer :(.
    Upd: Tried on clean Windows 8 installation and Windows 7 with the same result.

      Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
    a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M
    Hello M,
    Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
    is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
    I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
    Your option will also work but you need to create 3 VM for that .Which is more tedious task.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • After sql server 2012 installation, I have changed sql server database engine service account from network service user to system user. What is disadvantages of this process?

         After
     sql server 2012 installation, I   attached my production db. Because of some reasons, i
     changed sql engine account from network service user to system user by means of sql server configuration manager.
         Now , there isn’t
     a problem at sql server running system.  But
    I have doubts that
     this can produce problems later. Because  sql server database engine account must have privileges that listed below;
    Log on as a service (SeServiceLogonRight)
    Replace a process-level token (SeAssignPrimaryTokenPrivilege)
    Bypass traverse checking (SeChangeNotifyPrivilege)
    Adjust memory quotas for a process
    (SeIncreaseQuotaPrivilege)
    Permission to start SQL Writer
    Permission to read the Event Log service
    Permission to read the Remote Procedure Call service
     While sql server installation, setup gives these
     privileges to network service user automatically, but changing user by means of sql confugarition manager does not give these
    privileges.
    Now, system user has privileges listed below. And sql server has been running for 1,5 months without any problems.
    Log on as a service (SeServiceLogonRight)
         Bypass traverse checking
    (SeChangeNotifyPrivilege) (Everyone user has his privileges. So i think that system user has this privilege also)
    What problems can occur because of this situation? Shall i give other privileges to system user and restart sql server or not? And how can i give these privileges to system user listed below;
    Replace a process-level token (
    this can be set from user rights assignments)
    Adjust memory quotas for a process
    (this can be set from user rights assignments)
    Permission to start SQL Writer ( 
    ? - give advice )
    Permission to read the Event Log service (
    ? - give advice )
    Permission to read the Remote Procedure Call service (
    ? - give advice )

     Our server is  windows server 2008 r2 enterprise edition. I have looked the bunch of permissions in user rights menu  that is in local security policy settings gui.
    And i have seen those permissions below were not granted to system user;
    Bypass traverse checking (SeChangeNotifyPrivilege)
    Adjust memory quotas for a process
    (SeIncreaseQuotaPrivilege)
    So, briefly you say, don't panic ?

  • How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column

    Hello JDevTeam & JDevelopers,
    I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
    Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
    I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
    The following are the steps taken thus far.
    Step1: Create table named test in the 2005 MSSQL Server (see script below).
    Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
         Library Name     = Ms2005Jdbc
         Class Path     = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
         (note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
    Step3:Create New Database Connection;
         Connection Name = testconn1
         Type = Third Party JDBC Driver
         Authentication Username = sa, Password = password, Check Deploy Password
         Connection
              Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver     
              Library = Ms2005Jdbc     
              Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
              URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
         Test Connection = Success!
    Step5: Create a new application workspace using Web Application default template
    Step6: In Model project, Create new Business Components Diagram.
    Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
    Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
    When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
    Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
    Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
    I am totally stuck! Can anyone provide a solution?
    Thanks for you help,
    BG...
    Create table named test
    use [testdb]
    go
    set ansi_nulls on
    go
    set quoted_identifier on
    go
    create table [test](
         [testid] [int] identity(0,1) not null,
         [testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
    constraint [pk_test] primary key nonclustered
         [testid] asc
    )with (pad_index = off, ignore_dup_key = off) on [primary]
    ) on [primary]

    Figured it out!
    When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
    When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
    If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
    The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
    Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
    For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
    Set Refresh on insert/update = no.
    Set Updateable = never.
    Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
    Simple enough but I have been away from this stuff for awhile.
    BG...

  • Applet does not work with a proxy server.URgent

    Hi,
    I have an asp page being hosted from a IIS server.
    The asp page has an applet which gets data from a server side component which is hosted as a service on the server side.For connection to the server I am using URLConnection object and trying to connect over a TCP connection.
    The problem occurs when I use an proxy in the middle.
    I have changed the browser settings to include the proxy.
    The following is the error I recieve:
    Full :http://172.25.11.63:4590/
    <-------------------------------->
    OPening input stream
    in Run ::::
    ERROR: Created data socket but can't open stream on
    it.172.25.11.63:4590//
    172.25.11.63:4590//
    java.io.FileNotFoundException: 172.25.11.63:4590//
         at com/ms/net/wininet/http/HttpInputStream.connect
         at com/ms/net/wininet/http/HttpInputStream.<init>
         at com/ms/net/wininet/http/HttpURLConnection.createInputStream
         at com/ms/net/wininet/WininetURLConnection.getInputStream
         at TalkClientApplet.rendezvous
         at TalkClientApplet.actionPerformed1
         at TalkClientApplet.start
         at com/ms/applet/AppletPanel.securedCall0
         at com/ms/applet/AppletPanel.securedCall
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    ...Disconnecting.
    Following is my code.
    url = new URL("http://" + host +":"+i);
    urlconnection = url.openConnection();
    urlconnection.setDoOutput(true);
    urlconnection.setDoInput(true);
    System.out.println("Successfully opened the URL connection at " + "http://" + host + ":" + i );
              System.out.println ("Protocol: " + url.getProtocol());
              System.out.println ("Host :" + url.getHost());     
              System.out.println ("Port :" + url.getPort());
              System.out.println ("File :" + url.getFile() );
              System.out.println ("Full :" + url.toExternalForm());
              System.out.println ("<-------------------------------->");
    os = new BufferedWriter(new OutputStreamWriter(urlconnection.getOutputStream()));
    System.out.println("OPening input stream ");
    // is = new DataInputStream(urlconnection.getInputStream());
         System.out.println(urlconnection.getInputStream());
    is = new DataInputStream(urlconnection.getInputStream());
    The exact place where I get the error is whn i call URLConnection.openInputStream().
    Usually this error comes with a malformed URL.But the same code words without a proxy.Also I am not making any changes to my code in both scenarios that is with or without proxy.
    Please help.This is urgent and a showstopper

    Thanks for your nice solution, but unfortunatelly it does not work with lines longer than 100 chars with Netscape. It works fine with IE and appletviewer too.
    Example:
    I use this code:
    try {
                URL url = new URL(protocol,hostName,portNumber,URLstring);
                InputStream in = url.openStream();
                BufferedInputStream bis = new BufferedInputStream(in);
                StringBuffer input = new StringBuffer(60);
                int c;
                while ((c = bis.read()) != -1){
                    System.out.print((char)c);
                    input.append((char)c);
                bis.close();
                dataFromServer = input.toString();
            catch(Exception ex) {
                ex.printStackTrace();
            }I use input file test.html with exactly 100 chars ('a')
    Netscape Java Console:
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaadataFromServer : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaI use input file test.html with exactly 101 chars ('a')
    Netscape Java Console:
    ?JL?yyxk?cedataFromServer : ?

  • Connection with MS -SQL server Database

    Hi Experts,
    We are new with Oracle SES.
    We have created one table in MS SQL server 2005 in testing database called as Northwind, table is EMPdate with adding required column name as "URL","KEY","CONTENT","LASTMODIFIEDDATE","LANG".
    Now we create database source in Oracle SES by giving following things
    Database Connecting String: jdbc:sqlserver//<Loaclhost>:1433;databasename=Northwind
    UserId:
    Password:
    Query: Select URL,KEY,CONTENT,LASTMODIFIEDDATE,LANG,'text/html' CONTENTTYPE from EMPdate
    path separator: #
    Document Count : -1
    Parse Attributes :false
    And create Source & when we run schedule on this datadase source we got error that "invalid SQL command"
    Please can you provide sequence of steps to create MS SQL Server database source & generate the statistics.
    Thanks

    Hi,
    Thanks for the response.
    Running the Schedule for Stats collection -- I mean,the Schedule step whcih could be the immediate step just after database source creation
    The Crawl of the SQL Server not succeeded is Crawl Error
    which is located in C:\oracle\product\10.1.8\oradata\ses2\log direcory.
    We succeded with Web,ORACLE TABLE and FILE system sources as they were documented in the manual.
    Please Suggest all the steps to configure SQL server as Source
    Thanks in Advanace
    Cheers,
    Ramesh

  • RDL Reports are not working after installing SQL Server 2012 Service Pack 2 in the SharePoint integration Mode

    I am using Reporting Service Integration mode with SharePoint. SSRS is installed on separated machine of SharePoint stacks in Integration Mode. Everything was working properly and I could create/edit/modify RDL reports(parameters, Datasource, Subscription)
    inside SharePoint and Document Libraries.
    But after installing SQL Server 2012 Service Pack 2, on opening RDL reports inside SharePoint I receive this error message. 
    The permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation
    I should mention that SSRS is installed in the SharePoint integration Mode and there is no SSRS management console.

    Hi Hedayat-Abedijoo,
    According to your description, you are using Reporting Services in SharePoint Integrated mode, and everything worked fine before you install SQL Server 2012 Service Pack 2. After the package is installed, when you open RDL reports, the error occurred: The
    permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation.
    According to my search, there may be two reasons for the problem:
    This is caused when the application pool account that runs the SharePoint Web application you are on in IIS and the application pool account that SharePoint believes is running the site differ. This happens if the application pool account is changed directly
    in IIS instead of through SharePoint (using the approved method).
    This error can be caused when Kerberos authentication has been set up correctly and delegation in a double hop scenario will succeed, but Reporting Services integration has been set up for Trusted Account rather than Windows Authentication. This causes
    SharePoint to continue to impersonate the logged-on user when contacting Reporting Services; when Reporting Services compares the application pool account to the user account making the request, they are not equal.
    In this case, we can solve the problem by changing the application pool account in IIS back to the previous account and set AuthenticationTypes to RSWindowsNTLM only. For detail information, please refer to 8.3 “The permissions granted to user 'Domain\User'
    are insufficient for performing this operation” in the document:http://msdn.microsoft.com/en-us/library/ee384252(SQL.100).aspx
    If you have any questions, please feel free to let me know.
    Thanks,
    Wendy Fu

  • Full screen auto-hide feature does not work with Adobe Acrobat Reader add-on 11.0.0.379 in Firefox 17.01.

    "Full screen" menu item and its keyboard short cut F11 stop working with Acrobat Reader. The Firefox top edge border does not hide once you have moved around in the Acrobat document. Therefore it is not possible to display PDF documents in a true full screen mode within Firefox. The auto-hide full screen mode works nicely with other Firefox windows, so apparently the Acrobat Reader add-on breaks the feature. Windows 7 64-bit.

    From the JS API Reference of the print method:
    Non-interactive printing can only be executed during batch, console, and menu
    events.
    Outside of batch, console, and menu events, the values of bUI and of interactive are ignored
    and a print dialog box will always be presented.

  • Issues using BitLocker in Windows 8 Emedded with 2012 SQL Server Express

    I was told that this forum may be able to help me with my issues (see original thread here:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8c81fde1-e91b-46eb-8d2f-b79426805ddd/using-sql-server-2012-express-with-bitocker?forum=sqlexpress).
    Background:
    To summarize, I have an OS that is partitioned into two volumes: C and D.
    C drive contains the running software, SQL Server install, and the OS.
    D drive is the encrypted partition via BitLocker. The SQL Server files are stored here (logs, backup, and mdf).
    Problem:
    The software cannot connect to the database stored on the encrypted D volume when BitLocker is turned on. The user account that I use to enable BitLocker is the same SQL Server Service account and has is also part of the Local Admin Group. As soon as I disable
    BitLocker, the software works fine and the database connection succeeds. I am currently using the SQL System Admin account to login (SA) and BitLocker is being used with a TPM.
    The error I am experiencing when connecting through the software is 'login
    failed for user sa'.
    Thank you for the suggestions/help.

    Hi HMLunger,
    Did you install the SQL Server instance successfully? If not, please help to post the summary and detail logs for analysis. By default, the logs can be found in: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log.
    However, if you fail to start SQL Server Express service after successfully installing SQL Server,
    you might have to change the paths of the files by running the following scripts from the command prompt. For more details, please review this similar
    thread.
    NET START MSSQL$SQLEXPRESS /f /T3608
    SQLCMD -S .\SQLEXPRESS
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE model MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    go
    exit;
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    ALTER DATABASE msdb MODIFY FILE (NAME = logical_name , FILENAME = 'new_path\os_file_name');
    NET STOP MSSQL$SQLEXPRESS
    In addition, you can follow the steps in this KB article to uninstall SQL Server.
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • ScrollableCursor not working on Microsoft SQL Server 2005?

    Hi all,
    I'm using a scrollable cursor to get read only data from some very large database tables. I'm using the following code:
    private Scrollable cursor;
    private ScrollableCursor getCursor() {
        if (cursor == null) {
            ReadAllQuery query = JpaHelper.getReadAllQuery(getJpaQuery());
            query.setLockMode(ReadAllQuery.NO_LOCK);
            query.setIsReadOnly(true);
            query.useScrollableCursor(getPageSize());
            query.dontAcquireLocks();
            query.setFetchSize(getPageSize());
            Server server = getServerSession();
            Session session = server.acquireClientSession();
            cursor =  (ScrollableCursor)session.executeQuery(query);
        return cursor;
    public Collection<T> findAll(int firstResult, int maxResults) {
        setPageSize(maxResults);
        ArrayList<T> result = new ArrayList<T>();
        getCursor().absolute(firstResult);
        for(int i = 0; i < maxResults; i++){
            if(getCursor().hasNext()){
                result.add((T)getCursor().next());
            }else{
                break;
        return result;
    }This approach works fine on the DB2 server at my client's headquarters. The same code has to be used on a MS SQL server as well. However, I get the following error:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 1.0 (Build SNAPSHOT - 20080207)): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: com.microsoft.sqlserver.jdbc.SQLServerException: The cursor type/concurrency combination is not supported.
    Error Code: 0
    Call: SELECT ..... FROM ... WHERE ...ORDER BY ... ASC
         bind => [....]
    Query: ReadAllQuery(com.mycompany.package.Class)
    I googled the SQLServer error description, and found this forum thread. Apparently, EclipseLink is requesting a insensitive, updatable ResultSet from SQL Server. I don't understand it, since I did call query.setIsReadOnly(true). Is there a way to influence the type of cursor that EclipseLink will use? According to the mentioned forum thread, I should be fine if EclipseLink uses a sensitive, updatable cursor.
    Any help would be highly appreciated!
    Best regards,
    Bart Kummel

    Never mind, I figured it out myself. Perhaps I was a little bit too fast with posting a question this time. For those who want to know: I had to change:
        query.useScrollableCursor(getPageSize());to
        ScrollableCursorPolicy policy = new ScrollableCursorPolicy();
        policy.setPageSize(getPageSize());
        policy.setResultSetConcurrency(ScrollableCursorPolicy.CONCUR_READ_ONLY);
        query.useScrollableCursor(policy);This code is better in all cases, because the previous version probably created unnecessary locks, even if the database supported it. I still do not understand why I have to set both the Query and the ScrollableCursor to read only, though.
    Best regards,
    Bart Kummel

  • Will Upgrade Assistant work with MS SQL Server

    We have ODI installed om MS SQL Server 2005. Current version of ODI is 10.1.3.5 and would like to upgrade to 11.1.1. My question is can we use upgrade assistant to create 2 instances of ODI that has old 10g Repository DB and 11g Repository DB or is Upgrade Asssitant work only when repositories are installed on Oracle 11g.
    Thanks,
    Giri

    It's possible, but it's tough, you'll have to edit the ODI database to change the connection string to one that the new ODI likes, and the java driver to one Java likes.
    For SQL Server 2005, the JAVA_DRIVER it wants is: weblogic.jdbc.sqlserver.SQLServerDriver
    The connection string it will want will be like : jdbc:sqlserver://<host>:<port>;selectMethod=cursor;databaseName=<database_name>;
    Hope that helps, let me know if you want more info.

  • IOS 6 AirPrint not working with 10.6 Server - FIX!!!

    Not sure if there are any bods out there that use 10.6.8 server for AirPrint but if you do - you will have noticed that iOS6 doesn't see shared printers where as iOS5 does. Below is the fix. You need to be reasonably proficient with Terminal but otherwise - straightforward. Hope this helps.....
    (Obviously you can stop the service and use Netputing's AiorPrint Activator but for a server based managed queueing system, this just allows it to works as it did before.)
    10.6.8v1.1 Server and iOS6 AirPrint not working… Fix below…
    Stop Print Services and as root from terminal using vi or equiv add the following:
    (you will need to chmod 744 to edit then 444 the mime file after. 'touch' the files when your done)
    It may work being left rwx but I don't know - I have just put the files back to their original state.
    Restart print services after and you are all good.
    usr/share/cups/mime/
    File: apple.types
    Add the following line in bold (I have shown a few lines either side so you know where to put them):
    image/pict                              pict pic PICT string(522, <001102FF0C00>)
    image/urf                               urf (0,UNIRAST)
    # Image formats supported by CGImageIO.
    image/imageio                   crw cr2 nef bay raw dcr dng orf srf fax
    File: mime.convs
    Add the following line in bold:
    text/css                              application/postscript                    33          texttops
    text/html                              application/postscript                    33          texttops
    image/urf                               application/vnd.cups-postscript 66           pdftops
    image/gif                              application/vnd.cups-postscript          66          imagetops
    image/png                              application/vnd.cups-postscript          66          imagetops
    image/jpeg                              application/vnd.cups-postscript          66          imagetops

    Arrr - your Printer is AirPrint capable. You are printing direct from an iOS device to the printer. Some printers need a firmware update - others will work with iOS 6 straight away.
    The issue above relates to Mac OS X Server 10.6.8 (not client) and in relation to Print Services. You can use 10.6 Server and AirPrint to Any printer you like - not just an AirPrint ones. This is what AirPrint Activator does for client -  the above fix mends for Server.
    Glad you got you problem solved anyway.
    Oli

  • Does Oracle Data Masking pack work with MS SQL Server?

    And if so, are other OEM packs required (i.e. MS SQL Server system monitoring plug-in)?
    TIA

    Hi Martin.
    I try to resolve this problem ( sqlserver masking) but I can't found the OBE mentioned.
    You or anyone have examples about masking MS SQLServer, because in the Oracle documentation suggest that is possible but not "how do it", except the use of heterogeneous services.
    Thanks in advance.
    D.

Maybe you are looking for

  • Unknown error calling a RFC Function Module in BODI

    Hi all, I am having an issue identifying the error that my batch job in BODI is giving with regards to a RFC function module call in my query. The value returned by the standard parameter 'AL_RFC_RETCODE' are square characters (              ). At th

  • Error in global conversion rule for InfoObject 0INCOTERMS2

    When I activate BI content 2LIS_12_VCITM with transfer rule, The transfer rule was error with the message " Error in global conversion rule for InfoObject 0INCOTERMS2" and Mgs No. 263. The transfer rule cannot be activated. I checked the 0INCOTERMS2

  • How to download a complete playlist from computer to iPod

    How can I load a complete playlist from my iMac to my iPod? Been having to load it song by song, and not an entire playlist at once. What's up?

  • Equivalent of JavaScript escape function in PLSQL

    Hi, Is there any equivalent of JavaScript's "escape()" function in PlSql for web development? cos I found that whenever I have links generated in stored procedure with text that has space, single quote and so on will become invalid url syntax when us

  • __processRuleSet will not accept 'div1' tag

    Hi All, CS3/Javascript/Windows It is very interesting error. I want grep xmlElements from the Indesign XML file. When i am giving 'div1' tag in the __ProcessRuleSet, It show the error (attached), If i give other then the 'div' tag, it is working fine