LYNC2010 CU Patches BackEnd Update Command

We have LYNC 2013 Enterprise Pool collocated with LYCN 2010 Enterprise Pool. CMS database is on LYNC 2010. I am planning to apply February 2015 CU patches on both LYNC pools and found great blog from Iain Smith on how to apply DB patches in coexisting environment.
(https://northernlync.wordpress.com/2013/06/17/lync-2010-and-lync-2013-coexistence-environment-cu-patching/)
When I executed DBupdate command on LYNC 2010 on LYNC 2010 Frontend Pool server in my test environment, I got the below error message and continued to update other databases and finished with Success on all other databases.
Here is my concern, can I ignore the error message?
Or, shall I use the below command
Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn
DBServer.domain.com   -ExcludeCollocatedStores
( NOTE: There is no -UseDefaultsqlpaths parameter in the above command....)
(The parameter ExcludeCollocatedStores
suppresses a warning message telling you that any collocated database stores must be installed on the local computer. If your lync FE databases are collocated with Archiving or Moinitoring database, you will get a warning message. You can use
ExcludeCollocatedStores to suppress it.
But the Install-CsDatabase still work successfully without parameter ExcludeCollocatedStores. )
Shall I run the first script on dababase server instead of FrontEnd server?
Please suggest me the best way to update in production.
Thanks in advance...
Tek-Nerd

Hi,
Base on my understanding, if this is an  Enterprise Edition Back End Server and there are collocated databases on this server, then you need to type the command line:
Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <SQL Server FQDN>  -ExcludeCollocatedStores
Best Regards,
Eason Huang
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Eason Huang
TechNet Community Support

Similar Messages

  • 11.1.0.1.6 Patch Set Update problem

    Hi guys!
    I have problem with 11.1.0.1.6 Patch Set Update for Oracle Management Service.
    After i have installed OMS on my RHEL 5.2 server together with agent (Repository is on remote host) i have decided to install recommended patches as well.
    I have followed PSU install procedure, so i have first run
    [oracle@gc ~]$ opatch lsinventory
    Oracle Interim Patch Installer version 11.1.0.9.6
    Copyright (c) 2012, Oracle Corporation. All rights reserved.
    Oracle Home : /opt/oracle/Middleware/oms11g
    Central Inventory : /home/oracle/oraInventory
    from : /opt/oracle/Middleware/oms11g/oraInst.loc
    OPatch version : 11.1.0.9.6
    OUI version : 11.1.0.8.0
    Log file location : /opt/oracle/Middleware/oms11g/cfgtoollogs/opatch/opatch2012-04-12_10-24-52AM_1.log
    OPatch detects the Middleware Home as "/opt/oracle/Middleware"
    Lsinventory Output file location : /opt/oracle/Middleware/oms11g/cfgtoollogs/opatch/lsinv/lsinventory2012-04-12_10-24-52AM.txt
    Installed Top-level Products (1):
    Oracle Enterprise Manager Grid Console 11.1.0.1.0
    There are 1 products installed in this Oracle Home.
    Interim patches (3) :
    Patch 13248190 : applied on Wed Apr 11 11:41:33 CEST 2012
    Unique Patch ID: 14355092
    Created on 12 Jan 2012, 03:49:58 hrs PST8PDT
    Bugs fixed:
    10122270, 9930146, 9836815, 8638231, 9963717, 9543582, 9276193, 9911851
    9506062, 10361050, 10218699, 12657533, 10372559, 12908384, 10246310
    10418856, 10313110, 9500255, 10100210, 9462098, 12799578, 9747671
    10279457, 10400454, 9562462, 9570911, 11727299, 10638043, 9937784
    7340407, 9575427, 10204587, 10177562, 9935898, 12833678, 11809598
    9446422, 12545526, 9586285, 9548105, 10201753, 10353911, 9308029
    9534200, 12669853, 9184007, 9684768, 9686658, 9341486, 10122223, 11683765
    9241402, 9838084, 9849222, 9903280, 9888852, 9478844, 9558026, 9604064
    11728549, 9342290, 10410743, 10020408, 9151748, 9953045, 9221090
    9559264, 10264990, 10036568, 10065631, 9804442, 9576468, 10372513
    10108019, 9928480, 9535382, 11726378, 10114291, 10278756, 9892455
    9476313, 11900474, 9876632, 9386076, 12552334, 11076661, 9803798
    10408402, 10043790, 10307099, 9965939, 9646681, 9390531, 9662869, 10333908
    9544428, 9489355, 10190000, 9706552, 11890440, 8859562, 11808680, 12758241
    8234692, 9723689, 9734399, 9504581, 9558551, 9874327, 9313608, 12423703
    12360281, 12693879, 11901582, 12654105, 12536173, 10307544, 13248190
    9537948, 8930257, 10118817, 11696545, 9919614, 10404792, 12734089
    10636783, 9541036, 9821890, 12738517, 10270073, 10257014, 10223586
    10213026, 9952713, 9491872, 9507363, 10015330, 9726686, 10042225
    Patch 9367763 : applied on Tue Apr 10 14:03:38 CEST 2012
    Unique Patch ID: 12252189
    Created on 1 Mar 2010, 22:30:36 hrs PST8PDT
    Bugs fixed:
    9367763
    Patch 9207217 : applied on Tue Apr 10 14:03:30 CEST 2012
    Unique Patch ID: 12151251
    Created on 27 Jan 2010, 15:49:36 hrs US/Pacific
    Bugs fixed:
    9207217
    OPatch succeeded.
    [oracle@gc ~]$ echo $PATH
    :/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/usr/kerberos/bin:/opt/oracle/agent11g/bin:/opt/oracle/oms11g/bin:/opt/oracle/Middleware/oms11g/bin:/opt/oracle/Middleware/oracle_common/OPatch
    [oracle@gc ~]$ echo $ORACLE_HOME
    /opt/oracle/Middleware/oms11g
    after this checks i have stopped oms server and successfully executed opatch apply command.
    Then next step is to connect to rcuJDBCEngine as SYSMAN and run the apply.sql script as follows (in my case):
    [oracle@gc 13248190]$ pwd
    /opt/InstallGrid/Oracle11g/11106_patch_32bit/13248190
    [oracle@gc 13248190]$ /opt/oracle/Middleware/oms11g/bin/rcuJDBCEngine [email protected]:1521:gcoemrep JDBC_SCRIPT apply.sql $PWD $ORACLE_HOME
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:686)
    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:386)
    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:634)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:208)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:154)
    at oracle.sysman.assistants.common.dbutil.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:259)
    at oracle.sysman.assistants.common.dbutil.jdbc.ConnectionFactory.createConnection(ConnectionFactory.java:142)
    at oracle.sysman.assistants.common.dbutil.jdbc.ConnectionHelper.getConnection(ConnectionHelper.java:61)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.getConnection(JDBCEngine.java:889)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.connect(JDBCEngine.java:417)
    at oracle.sysman.assistants.common.dbutil.jdbc.JDBCEngine.main(JDBCEngine.java:1982)
    maybe my variables are not good?
    Any suggestions?
    Edited by: rootsman on Apr 12, 2012 1:36 AM

    Hi Rootsman,
    There are 2 possible causes for this issue.
    1. Because an incorrect syntax was used to apply the SQL part of the patch. If the password for the user is not added in the command line, the rcuJDBCEngine will fail. The rcuJDBCEngine will not prompt for the password (like sqlplus does), if it is not provided on the command line.
    - Incorrect syntax
    +$ORACLE_HOME/bin/rcuJDBCEngine sys@<host>:<port>:<SID> JDBC_SCRIPT post_install_script.sql $PWD $ORACLE_HOME+
    - Correct syntax
    +$ORACLE_HOME/bin/rcuJDBCEngine sys/<password for sys>@<host>:<port>:<SID> JDBC_SCRIPT post_install_script.sql $PWD $ORACLE_HOME+
    2. This problem may also occur if the password has been supplied on the command line but includes some special characters.
    The solution is to stick to the syntax described in the README.txt which states to enter the sys password on the command line:
    +$ORACLE_HOME/bin/rcuJDBCEngine sys/<password for sys>@<host>:<port>:<SID> JDBC_SCRIPT post_install_script.sql $PWD $ORACLE_HOME+
    If there are any special characters in the password, enclose the password in single-quotes ' '. For example:
    +$ORACLE_HOME/bin/rcuJDBCEngine sys/'<password>'@<host>:<port>:<sid> JDBC_SCRIPT post_install_script.sql $PWD $ORACLE_HOME+
    Hope your problem gets resolved.
    Thanks,
    Cris

  • 11.1.2.2.000 Patch Set Update (PSU): 11.1.2.2.501 patch  has been released

    11.1.2.2.000 Patch Set Update (PSU): 11.1.2.2.501 patch  has been released

    Hi, John!
    I have already apply patch Patch 17529887:  and redeploy RA, but  workspace shows old version of RA Framework

  • Looking for a site that shows problems with windows patches or updates.

    Looking for a site that shows problems with windows patches or updates...so I know what not to install.
    Plenty of sites list and summarize individual patches, I want one that consolidates problems and complaints so I can better assess the risk. Currently I'm waiting to install patches several days and doing google searches. That works, but I'd rather find a place
    that does it with expertise.
    Which forums would be best to look for such problems.
    Thanks in and advance for suggestions

    Hi,
    I agreed with Cyber and Rick.
    Windows update helps to keep your PC safer—and your software current—by fetching the latest security and feature updates from Microsoft via the Internet.
    Although there might be some problems when installing it, Windows update is not the one to blame.
    For troubleshooting Windows updates, if needed:
    Fix Microsoft Windows Update Issues
    http://support2.microsoft.com/gp/windows-update-issues
    Best regards
    Michael Shao
    TechNet Community Support

  • "Some updateing commands could not be generated ....." error

    Hi all,
    I am accessing an Oracle server on which I have READ ONLY rights. I am trying to create a DataSet. When I do so, I get an error:
    Some updating commands could not be generated automatically. The database returned the following error:
    This object has been deleted.
    1) Is this just because my access is readonly?
    2) A different message might be preferred ("code to submit updates was not created due to limited user rights" or some such.
    3) Can I use this even with the error or will I have other problems because the process did not complete correctly?
    Thanks,
    JustMe

    Can't remember how I solved this, but it is solved.

  • Goldengate update command

    Hi all
    I am going migration from 2003 server(10gR2) to 2008 server(11gR2) with goldengate 11.1.1.1.2
    while i am trying to update a row it is not replicating on the target. At first it gave me an error but later when i tried by giving alter replicat begin now command it worked, but again when i give the update command it is not even giving me an error and replicat is not abended , no replication
    My discard file looks like this:
    Oracle GoldenGate Delivery for Oracle process started, group REP1 discard file opened: 2012-05-23 11:34:49
    Current time: 2012-05-23 11:36:53
    Operation failed at seqno 0 rba 2614
    Discarding record on action DISCARD on error 1403
    Problem replicating SAM.SAMPLE to SAM.SAMPLE
    Record not found
    Mapping problem with compressed key update record (target format)...
    ID = 1
    NAME = NULL
    ID = 2
    NAME = NULL
    my replicat file:
    REPLICAT REP1
    USERID ggt_sys PASSWORD ggt_sys
    DISCARDFILE c:/goldengate/dirdat/rep1.dsc, append, megabytes 10
    REPERROR default, discard
    ASSUMETARGETDEFS
    DDL INCLUDE ALL
    DDLERROR DEFAULT IGNORE RETRYOP
    MAP SAM.*, TARGET SAM.*;
    I tried by cleaning the tables and by recreating the parameters. Source and table structure is same. Insert,create, delete are working fine..
    thanks in advance..

    Hi amardeep!!
    GGSCI (pdkbgisordev2k3) 252> stats ext1
    Sending STATS request to EXTRACT EXT1 ...
    Start of Statistics at 2012-05-23 14:08:37.
    DDL replication statistics (for all trails):
    *** Total statistics since extract started ***
    Operations 30.00
    Mapped operations 2.00
    Unmapped operations 28.00
    Other operations 0.00
    Excluded operations 28.00
    Output to /goldengate/dirdat/lt:
    Extracting from GGS_SYS.GGS_MARKER to GGS_SYS.GGS_MARKER:
    *** Total statistics since 2012-05-23 11:35:40 ***
    No database operations have been performed.
    *** Daily statistics since 2012-05-23 11:35:40 ***
    No database operations have been performed.
    *** Hourly statistics since 2012-05-23 14:00:00 ***
    No database operations have been performed.
    *** Latest statistics since 2012-05-23 11:35:40 ***
    No database operations have been performed.
    Extracting from SAM.SAMPLE to SAM.SAMPLE:
    *** Total statistics since 2012-05-23 11:35:40 ***
    Total inserts 3.00
    Total updates 2.00
    Total deletes 1.00
    Total discards 0.00
    Total operations 6.00
    *** Daily statistics since 2012-05-23 11:35:40 ***
    Total inserts 3.00
    Total updates 2.00
    Total deletes 1.00
    Total discards 0.00
    Total operations 6.00
    *** Hourly statistics since 2012-05-23 14:00:00 ***
    Total inserts 0.00
    Total updates 1.00
    Total deletes 0.00
    Total discards 0.00
    Total operations 1.00
    *** Latest statistics since 2012-05-23 11:35:40 ***
    Total inserts 3.00
    Total updates 2.00
    Total deletes 1.00
    Total discards 0.00
    Total operations 6.00
    Extracting from SAM.SAMPLE1 to SAM.SAMPLE1:
    *** Total statistics since 2012-05-23 11:35:40 ***
    Total inserts 1.00
    Total updates 1.00
    Total deletes 0.00
    Total discards 0.00
    Total operations 2.00
    *** Daily statistics since 2012-05-23 11:35:40 ***
    Total inserts 1.00
    Total updates 1.00
    Total deletes 0.00
    Total discards 0.00
    Total operations 2.00
    *** Hourly statistics since 2012-05-23 14:00:00 ***
    Total inserts 1.00
    Total updates 1.00
    Total deletes 0.00
    Total discards 0.00
    Total operations 2.00
    *** Latest statistics since 2012-05-23 11:35:40 ***
    Total inserts 1.00
    Total updates 1.00
    Total deletes 0.00
    Total discards 0.00
    Total operations 2.00
    I don`t think it is capturing, because when I issue insert statement I see message in the capture and also on delivery in target, but when I issue update statement I don`t see anything in the capture..
    thanks

  • Re: Satellite A300-E00 - Can't download patches or updates

    Hey guys.
    My brother has a A300/E00. It connects to the internet (he can google, go on facebook etc) but it wont download patches or updates for games (wow,sc2) or software(adobe).
    Does this sound like a software or hardware problem? He hasn't changed any of his software or their settings. Thanks in advance.
    Peace.

    Hi ThePathMaker,
    I think you must be a little bit more specific.
    Why you cant download patches or updates? Do you get an error message or what happens exactly?
    For me it sounds like that antivirus or firewall is blocking downloads. You should check the options and enable downloads!
    Furthermore test different Internet Browsers!

  • Update Command is not working.

    Hi,
         There are 15 fields in the database table. The first 5 fields are set as primary keys. In the table, only the first field has got unique values. In the next 4 primary keys the values are getting repeated.
    Now, i am trying to modify the 10th field using Update Command.
    I have written the below command.
    Updated ZOMT_PROCESS using WL_INITIAL_VALUES.
    The record is not getting modified in the database table with the values of the work area WL_INITIAL_VALUES.
    What could be the problem?

    Hi,
    Move all the modifiable work area fields to an Internal table and modify the ztable.   
    Use the following syntax
    LOOP AT i_selected_rows INTO w_selected_rows.
        READ TABLE itab INTO wa INDEX w_selected_rows-index.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING wa TO w_modified.
          APPEND w_modified TO i_modified.
        ENDIF.
      ENDLOOP.
      MODIFY zzzmaterial FROM TABLE i_modified.
    Regards
    Bala Krishna

  • Patch 8833297 - 11.1.0.7.1 Patch Set Update question.

    Hi
    The O.S oul5x64
    database version 11.1.0.7.0
    after applied this patch
    Patch 8833297 - 11.1.0.7.1 Patch Set Update
    and went thru the post installation procedure.
    SQL> select * from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    PL/SQL Release 11.1.0.7.0 - Production
    CORE 11.1.0.7.0 Production
    TNS for Linux: Version 11.1.0.7.0 - Production
    NLSRTL Version 11.1.0.7.0 - Production
    and sql*plus was still showing 10.1.0.7
    Question:
    Should i see the new version 11.1.0.7.1 or it is normal ?
    Thanks in advance!

    No, version does not change.
    Does PSU Released For Oracle 10gR2 (10.2.0.4)and 11g R1 (11.10.7) Change The Database Version/Fifth Digit ? ID 861152.1+
    Nicolas.

  • Update command in Shell script

    Hi friends
    sqlplus -s / <<END
    set feedback on;
    update tran2 set sno=1;
    exit;
    END
    when i am using update command in shell script like above
    it is updating the database well...but i just want to know how many rows it is updating and i dont want to commit
    for that
    sqlplus -s / <<END
    set feedback on;
    update tran2 set sno=1;
    set feedback off;
    rollback;
    exit;
    END
    It's working fine
    is there any other method to do the same

    Well what's exactly your requirement? The current requirement doesn't make a lot of sense.
    How many row is going to be updated depends on where clause, if you have no where clause that essentially updating whole table, the number of row updated is count of your rows.

  • Update command in When-button-pressed.

    Hello OTN members,
    I have the following situation :
    Take an eg.
    There are two forms, the first form takes the fiedls such as EMP
    NAME, ADDRESS AND DEPT. This record generates a Empid from the
    sequence.
    The second form selects the empid from the LOV, and other fields
    such as Emp Salary, Commission and Bonus Rate(from the same
    table) are entered. When a Button is pressed, it should update
    the record with the above values where empid in the table is
    equal to the empid in this forms first field.
    I tried as below in when_button_pressed trigger::
    UPDATE EMP SET SALARY = :EMP_BLOCK.SALARY,
    COMMISSION = :EMP_BLOCK.COMMISSION etc
    where
    EMPID = :EMP_BLOCK.EMPID;
    The above statement does not update the record in the table.
    If there is any other approach for the above please suggest.
    Thanks in advance.
    Sailesh.
    null

    Hallo,
    you can check the number of updated row with the system variable
    SQL%ROWCOUNT. So if your where condition doesnt match any rows,
    no rows will be updated and also no error message will be
    generated. In this case SQL%ROWCOUNT contains 0 after the update
    command.
    other idea: make surte to commit your changes before querying
    the record from another sessuion!
    Sailesh (guest) wrote:
    : Hello OTN members,
    : I have the following situation :
    : Take an eg.
    : There are two forms, the first form takes the fiedls such as
    EMP
    : NAME, ADDRESS AND DEPT. This record generates a Empid from the
    : sequence.
    : The second form selects the empid from the LOV, and other
    fields
    : such as Emp Salary, Commission and Bonus Rate(from the same
    : table) are entered. When a Button is pressed, it should update
    : the record with the above values where empid in the table is
    : equal to the empid in this forms first field.
    : I tried as below in when_button_pressed trigger::
    : UPDATE EMP SET SALARY = :EMP_BLOCK.SALARY,
    : COMMISSION = :EMP_BLOCK.COMMISSION etc
    : where
    : EMPID = :EMP_BLOCK.EMPID;
    : The above statement does not update the record in the table.
    : If there is any other approach for the above please suggest.
    : Thanks in advance.
    : Sailesh.
    null

  • Is there any Update command in MDX query

    My situation is follows:<BR><BR><BR> Jan-2005 Brands Products Sales <BR>Bill:20001-ABC 100<BR>Bill:20001-XYZ 20<BR> Customers<BR><BR>Is there any way where i can delete the member "Bill:20001-XYZ" and add the value 20 into<BR>"Bill:20001-ABC" so that it becomes<BR><BR><BR> Jan-2005 Brands Products Sales <BR>Bill:20001-ABC 120<BR> Customers<BR><BR><BR>Is there any update command introduced in MDX query which would resolve the above issue?.

    In it's current incarnation, Essbase MDX can't do this, I believe it is coming in a future release, but I wouldn't expect it too soon, maybe within a year. There are others that can provide more insight if and when it will be available.<BR><BR>By the way, I'm assuming this is an Aggregate Storage Database. If it were a Block Storage database, there would be a couple of different ways to do this (Calc script, lock & send via spreadsheet)<BR><BR>

  • UPDATE command syntax for mulitple checkbox update

    Hi,
    I intend update the checkboxes by id in bulk.
    My table is below. I want to update the selected form_id
    checkboxe and their
    values accordingly. That, I click the checkboxes (containin
    form_id
    information) of 1, 3, and 6; and I check their respective
    fields for column
    check01 and check02.
    form_id check01 check02
    1 1 0
    2 0 1
    3 0 0
    4 1 1
    5 1 1
    6 1 0
    I am using below code for deleting. I can do insert into. But
    I could not
    figure out the correct syntax for UPDATE command similar to
    below example.
    Sample for deleting:
    DELETE FROM ADS
    WHERE AD_ID IN (varCheckBox)
    Thank you
    Hakan

    Check here for SQL UPDATE syntax..
    http://www.w3schools.com/sql/sql_update.asp
    Regards,
    ..Trent Pastrana
    www.fourlevel.com
    "Hakan834" <[email protected]> wrote in message
    news:e9tdd8$ppk$[email protected]..
    > Hi,
    >
    > I intend update the checkboxes by id in bulk.
    >
    > My table is below. I want to update the selected form_id
    checkboxe and
    > their values accordingly. That, I click the checkboxes
    (containin form_id
    > information) of 1, 3, and 6; and I check their
    respective fields for
    > column check01 and check02.
    >
    > form_id check01 check02
    > 1 1 0
    > 2 0 1
    > 3 0 0
    > 4 1 1
    > 5 1 1
    > 6 1 0
    >
    > I am using below code for deleting. I can do insert
    into. But I could not
    > figure out the correct syntax for UPDATE command similar
    to below example.
    >
    > Sample for deleting:
    > DELETE FROM ADS
    > WHERE AD_ID IN (varCheckBox)
    >
    >
    > Thank you
    >
    > Hakan
    >

  • Delete Command button doesn't take more than one parameter while update command does

    Hi,
    Does anybody have an idea WHY sharepoint does not send the parameter information to a delete command while the exact same parameter is being sent to the Update command?, the data is being pulled from an asp:TextBox bound  to the 'comments' field in
    the data source which happens to be the field I need to update, the code works for Update commands but not for Delete commands. Unfortunately I have to use sharepoint designer because SP is restricted at work, so I can't write code behind the scenes. I would
    appreciate any help, here's my code
    <%@ Page Language="C#" masterpagefile="../_catalogs/masterpage/v4.master" title="Test" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document" meta:webpartpageexpansion="full" %>
    <%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="cc2" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebUI" namespace="Microsoft.Office.InfoPath.Server.Controls.WebUI" assembly="Microsoft.Office.InfoPath.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderMain">
    <asp:SqlDataSource runat="server" ProviderName="System.Data.SqlClient" UpdateCommand="sp_updateStartedApprovals" ID="SqlDataSource2" ConnectionString="Data Source=MCARLOSJ2;User ID=sa;Password=****;Initial Catalog=MyDB;" SelectCommand="SELECT * FROM mainView " __designer:customcommand="true" UpdateCommandType="StoredProcedure" DeleteCommand="sp_rejectApprovals" DeleteCommandType="StoredProcedure">
    <UpdateParameters>
    <asp:Parameter Name="comments" Type="String"/>
    <asp:parameter Name="id" Type="Int32" />
    </UpdateParameters>
    <DeleteParameters>
    <asp:Parameter Name="comments" Type="String"/>
    <asp:parameter Name="id" Type="Int32"/>
    </DeleteParameters>
    </asp:SqlDataSource>
    <asp:GridView runat="server" id="GridView1" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" DataKeyNames="id" GridLines="None" ForeColor="#333333" CellPadding="4">
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <Columns>
    <asp:boundfield DataField="description" HeaderText="Status" ReadOnly="True" SortExpression="description">
    </asp:boundfield>
    <asp:boundfield DataField="Employee Last Name" HeaderText="Employee Last Name" ReadOnly="True" SortExpression="Employee Last Name">
    </asp:boundfield>
    <asp:boundfield DataField="Employee First Name" HeaderText="Employee First Name" ReadOnly="True" SortExpression="Employee First Name">
    </asp:boundfield>
    <asp:boundfield DataField="Pending approval" HeaderText="Pending approval" ReadOnly="True" SortExpression="Pending approval">
    </asp:boundfield>
    <asp:boundfield DataField="Atnmt %" HeaderText="Atnmt %" ReadOnly="True" SortExpression="Atnmt %">
    </asp:boundfield>
    <asp:boundfield DataField="Country" HeaderText="Country" ReadOnly="True" SortExpression="Country">
    </asp:boundfield>
    <asp:boundfield DataField="comments" HeaderText="comments" ReadOnly="True" SortExpression="Comments">
    </asp:boundfield>
    <asp:boundfield DataField="processStartedDate" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Date Opened" ReadOnly="True" SortExpression="processStartedDate">
    </asp:boundfield>
    <asp:boundfield DataField="Due Date" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Due Date" ReadOnly="True" SortExpression="Due Date">
    </asp:boundfield>
    <asp:templatefield>
    <ItemTemplate>
    <asp:TextBox runat="server" id="comments" Text='<%# Bind("comments") %>'/>
    <asp:LinkButton runat="server" Text="Approve" id="Button1" CommandName="Update" CausesValidation="False" />
    <asp:LinkButton runat="server" Text="Reject" id="Button2" CommandName="Delete" CausesValidation="false"/>
    </ItemTemplate>
    </asp:templatefield>
    </Columns>
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle HorizontalAlign="Center" BackColor="#284775" ForeColor="White" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#999999" />
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    </asp:Content>

    Hi,
    you have multiple options here:
    1) upload as a script:
    a) save the statements in a file
    b) go to sql workshop > sql scripts
    c) upload script and run the script
    2) run the script line by line in the sql commands window directly:
    a) go to sql workshop > sql commands
    b) copy all statements there
    c) highlight the first statement with the mouse
    d) click "run" or press <ctrl>+enter
    3) use sql developer
    a) go to http://www.oracle.com/technology/products/database/sql_developer/index.html
    b) download and install
    c) connect to XE
    d) run the statements there
    Regards,
    ~Dietmar.

  • Command Builder Update Command Algorithm

    Dear Sirs,
    When setting the update command of a sqldataadapter control, I use the following syntax :
     Dim cbsql As SqlCommandBuilder
        cbsql = New SqlCommandBuilder(dataadapter)
    The generated update command  is a syntax of parametric variables.
    I would like to know what algorithm does the command builder use to generate the updatecommand.

    Why do you want to know?
    It's been a while since I've seen a better and more detailed explanation than msdn
    https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommandbuilder(v=vs.110).aspx
    https://msdn.microsoft.com/en-us/library/tf579hcz(v=vs.110).aspx
    Loosely speaking you can think of it as taking each of the records that have changes and allocating the right command ready (to be applied later) for each of them.
    It looks at each record and decides if it's changed. Whether a record has been updated, added or deleted.
    If no command is provided, reflection is used (once) to build the sql for each of these.
    It  allocates the update sql to the updates, insert to the additions and update sql to the updates.
    The specific record to apply the change to is identified by primary key.  No primary key is a problem !
    If you wanted to take a look at the sql a command generated there are the various get... command methods.
    connection.Open();
    SqlCommandBuilder builder = new SqlCommandBuilder(adapter);
    DataSet dataSet = new DataSet();
    adapter.Fill(dataSet, tableName);
    SqlCommand cmd = builder.GetUpdateCommand();
    string aSQLstring = cmd.CommandText;
    Hope that helps.
    Recent Technet articles:
    Property List Editing ;  
    Dynamic XAML

Maybe you are looking for