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)

Similar Messages

  • "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

  • 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.

  • 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

  • Does Lion really not work with Microsoft Office?

    does Lion really not work with Microsoft Office?

    I am afraid I have reverted to Snow Leopard as I was having one problem after another with Lion and for every problem I was solving, two new ones cropped up. I won't bore you with a long list, but one example is whenever I clicked on a single saved document to view, Microsoft Word would open not only that particular document, but also half a dozen other ones as well. Also, my Canon printer did not operate properly nor would Aol. With a lot of other weird stuff happening every day, the final straw was when my Time Capsule wouldn't backup properly, but just 'hang' indefinitely.
    Luckily, I have two HD disks on my iMac and I had installed Lion on HD2 while still retaining Snow Leopard on HD1. I also made a Lion installation disk for future installation when all these software bugs have been sorted.
    I am back to normal service with Snow Leopard and shall not return to Lion until at least the next upgrade/patch becomes available. I so looked forward to Lion as well, but I was fighting a losing battle.
    I would suggest anyone who is in my position trying to stem the tidalwave of software problems with Lion, make an installation disk for Lion and go back to SL until the next upgrade.

  • HP Simple Pass not working with Microsoft Edge in Windows 10

    I up graded to windows 10 and now I find that HP Simple Pass does not work with Microsoft Edge, despite the fact that it continues to work with the windows 10 sign in.Would appreciate any thoughts on how to fix HP Simple Pass to work with Microsoft Edge. Thank you

    I got an answer here:http://h30492.www3.hp.com/t5/Notebook-Betriebssysteme-und-Software/SimplePass-und-Edge/m-p/363610#M34997 Edge doesn't support that kind of plugins at the moment, MS is working on it. 

  • Re: auto save not working with microsoft office on OS Lion

    Is there anyone else having issues with the auto-save/versions not working with Microsoft office on the OS Lion Upgrade?

    It seems (from some testing I've just done) that:
    1. It's not an explicit choie or preference - it's just there, in the background, invisible
    2. Your textedit document has to have been saved once (i.e given a name), or you've reopened a previously saved document
    If those conditions are met, Textedit will keep the doc saved.
    My test was:
    Open existing docuement
    Make changes
    Wait a few seconds
    Quit Textedit
    Reopen Textedit - and there's the doc with all the changes.
    I ran the test again, quitting Textedit immeditaley I had made the change - and it saved the change successfully.
    Hope that helps

  • The DB tools doesn't work with Microsoft SQL

    I am tring to write series of waveforms to a database. The DB tools doesn't work with Microsoft SQL, but when i replace the SQL with Access, it works fine. I have to use SQL in the application.
    Any advice pls?
    longing for your reply.
    Attachments:
    test.vi ‏47 KB

    Right off hand I would say the problem is that you are connecting through ODBC. Try the native SQL Server driver, your connect string should define the provider as "SQLOLEDB.1".
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Need help with MS SQL server JDBC driver

    Anyone has experience getting ACS working with SQL2005? We keep getting ‘com.adobe.adept.persist.DatabaseException: java.sql.SQLException: No suitable driver’
    We’re using sqljdbc.jar and sqljdbc4.jar that downloaded from Microsoft website. We added this to every library folder under tomcat, JRE and SDK but it did not help. Any suggestion will be helpful.
    Thanks-

    Hi,
    We have ACS with SQL Server 2005 Std correctly working.
    We have this settings:
    ############ SQL Server Connection ############
    com.adobe.adept.persist.sql.driverClass=com.microsoft.sqlserver.jdbc.SQLServerDriver
    com.adobe.adept.persist.sql.connection=jdbc:sqlserver://ip-addressSQL:PortSQL;databaseName =Adept
    com.adobe.adept.persist.sql.dialect=microsoft
    com.adobe.adept.persist.sql.user=userSQL
    com.adobe.adept.persist.sql.password=passSQL
    Wi use Microsoft SQL Server JDBC Driver 3.0 downloaded from Microsoft website (http://www.microsoft.com/download/en/details.aspx?id=21599)
    Good luck,

  • MCTS 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012

    I am searching for training kit for Exam 70-466 (Implementing Data Models and Reports with Microsoft SQL Server 2012) but I think is not published yet. I was expecting its release in Jan or Feb 2014. Would any one can tell me its release date or any place
    where I can find this book.
    Thanks
     

    Hi Azhar lqbal Gondal,
    According to your description, since the issue regards training and certification,
     I suggest you post the question in the Learning forums at
    http://social.technet.microsoft.com/Forums/en-US/home?category=learning. It is appropriate and more experts will assist you. If you have a specific technical question about Microsoft SQL Server,
     you can visit and post your question on  the SQL Server Forum.
    There is some detail about Exam 70-466 Implementing Data Models and Reports with Microsoft SQL Server 2012, you can review the following articles.
    Exam content can be found here:
    http://www.microsoft.com/learning/en-us/exam-70-466.aspx
    http://borntolearn.mslearn.net/certification/database/w/wiki/525.466-implementing-data-models-and-reports-with-microsoft-sql-server-2012.aspx#fbid=Mn-t6aRhs-H
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server)

    I am getting the error message, "Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server)". I am attaching the stored procedure. Can anyone see where the syntax may
    be causing this.
    USE [ReportData]
    GO
    /****** Object: StoredProcedure [PDI].[usp_MJTestTop10_Select] Script Date: 04/23/2015 10:35:43 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    --USE [ReportData]
    --GO
    --/****** Object: StoredProcedure [PDI].[usp_MJTestTop10_Select] Script Date: 04/23/2015 08:22:26 ******/
    --SET ANSI_NULLS ON
    --GO
    --SET QUOTED_IDENTIFIER ON
    --GO
    ALTER PROCEDURE [PDI].[usp_MJTestTop10_Select]
    @StartDate DATE,
    @EndDate DATE,
    @Location VARCHAR
    AS
    DECLARE @CalendarKey TABLE (
    Calendar_Key int,
    Organization_Key int,
    Day_Date DATETIME
    BEGIN
    INSERT INTO @CalendarKey
    SELECT C.calendar_key,
    O.Organization_Key,
    C.Day_Date AS DATETIME
    FROM pdi.PDI_Warehouse_952_01.dbo.calendar C,
    pdi.PDI_Warehouse_952_01.dbo.Organization O
    where @EndDate is not null
    and C.Day_Date BETWEEN @StartDate and @EndDate
    or @EndDate is null
    and C.Day_Date = @StartDate
    END
    SELECT CAST(C.Day_Date as DATE) as [Memo Date],
    --C.calendar_key,
    ISNULL(CAST(MBH.Transaction_Number as VARCHAR), 'Unknown') as [Memo Number],
    O.Site_id,
    O.Site_desc,
    --p.Product_Key,
    p.UPC as [UPC],
    (CAST(P.Department_ID as VARCHAR) + ' ' + CAST(P.Category_ID as VARCHAR) + ' ' + CAST(P.Sub_Category_Id as VARCHAR)) as [D C S],
    ISNULL(CAST(IPF.Vendor_Key as VARCHAR), 'Unknown') as [Vendor Code],
    --ISNULL(CAST(V.Vendor_Desc as VARCHAR), 'Unknown') as [Vendor Desc],
    ISNULL(P.Item_Desc, 'Unknown') as [Description],
    ISNULL(P.Size_Desc, 'Unknown') as [Size],
    ISNULL(RTrim(Cash.Cashier_Name), 'Unknown') as [Associate],
    ISNULL(CONVERT(INT, IIF.Beg_Inv_Qty, 0), '0') as [Old Qty],
    ISNULL(CONVERT(INT, IIF.End_Inv_Qty,0), '0') as [Adj Qty],
    ISNULL(CONVERT(INT, IIF.End_Inv_Qty - IIF.Beg_Inv_Qty, 0), '0') as [Dif Qty]
    FROM pdi.PDI_Warehouse_952_01.dbo.Item_Sales_Fact ISF
    INNER JOIN pdi.PDI_Warehouse_952_01.dbo.Product P ON ISF.Product_Key = P.Product_Key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Organization O ON ISF.Organization_key = O.organization_key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Item_Purchases_Fact IPF ON ISF.Product_key = IPF.Product_Key
    AND ISF.Organization_key = IPF.Organization_key
    AND ISF.Calendar_key = IPF.Calendar_key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Item_Inventory_Fact IIF ON ISF.Product_Key = IIF.Product_Key
    AND IIF.Product_Key = P.Product_Key
    AND ISF.Organization_key = IIF.Organization_Key
    AND ISF.Calendar_key = IIF.Calendar_Key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Calendar C ON ISF.calendar_key = C.calendar_key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Cashier Cash ON ISF.Organization_Key = Cash.Organization_Key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Cashier_Metric_Hourly_Dept_Snapshot CMH on Cash.Organization_Key = CMH.Organization_Key
    AND Cash.Cashier_Key = CMH.Cashier_Key
    AND ISF.Calendar_Key = CMH.Calendar_Key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.MarketBasket_Header MBH ON ISF.Calendar_Key = MBH.Calendar_Key
    AND ISF.Organization_Key = MBH.Organization_Key
    AND Cash.Cashier_Key = MBH.Cashier_Key
    LEFT JOIN pdi.PDI_Warehouse_952_01.dbo.Vendor V ON IPF.Vendor_Key = V.Vendor_key
    AND IPF.Calendar_Key = C.Calendar_Key
    LEFT JOIN @CalendarKey CK ON ISF.Calendar_Key = ck.Calendar_Key
    AND ISF.Organization_Key = CK.Organization_Key
    WHERE C.calendar_key = CK.Calendar_Key
    ORDER BY
    O.Location_ID,
    C.Day_Date,
    IPF.Vendor_Key,
    P.UPC,
    P.Size_Desc

    Some additional comments. 
    @Location VARCHAR
    Look closely at this.  How many characters can @Location contain?  You did not specify, so perhaps you think some appropriately large default value is used.  Guess again. You did a similar thing with cast (multiple times) - which is handled
    differently.  Don't be lazy.
    WHERE C.calendar_key = CK.Calendar_Key
    Go review the join to the CK table.  It is an outer join.  Yet you have included criteria in the where clause that requires a match in the unpreserved (@CalendarKey aka CK) table.  This effectively transforms that join from outer to inner.
    Was that intentional? Probably, but then you don't need to use an outer join
    FROM pdi.PDI_Warehouse_952_01.dbo.calendar C,
    pdi.PDI_Warehouse_952_01.dbo.Organization O
    Evolve.  We do not join in the where clause any longer.  You should be joining using join operators.  And perhaps more importantly, why do you need to dump a resultset into a table variable at all?  Note that your join is a cross join
    since there is no relationship between calendar and Organization - intentional? Given the rest of the logic, it seems that you don't really need to do this.
    ISNULL(CONVERT(INT, IIF.End_Inv_Qty,0), '0') as [Adj Qty],
    Go review the documentation for convert.  You supply a style, but does it do anything?  We don't know what datatype End_Inv_Qty is, but I assume it is numeric (and not float).  So what do you intend?  And you convert it to integer but
    use a character '0' in the isnull function.  Your lack of consistency can lead to issues that are difficult to find and resolve.
    CAST(C.Day_Date as DATE)
    Why are you doing this? You defined the column in your table variable as datetime.  You cast the value you use to populate this column to datetime.  I'm guessing that you only really care about the date portion.  The name you used for the
    column implies this.  So why bother with datetime in the first place?
    And one last suggestion. If you disallow the use of NULL for the @EndDate argument (simply supply the same value for both date arguments) you can simplify the logic that populates your table variable (or its replacement) and greatly eliminate the confusion
    and chance for errors that nullability requires.

  • 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 : ?

  • ICloud 2.1.1 not working with Microsoft Outlook 2013?

    HI, I needed some assistance from the experts here.
    I just had my laptop reformatted and redownload & installed the latest version of iCloud 2.1.1 Control Panel for Windows & Microsoft Office 2013.
    When I click on the buttom "Apply" to setup outlook for iCloud, i got this error message at Step 4 of 7. It keeps refreshing these 2 sentences "Downloading Contacts from iCloud" & "Uploading Contacts to iCloud" & eventually errored out with this error message "Your setup couldn't be started because of an unexpected error".
    I checked my Microsoft Outlook 2013 & there is an iCloud Plug-In.
    But clicking on the "Go Online" button doesn't do anything.
    I used to be able to click on a "Go Online/Refresh" button in the past (with Microsoft Office 2007) and able to then synchronise new contacts in my outlook to iphone. But apparently, this doesn't work anymore.
    Thereafter, I tried uninstalling iCloud 2.1.1 and reinstalling it again immediately (without rebooting my laptop) & the same error message occurs when i tried to setup outlook for iCloud. And the worst thing is now the "iCloud plug-in" disappear inside Microsoft Outlook 2013 totally.
    I tried reading several threads and got confused.
    Is iCloud 2.1.1 Control Panel for Windows not compatible with Microsoft Outlook 2013 yet?
    Do I just have to wait for a new release from Apple or did i do something wrong in the installation of the softwares?
    Aprpreciate the assistance from some experts here.

    Well it's now the 14th and no replies, so have you sorted it.
    I could not get Outlook 2013 working with the control panel, although was working it was saying it was not configured.
    Worse still tried going back to Outlook 2007 and it did not want to know, in the end a disk image restore was required.
    I will try Outlook 2013 again in a few months maybe.

  • 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...

  • Is ODI compatible with Microsoft SQL Server 2008??

    Hi,
    We are trying to set ODI for SQL Server 2008 but we are getting an error: "connection failed". I do not know if the problem is the driver or the incompatibility between ODI and SQL Server 2008.
    Does someone use them together? Are compatible?
    If the response is yes, where is the problem? We are using the following JDBC driver:
    com.microsoft.jdbc.sqlserver.SQLServerDriver
    jdbc:microsoft:sqlserver://<host>:<port>
    And we have download the sqljdbc_2.0 driver.
    Thank you very much,
    Araitz.-

    Hi Araitz,
    I have ODI Connecting to a Master and Work Repository on SQL Server 2008
    Couple of things:
    - Have you put the JDBC driver in the drivers folder of you ODI installation?
    - In terms of the connection strings, your driver name seems OK; This is the string I have for my URL - jdbc:sqlserver://localhost:1433;databaseName=odimaster; IntegratedSecurity=false
    For the user name and password, put those in the connection area. By using IntegratedSecurity=false, you are forcing the password to be picked up from the connection area and not trying to use your AD credentials
    Note - The connection string contains odimaster (this is for our ODI Designer login)
    Hope this helps.
    Best Regards,
    geeo

Maybe you are looking for