Access-SQL Server (Client Server Configuration) Best Way To Refresh SQL Server Records ?

We are using Access 2013 as the front end and SQL Server 2014 as the back end to a client server configuration.
Access controls are bound to the SQL fields with the same names. When using Access to create a new record in a Form, the data are not transferred to SQL if the form is exited to display a different Form or Access is closed. If the right or left arrow navigation
buttons at the bottom of the form are first used to display either the previous or next record, then the data in the new record are correctly transferred to SQL.
What is the best way to refresh the new SQL record prior to the closing of the new record in the bound Access form ? We have tried Requery of the entire form and with all of the individual controls without success. We are looking for a method of refreshing
SQL that functions in a manner similar to that of what happens with the navigation buttons.
Thank you very much for your assistance.
Robert Robinson
RERThird

Hi Stefan,
I had added the code to set me.dirty = False in response to the On Dirty event and didn't realize that it was working properly. I had tried other several approaches and must have become confused somewhere along the line.
I retested the program. On Dirty is working and the problem is solved.
Thank you very much for your assistance.
Robert Robinson
RERThird

Similar Messages

  • What is a best way to write SQL ?

    Sample Case
    drop table t;
    drop table b;
    create table t ( a varchar2(4), b number, c varchar2(1));
    insert into t values ('A00', 10, 'R');
    insert into t values ('A01', 11, 'R');
    insert into t values ('A02', 12, 'R');
    insert into t values ('A03', 13, 'R');
    insert into t values ('A00', 10, 'P');
    insert into t values ('A01', 11, 'P');
    insert into t values ('A02', 12, 'P');
    insert into t values ('A03', 13, 'P');
    commit;
    create table b ( j varchar(4), k varchar2(1), l varchar2(5), m number(3), n varchar2(5), o number(3));
    insert into b values ('A00', 'P', 'FIXED', 100, 'FLOAT', 60);
    insert into b values ('A01', 'P', 'FIXED', 101, 'FIXED', 30);
    insert into b values ('A02', 'R', 'FLOAT', 45, 'FLOAT', 72);
    insert into b values ('A03', 'R', 'FIXED', 55, 'FLOAT', 53);
    commit;
    10:19:13 SQL> select * from t;
    A B C
    A00 10 R
    A01 11 R
    A02 12 R
    A03 13 R
    A00 10 P
    A01 11 P
    A02 12 P
    A03 13 P
    8 rows selected.
    10:19:19 SQL> select * from b;
    J K L M N O
    A00 P FIXED 100 FLOAT 60
    A01 P FIXED 101 FIXED 30
    A02 R FLOAT 45 FLOAT 72
    A03 R FIXED 55 FLOAT 53
    1/     In table t each reference having 2 records one with P another is with R
    2/     In table b each refrence merged into single record and there are many records which are not existing in table t
    3/      both t and j tables can be joined using a = j
    4/     If from table t for a reference indicator is 'P' then if have to pick up l and m columns, if it is 'R' then I have to pick up n and o columns
    5/     I want output in following format
    A00     P     FIXED          100
    A00     R     FLOAT          60
    A01     P     FIXED          101
    A01     R     FIXED          30
    A02     P     FLOAT          72
    A02     R     FLOAT          45
    A03     P     FLOAT          53
    A03     R     FIXED          55
    6/     Above example is a sample ouput, In above example I have picked up only l,m,n,o columns, but in real example there are many columns ( around 40 ) to be selected. ( using "case when" may not be practical )
    Kindly suggest me what is a best way to write SQL ?
    thanks & regards
    pjp

    Is this?
    select b.j,t.c as k,decode(t.c,'P',l,n) as l,decode(t.c,'P',m,o) as m
    from t,b
    where t.a=b.j
    order by j,k
    J K L M
    A00 P FIXED 100
    A00 R FLOAT 60
    A01 P FIXED 101
    A01 R FIXED 30
    A02 P FLOAT 45
    A02 R FLOAT 72
    A03 P FIXED 55
    A03 R FLOAT 53
    8 rows selected.
    or is this?
    select b.j,t.c as k,decode(t.c,b.k,l,n) as l,decode(t.c,b.k,m,o) as m
    from t,b
    where t.a=b.j
    order by j,k
    J K L M
    A00 P FIXED 100
    A00 R FLOAT 60
    A01 P FIXED 101
    A01 R FIXED 30
    A02 P FLOAT 72
    A02 R FLOAT 45
    A03 P FLOAT 53
    A03 R FIXED 55
    8 rows selected.

  • What is the best way to practice SQL language?

    I’m new in database world and want to practice SQL language. I’ve been playing around with Oracle XE, but I realized it’s not very practical to play around with SQL using XE since its sql editor is not user friendly to debug the script. I’m trying to build schemas from scratch and play around with it using SQL. What is the best way to do this?
    Thanks in advance

    Valerie Debonair wrote:
    I’m new in database world and want to practice SQL language. I’ve been playing around with Oracle XE, but I realized it’s not very practical to play around with SQL using XE since its sql editor is not user friendly to debug the script. I do not think that is a valid criticism at all. The basic tools needed to learn SQL is SQL*Plus and a willingness to learn.
    There is no "+debugging+" for SQL either... except to break it into simpler steps, testing that... and perhaps using "+explain plan+" to get the execution plan.
    Granted that SQL*Plus is not the best tool for displaying data... but then learning SQL should be done using small data sets (not too many columns and few rows) - as even a small data set can represent all the data model complexities needed for learning SQL.
    The examples you use, the test tables and the practical exercises used in the learning process are by far more important how "pretty" the tool being used is.
    FWIW, I do 99% of all my SQL work and PL/SQL development using SQL*Plus - it is a very capable tool.

  • My Ipod is locked, I do not remember the passcode and I have no access to itunes/computer - what is best way to reset?

    My Ipod is locked, I do not remember the passcode and I have no access to itunes/computer - what is best way to access this ipod?

    If you set up Find my iPod, you can access iCloud from another device and remote wipe it.
    See http://support.apple.com/kb/HT1212

  • Best way to insert millions of records into the table

    Hi,
    Performance point of view, I am looking for the suggestion to choose best way to insert millions of records into the table.
    Also guide me How to implement in easier way to make better performance.
    Thanks,
    Orahar.

    Orahar wrote:
    Its Distributed data. No. of clients and N no. of Transaction data fetching from the database based on the different conditions and insert into another transaction table which is like batch process.Sounds contradictory.
    If the source data is already in the database, it is centralised.
    In that case you ideally do not want the overhead of shipping that data to a client, the client processing it, and the client shipping the results back to the database to be stored (inserted).
    It is must faster and more scalable for the client to instruct the database (via a stored proc or package) what to do, and that code (running on the database) to process the data.
    For a stored proc, the same principle applies. It is faster for it to instruct the SQL engine what to do (via an INSERT..SELECT statement), then pulling the data from the SQL engine using a cursor fetch loop, and then pushing that data again to the SQL engine using an insert statement.
    An INSERT..SELECT can also be done as a direct path insert. This introduces some limitations, but is faster than a normal insert.
    If the data processing is too complex for an INSERT..SELECT, then pulling the data into PL/SQL, processing it there, and pushing it back into the database is the next best option. This should be done using bulk processing though in order to optimise the data transfer process between the PL/SQL and SQL engines.
    Other performance considerations are the constraints on the insert table, the triggers, the indexes and so on. Make sure that data integrity is guaranteed (e.g. via PKs and FKs), and optimal (e.g. FKs should be indexes on the referenced table). Using triggers - well, that may not be the best approach (like for exampling using a trigger to assign a sequence value when it can be faster done in the insert SQL itself). Personally, I avoid using triggers - I rather have that code residing in a PL/SQL API for manipulating data in that table.
    The type of table also plays a role. Make sure that the decision about the table structure, hashed, indexed, partitioned, etc, is the optimal one for the data structure that is to reside in that table.

  • Best way to refresh page after returning from task flow?

    Hello -
    (Using jdev 11g release 1)
    What is the best way to refresh data in a page after navigating to and returning from a task flow with an isolated data control scope where that data is changed and commited to the database?
    I have 2 bounded task flows: list-records-tf and edit-record-tf
    Both use page fragments
    list-records-tf has a list.jsff fragment and a task flow call to edit-record-tf
    The list.jsff page has a table of records that a user can click on and a button which, when pressed, will pass control to the edit-record-tf call. (There are also set property listeners on the button to set values in the request that are used as parameters to edit-record-tf.)
    The edit-record-tf always begins a new transaction and does not share data controls with the calling task flow. It consists of an application module call to set up the model according to the parameters passed in (edit record X or create new record Y or...etc.), a page fragment with a form to allow users to edit the record, and 2 different task flow returns for saving/cancelling the transaction.
    Back to the question - when I change a record in the edit page, the changes do not show up on the list page until I requery the data set. What is the best way to get the list page to refresh itself automatically upon return from the edit-record-tf?
    (If I ran the edit task flow in a popup dialog I could just use the return listener on the command component that launched the popup. But I don't want to run this in a dialog.)
    Thank you for reading my question.

    What if you have the bean which has refresh method as TF param? Call that method after you save the data. or use contextual event.

  • JPA -- Best way to refresh a List association?

    Hi,
    I need to refresh a OneToMany association.
    For example, I have two entities: Header & Detail.
    @Entity
    @Table(name="HEADERS")
    public class Header implements Serializable {
        @OneToMany(mappedBy="header")
        private List<Detail> details;
    @Entity
    @Table(name="DETAILS")
    public class Detail implements Serializable {
        @ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="HDR_ID", referencedColumnName="HDR_ID")
        private Header header;
    }So, I fetch the Header along with all its Details.
    At a later point of time, I know that some Detail rows in the database have been changed behind my back. I need to re-fetch the list of Details. What should I do?
    1. I could add a cascade parameter to the @OneToMany association. I could specify:
    @OneToMany(mappedBy="header", cascade={CascadeType.REFRESH})Then I could run:
    entityManager.refresh(header);The trouble is that, since all the Details are already in the cache, the cached entities will be returned, not the ones fetched from the database. So, I won't refresh a thing. A query will be sent to the database indeed, but I will get the cached (i.e. stale) entities. I don't know of a way to specify something like
    setHint(TopLinkQueryHints.REFRESH, HintValues.TRUE)dynamically for associations, so that the values in the cache would be replaced with the ones fetched from the database.
    2. I could try to turn off the caching for the while Entity class. The trouble is that for some reason this doesn't work (see my other question here JPA -- How can I turn off the caching for an entity? Besides, even if it worked, I don't want to turn off the caching in general. I simply want to refresh the list sometimes.
    Could anyone tell me what's the best way to refresh the association?
    Best regards,
    Bisser

    Hi Chris,
    First, let me thank you that you take the time to answer my questions. I really appreciate that. I wish to apologize for my late reply but I wasn't around the PC for a while.
    TopLink doesn't refresh an entity based on a view. I will try to explain in more detail. I hope you'll have patience with me because this might be a bit longer even than my previous post. I will oversimplify my actual business case.
    Let's assume we have two tables and a view:
    create table MASTERS
      (id number(18) not null primary key,
       master_name varchar2(50));
    create table DETAILS
      (id number(18) not null primary key,
       master_id number(18) not null,   -- FK to MASTER.ID
       price number(7,2));
    create view DETAILS_VW as
      select id, master_id, price
      from details;Of course, in real life the view is useful and actually peforms complex aggregate calculations on the details. But at the moment I wish to keep things as simple as possible.
    So, I create Entities for the tables and the view. Here are the entities for MASTERS and DETAILS_VW, only the essential stuff (w/o getters, setters, sequence info, etc.):
    @Entity
    @Table(name="MASTERS")
    public class Master {
         @Id
         @Column(name="ID", nullable=false)
         private Long id;
         @Column(name="MASTER_NAME")
         private String masterName;
         @OneToMany(mappedBy="master", fetch=FetchType.LAZY, cascade=CascadeType.REFRESH)
         private List<DetailVw> detailsVw;
    @Entity
    @Table(name="DETAILS_VW")
    public class DetailVw {
         @Id
         @Column(name="ID")
         private Long id;
         @ManyToOne(fetch=FetchType.LAZY)
         @JoinColumn(name="MASTER_ID", referencedColumnName="ID")
         private Master master;
         @Column(name="PRICE")
         private Double price;
    }So, now we have the tables and the entities. Let's assume one master row and two detail rows exist:
    MASTER:  ID=1, MASTER_NAME='Master #1'
    DETAIL:  ID=1, MASTER_ID=1, PRICE=3
    DETAIL:  ID=2, MASTER_ID=1, PRICE=8And now let's run the following code:
    // List the initial state
    Master master = em.find(Master.class, 1L);
    List<DetailVw> detailsVw = master.getDetailsVw();
    for (DetailVw dv : detailsVw) {
         System.out.println(dv);
    // Modify a detail
    EntityTransaction tx = em.getTransaction();
    tx.begin();
    Detail d = em.find(Detail.class, 2L);
    d.setPrice(1);
    tx.commit();
    // Refresh
    System.out.println("----------------------------------------");
    em.refresh(master);
    // List the state AFTER the update
    detailsVw = master.getDetailsVw();
    for (DetailVw dv : detailsVw) {
         System.out.println(dv);
    }And here are some excerpts from the console (only the essentials):
    DetailVw: id=1, price=3
    DetailVw: id=2, price=8
    UPDATE DETAILS SET PRICE = ? WHERE (ID = ?)
         bind => [1, 2]
    SELECT ID, MASTER_NAME FROM MASTERS WHERE (ID = ?)
         bind => [1]
    SELECT ID, PRICE, MASTER_ID FROM DETAILS_VW WHERE (MASTER_ID = ?)
         bind => [1]
    DetailVw: id=1, price=3
    DetailVw: id=2, price=8You see, the UPDATE statement changes the DETAILS row. The price was 8, but was changed to 1. I checked the database. It was indeed changed to 1.
    Furthermore, due to the refresh operation, a query was run on the view. But as you can see from the console output, the results of the query were completely ignored. The price was 8, and continued to be 8 even after the refresh. I assume it was because of the cache. If I run an explicit query on DETAILS_VW with the hint:
    q.setHint(TopLinkQueryHints.REFRESH, HintValues.TRUE);then I see the real updated values. But if I only refresh with em.refresh(master), then the DetailVw entities do not get refreshed, even though a query against the database is run. I have tested this both in JavaSE and in OC4J. The results are the same.
    An explicit refresh on a particular DetailVw entity works, though:
    DetailVw dvw = em.find(DetailVw.class, 2L);
    em.refresh(dvw);
    System.out.println(dvw);Then the console says:
    DetailVw: id=2, price=1So, the price is indeed 1, not 8.
    If you can explain that to me, I will be really thankful!
    Best regards,
    Bisser

  • DNS Configured-Best Practice on Snow Leopard Server?

    How many of you configure and run DNS on your Snow Leopard server as a best practice, even if that server is not the primary DNS server on the network, and you are not using Open Directory? Is configuring DNS a best practice if your server has a FQDN name? Does it run better?
    I had an Apple engineer once tell me (this is back in the Tiger Server days) that the servers just run better when DNS is configured correctly, even if all you are doing is file sharing. Is there some truth to that?
    I'd like to hear from you either way, whether you're an advocate for configuring DNS in such an environment, or if you're not.
    Thanks.

    Ok, local DNS services (unicast DNS) are typically straightforward to set up, very useful to have, and can be necessary for various modern network services, so I'm unsure why this is even particularly an open question.  Which leads me to wonder what other factors might be under consideration here; of what I'm missing.
    The Bonjour mDNS stuff is certainly very nice, too.  But not everything around supports Bonjour, unfortunately.
    As for being authoritative, the self-hosted out-of-the-box DNS server is authoritative for its own zone.  That's how DNS works for this stuff.
    And as for querying other DNS servers from that local DNS server (or, if you decide to reconfigure it and deploy and start using DNS services on your LAN), then that's how DNS servers work.
    And yes, the caching of DNS responses both within the DNS clients and within the local DNS server is typical.  This also means that there is need no references to ISP or other DNS servers on your LAN for frequent translations; no other caching servers and no other forwarding servers are required.

  • Best way to replace WSUS Server that isn't working?

    Hi, this is a followup (aka admission of defeat) to the post linked below.  Our SCCM installation was done in a hurry by one of my Coworkers about two months ago, and there are a few areas which are incomplete.   One of them happens
    to be software updates.   I have spent a great deal of time trying to troubleshoot why our clients aren't updating, and am realizing that my time might be better spent just replacing the WSUS server.
    Our setup:  All servers are hosted on Hyper-v.  SCCM 2012R2 is on server 2012R2.  The sql server runs on sql server 2012, on seperate 2012R2 machine.  WSUS is currently set up on a 2012 R2 machine, but it isn't working.  The WSUS
    server is configured to use the same SQL server instance as the SCCM server.
    If I take the step of replacing the WSUS machine, what would the best path be? Should I:
    Remove the software update point site system role as as described at the end of this document,
    http://technet.microsoft.com/en-us/library/gg712312.aspx    then just turn off the current wsus server?
    If so, do I need to worry about the SQL server, or can I just go about configuring a new WSUS server and adding it back in to SCCM?
    If anyone can point me to their favorite list of step by step instructions for getting software updates working with SCCM, I'd appreciate it.
    Thanks,
    Kevin
    My post from yesterday:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b07516e4-757e-4ba8-889f-a33374a2c370/updates-not-applying-scan-failed-with-error-0x80072efd?forum=configmanagersecurity

    Yes, Thank you!  I did reinstall WSUS on a new server, which turned out not to be the root of my problem (Although, confirming that it was done properly was worth the time). 
    After reinstalling WSUS, I was still getting the error:
    Group policy settings were overwritten by a higher authority (Domain Controller) to: Server and Policy NOT CONFIGURED WUAHandler 4/9/2014 5:43:01 PM 3344 (0x0D10)
    After a bit more searching, I found someone suggesting setting the "Allow signed updates" group policy to not configured, in addition to  the "Specify intranet Microsoft Update Service Location".
    I also read that the SCCM client will take care of most update settings, so I also set "Configure Automatic Updates", and "Turn on recommended updates via automatic updates" to Not Configured, and my Endpoint Protection began updating nicely.
    Thanks for pointing me to Gerry's site, it's a great resource!
    Thanks also for helping.
    Kevin

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • Best way to store data server side

    Our APEX (v3.1) applications use quite a bit of stored procedures to implement the business logic. What do you think is the best way to maintain some complex state on the server (where complex is anything more than a string)?
    Ideally I would like to store this pl/sql object (say "table of integer index by pls_integer") in a package variable, but I suppose that connection pooling would make that impossible. I am aware of apex_util.set_session_state() but that lets me store only varchars.
    Should I have to come up with my own serialization / deserialization methods in pl/sql to convert maps into strings? Seems pretty weak ...
    Thanks for sharing your (I'm sure) valuable insights.
    G.

    Actually quite the contrary. You would think connection pooling would not allow you to do this, but every time your package is initialized, the package state is reset. It calls dbms_session.reset_package, so you can use global variables and not have to worry about another user pulling your values.
    You can test it to confirm, but basically when you hit a page, the first time your package is called modplsql resets the session state. So you can set global variables in Process #1 after submit and use them in Process #5, but once your page is done, the next person to grab the connection will have the package reset using the same logic.

  • Best way to install oracle server + odp on same machine

    Hello,
    I've been having problems with this configuration:
    Win 2003 x64 R2
    + IIS Server
    + Oracle DataBase 10g Release 2 102010_win64_x64_database
    + 10.2.02 patchset Win2003 x64
    + ODAC 10.2.02 x64 Beta
    So far, I've installed all in the same Oracle_home.
    I get an ORA-12154 "TNS:could not resolve service name" error when running my ASP .NET application.
    Been reading in the Knowledge Base and found that there where some issues with access to bin directories from ASP applications. Tried to solve it that way but couldn't make it work.
    I'm reinstalling now, and I'm wondering if it's better to install ODP on a different ORACLE_HOME...
    Any advice?
    Thanks for your help.

    On web.config you can find this line:
    <add assembly="Oracle.DataAccess, Version=2.102.2.20, Culture=neutral,
    PublicKeyToken=89B483F429C47342"/>
    I could change this version to the one on my GAC but i cannot change the
    version inside one of the DLLs of our app.There's 2 ways to reference an assembly. One is to use web.config, which is specific to ASP.NET. When you add a reference in the VS IDE, it will create this entry in web.config for you. Or, you can hand-edit the file to create it. Of course, you might get an entry like this "by accident" if you copy from somebody else's code example.
    For library, console, Win Forms, and all other project types except ASP.NET, a reference placed within the IDE will create metadata in the assembly's manifest area.
    In all cases, you should only put a reference on the specific Oracle assembly you want to use. If the manifest or web.config are wrong, it means you referenced the wrong assembly. The manifest of an assembly can be viewed with ildasm.
    You need to be anal about developing with the same exact assemblies as the ones you will deploy with.
    Sometimes Oracle will add a "binding redirect" assemblies with new updates, and this forces all pre-existing programs to automatically use the new assemblies. I personally would like to see them document this better. This can cause a great deal of confusion because it can cause production programs to use newer assemblies than the ones you developed with. In most cases, we hope this is fine. But it flies in the face of "side-by-side" deployment and invalidates one of the key advantages of .NET.
    Eric

  • Best way to remove/add server from farm during LB testing

    Hi All,
    I've been tasked to assist dev team perform load balancing test.  There will be two servers in the server farm. What is the CLI command to toggle a server out of a server farm during the test?  Also what is the show command for verifying which server in the pool have the sessions?
    This is the test plan:
    •1.       Open sessions to each of the Test servers to verify that they are working
    •2.       Open session to the VIP for the Test environment, and identify which server has the VIP connection
    •3.       Take down server #1 (assumed) of the Test environment
    •4.       Verify that #1 server is down, and that the VIP session switched over to #2 server with minimal interruption
    •5.       (consider interfaces to other systems)
    •6.       Start new session and verify that it goes to #2 server
    •7.       Bring up #1 server and take down #2 server
    •8.       Verify that #2 session down, and both VIP sessions switched back to #1 server
    •9.       (consider interfaces to other systems)
    •10.   Bring up #2 server
    Thanks in advance,
    Adil

    Hi Adil,
    To get the server out of loadbalancing equation, you can simply go to serverfarm and do "no inservice" for the server you intend to take out or you can make the probe to fail or you can simply take the server out of serverfarm by doing "no rserver .
    Also, regarding your testing, if you have two servers to which traffic will be loadbalanced, connection failover will not happen. Existing connections would be dropped or RST(depending upon what you configure) and new connections would be sent to server 2.  Once the server 1 comes back up, the connections would again start getting loadbalanced to both servers. You cannot have failover of connections from 1 server to another in same serverfarm.
    Let me know if you have any questions.
    Regards,
    Kanwal

  • Moving InDesign packages to client via web - best way?

    I have some InDesign packages that I need to pass to my client on a regular basis. They're pretty big at about 5gb each. My client will also be passing me files before I work on them.
    I've Googled 'move big files mac' and I get a lot of options.
    http://www.sendbigfiles.com/
    http://www.yousendit.com/
    http://www.uploadbigfiles.net/
    http://www.filedropper.com/
    It seems there are a few ways of doing this. Some are just dropping one file (in this case I think I'd have to ZIP), getting a link, emailing the link to the client, and them downloading the ZIP from the link.
    Others are more structured and would allow me to have different folders for different clients. That sounds like an FTP site and use something like Transmit. I've got the demo of Transmit, but wouldn't know how to setup an FTP site. I've used FTP sites with employers before.
    Does anyone have any recommendations on the best way forward? Free and fast and easy would put a smile on my face, too.
    Many thanks.

    What sort of Internet connection are you planning to send these files over? If you have a leased line or something snazzy like SDSL, you can upload 5GB as fast as you could download it, but ADSL and cable are highly asymmetrical -- roughly one tenth the speed going upstream as down, so if you have 8Mbits per sec download, you'd be doing very well to get 1Mb per sec uploads. Quick calculation suggests it would take you over 11 hours to send each file. (Don't forget the speed is bits per sec and the file size is in bytes, if you're checking the arithmetic.) That's making some very optimistic assumptions. I'd be inclined to put a couple of DVDs in the post instead.
    But if you do want to use the Internet and have a fast upstream connection, first see if you can persuade the client to set up the FTP server. Publishers do that routinely, for example. As other people have said, setting up your own Mac as an FTP server is trivial: System Preferences>Sharing, turn on file sharing, click options, choose FTP and set up a guest account. I can't advise it though, because FTP is inherently insecure. Setting up an SFTP server on the other hand is no joke unless you have done a bit of sys admin and understand about SSL and all that.
    You should probably use one of the services people have mentioned instead, therefore. Perhaps this MobileMe thing of Apple's could handle it? I've never tried the service, but iDisk is thoroughly integrated with the system, so it would probably be the easiest to use.

  • Best way of avoiding SQL injection?

    Hey,
    I was wondering what you guys would recommend to prevent SQL injections. Now, I know that you can use the PreparedStatement and setString for cases like this:
    String userName  = request.getParameter("username");
    String sqlString = "SELECT * FROM UserTable WHERE USERNAME='" + userName ;but what can you do when you have cases like these:
    String userdef_table  = request.getParameter("userdef_table");
    String userName  = request.getParameter("username");
    String sqlString = "SELECT * FROM "+ userdef_table +" WHERE USERNAME='" + userName ;Note: userdef_table can be created by the admin so I wont know what tables are around.
    thanks,
    domet

    For Your First Question
    1) using PreparedStatement is the best way, but yes you will have to catch the Table Not Found Exception very well in case the passed table deso not exist... Thats The Only Logical Answer For your Query
    For Your Second Query
    1) Create a String variable which will have the required reflex string ie the text you would liketo have after LIKE keyword and then pass the variable to the prepare statement
    this
    ?% will not work for its wrong SQL query
    String likeThis = "%Bill%"; <or what ever>
    the Query part will be like this ".......like ?"
    setString(....,likeThis);
    Hope This Works
    Bhaskar

Maybe you are looking for