Trying to monitor database validating with vba

Hi,
i am going to try use sql query to check that data was saved in my database. and if that data not saved some message give me warning error.
thanks.

Hi Diana85,
Below is an example of how to connect to a database via VBA. This example is written in the RSWVBAPage_afterPlay event which is executed after a page has completed it's playback. The code connects to a northwind database and writes the employee first name, last name and title to the e-Tester results log.
Private Sub RSWVBAPage_afterPlay()
'This sub references Microsoft ADO 2.5 components. Select Tools-->References to enable the library
Dim conn As Connection
Dim rs As recordset
Set conn = New Connection
'Create a new connection to the database
'ODBC DSN is NorthwindSQLServer. This is the Northwind database running on SQL Server
'UserName is sa
'Password is Empirix3
conn.Open "DSN=NorthwindSQLServer", "sa", "Empirix3"
'Perform an SQL query and return the results to a recordset
Set rs = conn.execute("Select FirstName, LastName, Title from Employees")
'Loop the recordset to display FirstName, LastName and Title (actual database field names)
Do Until rs.EOF
RSWApp.WriteToLog rs("FirstName"), rs("LastName"), rs("Title")
rs.MoveNext
Loop
rs.Close
conn.Close
Set conn = Nothing
Set rs = Nothing
End Sub
I hope it helps....

Similar Messages

  • Monitoring database availability with oem

    Hello
    Regarding oracle enterprise manager 10g, Say, I want to be notified when the databese is down. (database is 10.2.0.5)
    In the rules->Availability
    I tick down.
    When I shutdown the database, I dont get an email straight away, however when I startup the database, I get an email stating that "failed to connect to database instance".
    Why didnt I get a notification when the database is down ?

    Yes you are correct. It need a configuration. Please follow the steps as below and check
    Configure OS sendmail Service
    Note: The following example is applicable to Red Hat Linux (Section A, steps 1-4).
    Please contact your System Administrator to configure sendmail for your operating system as this may vary between different platforms.
    The following steps are to be performed by the super administrator user (eg. root):
    1. Backup /etc/mail/sendmail.mc
    cp -rp /etc/mail/sendmail.mc /etc/mail/sendmail.mc.orig
    2. Edit sendmail.mc and replace:
    dnl define(`SMART_HOST',`smtp.your.provider')
    with
    define(`SMART_HOST',`<MAIL SERVER>')
    where <MAIL SERVER>: hostname of the SMTP server
    3. Rebuild sendmail configuration file:
    cd /etc/mail/
    m4 sendmail.mc > /etc/sendmail.cf
    4. As oracle user, perform test to verify mail can be sent at Operating System (OS) Level:
    mail -s "MY EMAIL TEST" "<email_address>" <press enter>
    This is a test message <press enter>
    CC: <press enter>
    5. Verify that the email has been sent ok by checking the email inbox.
    B. Configure Email Settings in Agent's emd.properties
    1. In the <OH>/sysman/config/emd.properties, add the email configuration details:
    emd_email_address=<Email address of the user, to whom the mail needs to be sent>
    emd_email_gateway=<SMTP gateway details>
    emd_from_email_address=<a fictitious 'From' email address that will be shown in the email, to uniquely identify the email>
    For example:
    emd_email_address: [email protected]
    emd_email_gateway:foo.uk
    emd_from_email_address: agent@dbmachine
    2. Comment the following lines in <OH>/sysman/config/emd.properties, if they exist:
    # emd_email_address=_NOT_AVAILABLE_
    # emd_email_gateway=_NOT_AVAILABLE_
    # emd_from_email_address=_NOT_AVAILABLE_
    Edited by: mnazim on Feb 24, 2011 2:47 AM

  • How do i show a popup in an OA Pageon the basis of some database validation

    Hi All
    I need to show a popup message on the click of a button.
    On the click of the button I have to submit the page and do some database validation with the data entered by the user on that page.
    Depending on the validation I have to give a popup which will have a value that is fetched from tha database.
    I can show a popup by writing the below given code in the processRequest of my CO
    OASubmitButtonBean registerbutton = (OASubmitButtonBean)oawebbean.findChildRecursive("RegisterButton");
    registerbutton.setOnClick("alert('show an alert')");
    But I cannot perform the database validation(using a stored procedure) in the processRequest.
    I am performing the validation in the processFormRequest
    Also I am not able to show the value fetched from the database in the popup using the above alert.
    Please send me the code.
    Thanks in advance.
    Regards
    Meenal

    okay so the popup window would be some information window, where the user, maybe after reviewing the information presses close and closes the window.
    i would do this using PPR, have a small content region or some other small region(which supports PPR), which would showup in some section of the screen when the user performs the desired action, and have a close button in the region, pressing close would fire PPR again and hide this region.
    There maybe variety of solutions such as this depending on the requirement.
    Thanks
    Tapash

  • Entity validation with groovy expression

    Hi,
    I'm using jdeveloper 11.1.2.3.0
    I have an entity object with two attributes "status" and "reason".
    Only in case the user select status id "4" I would like to validate that he will select also reason.
    for this I was trying to add entity validation with groovy expression.
    so I added this expression "Status== 4 && Reason == null" and also I added failure message.
    But it doesn't work as I expected.
    The error is displayed every time, also when the user select status that is not 4 and also when he select status 4 and the reason is not null.
    How should I write this groovy expression?
    Thanks

    Just to clarify,
    If you add this validation to your status attribute then it will validate that Reason is not null when you change the status to 4.
    If you want to raise an entity validation just add a new Entity Validator and the expression should be something like what you had:
    But slightly different
    Status != null ? (Status==4? (Reason!=null) : true) : true

  • Monitor Biztalk 2013R2 with SCOM 2012SP1 : Is it possible ?

    Hello !
    We're testing Biztalk 2013R2 and trying to monitor Biztalk 2013R2 with SCOM but without success (No Problem with Biztalk 2013).
    Maybe someone can help us !!
    Thank you
    Jérémy

    Because BizTalk and SCOM are different teams :) likewise BizTalk & SQL /Windows are different teams. When SQL released their 2014, they have not released update for BizTalk 2013.
    BizTalk team has to catch up the latest version of SQL or other its underlying software's version upgrade. BizTalk 2013 R2 is mostly a platform upgrade to make it compactable with other underlying softwares like SQL,Windows.
    Similarly SCOM team will catch with BizTalk's release by either releasing the newer supported version of MP for 2013 R2 or it would make a official announcement soon.
    But what you could expect is atleast an official word from BizTalk saying either BizTalk 2013 R2 would either work or not work with SCOM-MP, which is not the case :(
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Monitoring Multilink PPP with Analyzer

    I am trying to monitor MPPP link with fragmentation and interleaving
    using Agilent WAN Advisor(latest v.15.0), but it seems this box can not decode fragmented PPP, so I have no visibility and right statistics of the link
    and layers 3&4. Does anybody has any idea how to get this working, Agilent
    Support has been not too much helpful till now.
    Alternatively, does anybody knows any WAN Analyzer able to do this.
    It would be also great if it would be able to decode cRTP.

    I believe that sniffervoice will do this:
    http://www.sniffer.com/products/sniffer-voice/default.asp?A=2
    as will W&G domino:
    http://www.eetchina.com/ARTICLES/2001SEP/PDF/2001SEP18_NTES_AN1734.PDF

  • OAM:Database Validation Failed While Trying to Add New RDBMS Profile

    It's about DB connection with OAM 10.1.4 through OCI in Windows Server 2003.
    The error in OAM identity console: Database Validation Failed
    The error in OAM component logs: TNS:could not resolve the connect identifier specified%0a Error Code from OCIErrorGet^12154
    My working environment is 'Integrated IDM 10.1.4' downloaded in FF, the following is its description:
    This image is based off the OIM 9.0.3 image built by Sanjay Rallapalli. The underlying environment on which the image is built includes the following component and any associated user name/password combinations:
    Windows 2003 Active Directory (Administrator/abcd1234)
    Exchange 2003 (Administrator/abcd1234)
    Sun One Directory Server (cn=Directory Admin/abcd1234)
    Microsoft IIS
    Microsoft Certificate Authority
    Tomcat J2SE Server
    The image also includes a number of Oracle components including:
    Oracle DB 10G (sys, system/abcd1234)
    Oracle OC4J (http://ten.mydomain.com:7777/em oc4jadmin/abcd1234)
    Oracle Identity Manager (xelsysadm/xelsysadm)
    Oracle Virtual Directory (cn=admin/abcd1234)
    Oracle Access Manager (Administrator/abcd1234)
    Owner: Michael Terra     Creation Date: 24-JUL-08     Rating: Not Rated
    VM OS: Windows Server 2003     
    It seems an old problem as there are many articles in metalink treating it.
    Although I tried every solution proposed by metalink, I still get my 'Database Validation Failed'. I have restarted my system and rechecked in metalink several times.
    I'd like to know is there anyone who has successfully configured OAM connecting with Oracle DB through OCI in Windows? Could you tell me is there anything special I have to do? Thanks a lot.

    Hi All,
    I am trying to configure the audting for OAM 10.4.0.1 with OID as user store/Policy store. My oracle DB (10.1.0.5.0--comes bundled with OID) is on same host.
    I am trying to configure the audit database in OCI mode as there is some issue with installation of ODBC driver that i was not able to resolve.
    While creating RDBMS profile i am also getting the same error *"Database validation failed*" and in identity server logs stated as "*SqlAdapter Error OCIerrormap cpp:53 'OCI failed to create environment variable' method^OCI Adapter::OCI Adapter ociRetcode^ OCIError"*
    Does anyone able to successfully configure the audit database with same environment or let me know where i am missing or additional steps required.
    Thanks in advance!

  • HT4293 i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!

    i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!

    <http://support.apple.com/kb/HT5891>
    You can use USB for the Apple trackpad.
    <http://www.mobeetechnology.com/the-power-bar.html>

  • I want to create a login form by using servlets with database validation.

    Would you please provide me a code for a login form using servlets with Ms Access database validation?

    No. This is not a free coding service. Your request is (a) ridiculous, (b) offensive, and (c) off-topic. Locking this thread for later deletion.

  • I'm trying to purchase iTunes Match with my prepaid credit card.  It's actually a one vanilla Visa card.  It's not working is there anyway around not having to have a valid credit card.

    I'm trying to purchase iTunes Match with my prepaid credit card.  It's actually a one vanilla Visa card.  It's not working is there anyway around not having to have a valid credit card.

    Valid methods of payment vary from country to country.  Which country?

  • While trying to change a BOM with transaction CS02, a runtime error appears

    While trying to change a BOM with transaction CS02, a runtime error appears.
    In intial screen he entered material ,plant BOM usage and date valid from  after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
    Developer trace
    ABAP Program SAPLKED1_WRITE_CE4_BPS1                 .
    Source LKED1_WRITE_CE4_BPS1U01                  Line 30.
    Error Code SAPSQL_ARRAY_INSERT_DUPREC.
    Module  $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
    Function HandleRsqlErrors Line 775.
    RABAX: level LEV_RX_STDERR completed.
    RABAX: level LEV_RX_RFC_ERROR entered.
    RABAX: level LEV_RX_RFC_ERROR completed.
    RABAX: level LEV_RX_RFC_CLOSE entered.
    RABAX: level LEV_RX_RFC_CLOSE completed.
    RABAX: level LEV_RX_IMC_ERROR entered.
    RABAX: level LEV_RX_IMC_ERROR completed.
    RABAX: level LEV_RX_DATASET_CLOSE entered.
    RABAX: level LEV_RX_DATASET_CLOSE completed.
    RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    RABAX: level LEV_RX_ERROR_SAVE entered.
    RABAX: level LEV_RX_ERROR_SAVE completed.
    RABAX: level LEV_RX_ERROR_TPDA entered.
    RABAX: level LEV_RX_ERROR_TPDA completed.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    RABAX: level LEV_RX_END entered.
    RABAX: level LEV_RX_END completed.
    RABAX: end RX_RFC
    In sm21
    Perform rollback
    Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
         Short dump "090618 110101 donalda 11557 " generated
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     18.06.2009 at   11:01:01
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
    one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "RKE_WRITE_CE4__BPS1" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "RKE_WRITE_CE4__BPS1"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Use an ABAP/4 Open SQL array insert only if you are sure that none of
    the records passed already exists in the database.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
    "SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
    "RKE_WRITE_CE4__BPS1"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi ,
    you are getting beacuse u are trying to do mass update to database.
    Please check that below note are applicable to your system.
    Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
    Note 869534 - AFS MRP doesn't work properly with all BOM item categories
    Thanks Rishi Abrol

  • Trying to monitor db connections in Tomcat

    All,
    Not sure if I am posting in the right place, as this problem of mine seems to cover a couple of different forum topics, but I figured since its database connections I'm trying to monitor, I'd post here.
    My desire is this... I'd like to monitor all of the connections within the connection pools for each of the deployed web apps on my Tomcat 5.0.16 (Wintel W2K) server.
    I can do this easily enough within each web app, but I would really like to have one web app that monitors all of the deployed apps on the server.
    I started out by trying to leverage Tomcat's manager application. I created a new servlet (called "ConnMonServlet") within the \server\webapps\manager\WEB-INF\classes\org\apache\catalina directory which extends the ManagerServlet. When I access the servlet with the url, "http://localhost:8080/manager/connmon", I am able to get a list of all of the deployed web apps. I am also able to get information out of each web app's web.xml (from the <env-entry>).
    With this, I am trying to create a BasicDataSource (we use the latest versions of commons-dbcp and commons-pool located within the \common\lib directory), then use it to get the number of active connections and the number of idle connections.
    My problem comes in trying to get the BasicDataSource through "normal" means, which is...
    InitialContext initCtx = new InitialContext();
    javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup("java:comp/env");
    String dsName = "jdbc/raptor";
    BasicDataSource ds = (BasicDataSource) initCtx.lookup(dsName);I get the error, "javax.naming.NameNotFoundException: Name jdbc is not bound in this Context". This works fine within each web app. Is there some way to get the context for the app I'm interrogating?
    I'm just not sure if I am going about this the right way. As I go through the loop of deployed web apps, I just want to get a snapshot at that time of the number of connections both idle and active. I have posted the servlet's code below (it's still very rough).
    I have spent the better part of two days trying to get something working, and I keep hitting a wall at trying to get a BasicDataSource for the deployed web app I'm looking at in the loop. Any help anyone could provide would be greatly appreciated.
    package org.apache.catalina;
    import org.apache.catalina.deploy.ContextEnvironment;
    import org.apache.catalina.manager.ManagerServlet;
    import org.apache.commons.dbcp.BasicDataSource;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.IOException;
    //import java.util.Hashtable;
    import java.util.Iterator;
    import java.util.TreeMap;
    public class ConnMonServlet extends ManagerServlet{
        public ConnMonServlet(){
        public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException{
            doPost(req, res);
        public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException{
            System.out.println("Inside of ConnMonServlet...");
            String contextPaths[] = deployer.findDeployedApps();
            TreeMap sortedContextPathsMap = new TreeMap();
            for(int i = 0;i < contextPaths.length;i++){
                String displayPath = contextPaths;
    sortedContextPathsMap.put(displayPath, contextPaths[i]);
    Iterator iterator = sortedContextPathsMap.entrySet().iterator();
    do{
    if(!iterator.hasNext())
    break;
    java.util.Map.Entry entry = (java.util.Map.Entry) iterator.next();
    String displayPath = (String) entry.getKey();
    String contextPath = (String) entry.getKey();
    Context context = deployer.findDeployedApp(contextPath);
    if(displayPath.equals(""))
    displayPath = "/";
    if(context != null){
    System.out.println(context.getDisplayName());
    System.out.println(context.getDocBase());
    System.out.println(context.getName());
    System.out.println(context.getPath());
    String s[] = context.findParameters(); // gets <context-param> entries out of web.xml
    for(int i = 0;i < s.length;i++){
    System.out.println(">>> " + s[i]);
    ContextEnvironment[] ce = context.findEnvironments();
    //Hashtable ht = new Hashtable();
    for(int i = 0;i < ce.length;i++){
    System.out.println(">>>>>> " + ce[i].getName()); // returns "dsName" from web.xml
    System.out.println(">>>>>> " + ce[i].getDescription()); // retunr null, as there is no description
    System.out.println(">>>>>> " + ce[i].getType()); // returns "java.lang.String"
    System.out.println(">>>>>> " + ce[i].getValue()); // returns "java:comp/env/jdbc/raptor"
    //ht.put(javax.naming.Context.PROVIDER_URL, "t3://localhost:8080");
    System.out.println(" " + displayPath);
    System.out.println(" " + contextPath);
    try{
    if(!"".equals(contextPath)){
    //InitialContext initCtx = new InitialContext(ht);
    InitialContext initCtx = new InitialContext();
    javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup("java:comp/env");
    String dsName = "jdbc/raptor";
    BasicDataSource ds = (BasicDataSource) initCtx.lookup(dsName); //@TODO - receiving error javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
    //BasicDataSource ds = (BasicDataSource) initCtx.lookup("java:comp/env/jdbc/raptor");
    System.out.println(">>>> maxActive = " + ds.getMaxActive());
    //javax.naming.Context envCtx = (javax.naming.Context) context.getManager().getDefaultContext();
    } catch(NamingException e){
    e.printStackTrace();
    } while(true);
    Thank you!!!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Very elegant response. I do appreciate the information. It is kinda amusing to think OC4J is the only "certified" app server. One of the touted benefits of portal is that it is "100% Pure J2EE Compliant..." :0) *(insert good laugh)* Seems like Oracle would be inclined to make this information more obvious (about the provider requirements), since there are soooo many app servers out there that could host portlets. I can't see how providing 'alternative, unsupported configuration docs' could hurt.
    Either way, it's no skin off my back, just a little wasted time. I will check out this 'pdksoftware.zip' and see what it gives me. I have a feeling it's the same JAR's I managed to wrangle off the PDK and server, but it's nice to know for recreating a dev environment. (And the demo I'm doing tomorrow)
    Honestly, my Netbeans / Tomcat portlet development environment is very splendid! I must say, that making a change in my 'Renderer' class and having the changes appear immediately in our development portal is a very VERY good thing. (we're talkin 5 second turnaround here) The only change that requires any kind of 'reloading' is when I change my provider.xml. Just need to 'reload' the provider, and all is good again.
    A year ago, there was a serious bug in JDev / OC4J in which the auto class reload feature simply did not work. I had this confirmed with a TAR. Hence the abandonment of JDev. Needless to say, I've been a very open-standards kinda person. May as well mention, JDev was too slow and painful to use for the kind of development I like. Maybe it's better now. Who knows.
    As my team and I slowly shuffle the moving parts of Portal, you will surely see more of my posts. Thanks again for the help!
    Cheers!
    -Sean

  • David Powers --- Regarding form validation with dreamweaver behaviors

    I am in the chapter teaching about form validation with the Zend Framework. I have done the entire lesson with the lesson files and everything works perfectly...
    but I went back to use the form valdation techniques for my own site and it is not working properly. In the book, Chapter 6 teaches how to create a user login and editing the database through the site. But in chapter seven the form validation does not build on top of this and therefore does not teach how to integrate the form validation with the registered user already set up.
    I have user registration completly working on my site and everything runs fine. I am trying to add the form validation but it is all completly ignored. When I leave a field blank it simply takes me to another blank page that reads "Column 'first_name' cannot be null"
    here is index.php code...
    <?php require_once('Connections/CSSU_Write.php'); ?>
    <?php require_once('Connections/CSSU_Read.php'); ?>
    <?php require_once('script/user_registration.php');
    ?>
    <?php
    if (isset($_POST['password'])) {
              $_POST['password'] = sha1($_POST['password']);
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO sign_up (first_name, family_name, user_email, password, gender, bday_month, bday_day, bday_year) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['last_name'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['gender'], "text"),
                           GetSQLValueString($_POST['bday_month'], "text"),
                           GetSQLValueString($_POST['bday_day'], "text"),
                           GetSQLValueString($_POST['bday_year'], "text"));
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $Result1 = mysql_query($insertSQL, $CSSU_Write) or die(mysql_error());
      $insertGoTo = "login.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['email'])) {
      $loginUsername=$_POST['email'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "logoOutRedirect.php";
      $MM_redirectLoginFailed = "logoOutRedirect.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $LoginRS__query=sprintf("SELECT user_email, password FROM sign_up WHERE user_email=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $CSSU_Write) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>CSSU</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header">
      <div class="logo">
                <a href="index.php">
                  <h1/>
            .CSSU { UNIVERSITY; }
            </h1>
            <h2>
            <code><<code>!</code>-- Learn/Apply/Master --></code>
            </h2>
        </a>
      </div> 
        <!-- end .header --></div>
        <div class="headerBar">
        <div id="nav">
                  <ul id="links">
                      <a href="#"><li>CSSU</li></a>
                      <a href="#"><li>Classes</li></a>
                      <a href="#"><li>Pricing</li></a>
                      <a href="#"><li>Degree</li></a>
                  </ul>
        </div>
        <form name="form2" method="POST" action="<?php echo $loginFormAction; ?>" class="form2">
        <p>
            <label for="email" id="email" class="loginLabel">Email:</label>
            <input type="email" name="email" class="loginField" />
            <label for="password" id="password" class="loginLabel">Password:</label>
            <input type="password" name="password" class="loginField" />
                  <input type="submit" value="Log In" name="submit" class="submit login" />
        </p>
        </form>
        </div>
      <div class="container2">
      <div class="sidebar1">
        <h1>Sign Up</h1>
        <h2>Earn an Official CSS Masters Certification!</h2>
        <table>
        <form name="form1" method="POST" action="<?php echo $editFormAction; ?>" class="form1">
        <tr >
            <td class="formLabel"><label for="firstName" id="firstNameLabel" >First Name:</label>
                      <span>
                         <?php
                                  if ($_POST && isset($errors['first_name'])) {
                                            echo $errors['first_name'];
                                  ?>
                </span>
            </td>
            <td><input type="text" name="first_name" class="inputField" id="firstName" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="lastName" id="lastName" >Last Name:</label></td>
            <td><input type="text" name="last_name" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail" id="yourEmail" >Your Email:</label></td>
            <td><input type="user_email" name="email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail2" id="yourEmail2">Re-enter Email:</label></td>
            <td><input type="email" name="reEnter_email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="password" id="password">New Password:</label></td>
            <td><input type="password" name="password" class="inputField" /></td>
        </tr>   
        <tr>
            <td class="formLabel"><label for="gender" id="gender" class="formLabel">I am:</label></td>
          <td><select name="gender" class="selectMenu selectMenu1 gender">
              <option value="select">Select Sex:</option>
              <option value="male" name="male">Male</option>
              <option value="female" name="female">Female</option>
                        </select>
          </td>
              </tr>
               <tr>
            <td class="formLabel"><label for="bday">Birthday:</label></td>
               <td>
            <select name="bday_month" class="selectMenu selectMenu1 bday">
              <option value="male">Month:</option>
              <option value="January">January</option>
            </select>
    <select name="bday_day" class="selectMenu bday">
              <option value="Day">Day:</option>
              <option value="1">1</option>
                        </select>
    <select name="bday_year" class="selectMenu bday">
              <option value="Year">Year:</option>
            </select>
         </td>
        </tr>
        <tr>
                  <td class="submitTd" colspan="2"><input type="submit" value="Sign Up" name="submit" class="submit signup" /><td>
        </tr>
        <input type="hidden" name="MM_insert" value="form1" />
        </form>
        </table>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <h1>CSSU</h1>
        <!-- end .content --></div>
      <div class="footer">
        <!-- end .footer --></div>
        </div> <!-- end container2 -->
      <!-- end .container --></div>
    </body>
    </html>
    And here is user_registration.php code just for the first_name field...
    <?php
    $errors = array();
    if ($_POST) {
      // run the validation script
      require_once('library.php');
      try {
              // main script goes here
              $val = new Zend_Validate_Regex('/^[a-z]+[-\'a-z ]+$/i');
              if (!$val->isValid($_POST['first_name'])) {
                $errors['first_name'] = 'Required field, no numbers';
      } catch (Exception $e) {
              echo $e->getMessage();
    And from here, here is the library.php code....
    <?php
    $library = '.../html/zend/library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
      $write = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      $read  = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      // Comment out the next two lines if using mysqli
      // and remove the comments from the last two lines
      $dbWrite = new Zend_Db_Adapter_Pdo_Mysql($write);
      $dbRead = new Zend_Db_Adapter_Pdo_Mysql($read);
      //$dbWrite = new Zend_Db_Adapter_Mysqli($write);
      //$dbRead = new Zend_Db_Adapter_Mysqli($read);
    } catch (Exception $e) {
              echo $e->getMessage();
    I replaced some code here to protect myself, but the library.php file is completely functional and has been tested... I am sure the problem ins't in here.
    Please let me know if you need any further code to help you out. I am brand new to PHP and so far everything has ran smoothly up til now. I have my Zend Framework uploaded to my server and tested that my site is connecting to it properly. Any help on this would be so so awesome! This is for a school project and I can't move on until this is resolved! Thank you so much for trying!
    You can also view the issue at my website... all the files have been uploaded to the server. www.CSSU.com

    I am in the chapter teaching about form validation with the Zend Framework. I have done the entire lesson with the lesson files and everything works perfectly...
    but I went back to use the form valdation techniques for my own site and it is not working properly. In the book, Chapter 6 teaches how to create a user login and editing the database through the site. But in chapter seven the form validation does not build on top of this and therefore does not teach how to integrate the form validation with the registered user already set up.
    I have user registration completly working on my site and everything runs fine. I am trying to add the form validation but it is all completly ignored. When I leave a field blank it simply takes me to another blank page that reads "Column 'first_name' cannot be null"
    here is index.php code...
    <?php require_once('Connections/CSSU_Write.php'); ?>
    <?php require_once('Connections/CSSU_Read.php'); ?>
    <?php require_once('script/user_registration.php');
    ?>
    <?php
    if (isset($_POST['password'])) {
              $_POST['password'] = sha1($_POST['password']);
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
      $insertSQL = sprintf("INSERT INTO sign_up (first_name, family_name, user_email, password, gender, bday_month, bday_day, bday_year) VALUES (%s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['first_name'], "text"),
                           GetSQLValueString($_POST['last_name'], "text"),
                           GetSQLValueString($_POST['email'], "text"),
                           GetSQLValueString($_POST['password'], "text"),
                           GetSQLValueString($_POST['gender'], "text"),
                           GetSQLValueString($_POST['bday_month'], "text"),
                           GetSQLValueString($_POST['bday_day'], "text"),
                           GetSQLValueString($_POST['bday_year'], "text"));
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $Result1 = mysql_query($insertSQL, $CSSU_Write) or die(mysql_error());
      $insertGoTo = "login.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['email'])) {
      $loginUsername=$_POST['email'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "logoOutRedirect.php";
      $MM_redirectLoginFailed = "logoOutRedirect.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_CSSU_Write, $CSSU_Write);
      $LoginRS__query=sprintf("SELECT user_email, password FROM sign_up WHERE user_email=%s AND password=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $CSSU_Write) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
              if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;               
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>CSSU</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="container">
      <div class="header">
      <div class="logo">
                <a href="index.php">
                  <h1/>
            .CSSU { UNIVERSITY; }
            </h1>
            <h2>
            <code><<code>!</code>-- Learn/Apply/Master --></code>
            </h2>
        </a>
      </div> 
        <!-- end .header --></div>
        <div class="headerBar">
        <div id="nav">
                  <ul id="links">
                      <a href="#"><li>CSSU</li></a>
                      <a href="#"><li>Classes</li></a>
                      <a href="#"><li>Pricing</li></a>
                      <a href="#"><li>Degree</li></a>
                  </ul>
        </div>
        <form name="form2" method="POST" action="<?php echo $loginFormAction; ?>" class="form2">
        <p>
            <label for="email" id="email" class="loginLabel">Email:</label>
            <input type="email" name="email" class="loginField" />
            <label for="password" id="password" class="loginLabel">Password:</label>
            <input type="password" name="password" class="loginField" />
                  <input type="submit" value="Log In" name="submit" class="submit login" />
        </p>
        </form>
        </div>
      <div class="container2">
      <div class="sidebar1">
        <h1>Sign Up</h1>
        <h2>Earn an Official CSS Masters Certification!</h2>
        <table>
        <form name="form1" method="POST" action="<?php echo $editFormAction; ?>" class="form1">
        <tr >
            <td class="formLabel"><label for="firstName" id="firstNameLabel" >First Name:</label>
                      <span>
                         <?php
                                  if ($_POST && isset($errors['first_name'])) {
                                            echo $errors['first_name'];
                                  ?>
                </span>
            </td>
            <td><input type="text" name="first_name" class="inputField" id="firstName" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="lastName" id="lastName" >Last Name:</label></td>
            <td><input type="text" name="last_name" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail" id="yourEmail" >Your Email:</label></td>
            <td><input type="user_email" name="email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="yourEmail2" id="yourEmail2">Re-enter Email:</label></td>
            <td><input type="email" name="reEnter_email" class="inputField" /></td>
        </tr>
        <tr>
            <td class="formLabel"><label for="password" id="password">New Password:</label></td>
            <td><input type="password" name="password" class="inputField" /></td>
        </tr>   
        <tr>
            <td class="formLabel"><label for="gender" id="gender" class="formLabel">I am:</label></td>
          <td><select name="gender" class="selectMenu selectMenu1 gender">
              <option value="select">Select Sex:</option>
              <option value="male" name="male">Male</option>
              <option value="female" name="female">Female</option>
                        </select>
          </td>
              </tr>
               <tr>
            <td class="formLabel"><label for="bday">Birthday:</label></td>
               <td>
            <select name="bday_month" class="selectMenu selectMenu1 bday">
              <option value="male">Month:</option>
              <option value="January">January</option>
            </select>
    <select name="bday_day" class="selectMenu bday">
              <option value="Day">Day:</option>
              <option value="1">1</option>
                        </select>
    <select name="bday_year" class="selectMenu bday">
              <option value="Year">Year:</option>
            </select>
         </td>
        </tr>
        <tr>
                  <td class="submitTd" colspan="2"><input type="submit" value="Sign Up" name="submit" class="submit signup" /><td>
        </tr>
        <input type="hidden" name="MM_insert" value="form1" />
        </form>
        </table>
        <!-- end .sidebar1 --></div>
      <div class="content">
        <h1>CSSU</h1>
        <!-- end .content --></div>
      <div class="footer">
        <!-- end .footer --></div>
        </div> <!-- end container2 -->
      <!-- end .container --></div>
    </body>
    </html>
    And here is user_registration.php code just for the first_name field...
    <?php
    $errors = array();
    if ($_POST) {
      // run the validation script
      require_once('library.php');
      try {
              // main script goes here
              $val = new Zend_Validate_Regex('/^[a-z]+[-\'a-z ]+$/i');
              if (!$val->isValid($_POST['first_name'])) {
                $errors['first_name'] = 'Required field, no numbers';
      } catch (Exception $e) {
              echo $e->getMessage();
    And from here, here is the library.php code....
    <?php
    $library = '.../html/zend/library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
      $write = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      $read  = array('host'     => 'hostname',
                                             'username' => 'cssu',
                                             'password' => 'password',
                                             'dbname'   => 'cssu');
      // Comment out the next two lines if using mysqli
      // and remove the comments from the last two lines
      $dbWrite = new Zend_Db_Adapter_Pdo_Mysql($write);
      $dbRead = new Zend_Db_Adapter_Pdo_Mysql($read);
      //$dbWrite = new Zend_Db_Adapter_Mysqli($write);
      //$dbRead = new Zend_Db_Adapter_Mysqli($read);
    } catch (Exception $e) {
              echo $e->getMessage();
    I replaced some code here to protect myself, but the library.php file is completely functional and has been tested... I am sure the problem ins't in here.
    Please let me know if you need any further code to help you out. I am brand new to PHP and so far everything has ran smoothly up til now. I have my Zend Framework uploaded to my server and tested that my site is connecting to it properly. Any help on this would be so so awesome! This is for a school project and I can't move on until this is resolved! Thank you so much for trying!
    You can also view the issue at my website... all the files have been uploaded to the server. www.CSSU.com

  • Cube Validation - with Direct I/O

    Hi Team,
    Could you provide the information on below:
    Can we perform the cube validation with Direct I/O?
    What will be the impact w.r.t memory?Thanks,
    SK.

    Can we perform the cube validation with Direct I/O?^^^Why would you think you could not?
    What will be the impact w.r.t memory?^^^Is this a question to a test? Try it. I would imagine that if the db wasn't loaded, it would load it. That would use memory. As it validated I would guess that it would fill the data file cache. That would use memory. I honestly don't know but if I were super afraid that I would eat all the memory on my server when I ran a cube validation I would try it on very small database and see what happens.
    Sorry to be snippy, but for goodness' sake, this is such an easy thing to try and test. You can get the memory information directly from the server or via EAS and of course MaxL will tell you that can or cannot validate a Direct I/O database.
    Regards,
    Cameron Lackpour
    P.S. Also, while I hardly expect to be rewarded after the above, you might think about marking your (15 as of the writing of this post) questions as answered if indeed they are and assigning points to those who have helped you.
    P.P.S. 811829, I'm sorry if I am getting snippy, but I have noticed a series of open-ended questions on this board that, while the sign of someone who wants to learn stuff, also suggests that you are not trying these things out yourself. Go on and try, Essbase won't bite. :)

  • I have 12 core with Quatro 4000 and 5770, I want to use dual monitor setup, monitors are NEC with Spectraview-II.  How do I connect?  4000 only has 1 Display Port and 1 DVI.  5770 has 2 of each, if I use both 5770 Display Ports, does the 4000 contribute?

    I just bought a 12 core with Quatro 4000 and 5770, I want to use dual monitor setup, monitors are NEC with Spectraview-II.  How do I connect?  4000 only has 1 Display Port and 1 DVI.  5770 has 2 of each, if I use both 5770 Display Ports, does the 4000 contribute any work at all?  I read where on a PC they would work together, but on a MAC they do not.
    I read that Display Port has higher band width than DVI, NEC monitors for best performance they recommend using DIsplay Port.
    When I was setting this up I looked at a Nvidia Quadro 4000, unfortunately it was for PC, it had 2 Display Ports, in the Mac version they reduce it to one.  I did not think there could be a difference.
    Mainly want to use it for CS6 and LR4.
    How to proceed??? 
    I do not want to use the Quadro 4000 for both, that would not optimize both monitors, one DP and 1 DVI.  Using just the 5770 would work but I do not think the 4000 would be doing anything, and the 5770 has been replaced by the 5870.more bandwidth.
    Any ideas, I am a Mac newbie, have not ever tried a Mac Pro, just bought off ebay and now I have these problems.
    As a last resort I could sell both and get a 5870.  That would work, I'm sure of that, it's just that I wanted the better graphics card.
    Thanks,
    Bill

    The Hatter,
    I am a novice at Mac so I read all I can.  From what I understand the NEC monitors I bought require Display Port for their maximum performance.  The GTX 680 only has DVI outputs.  Difference from what I understand is larger bandwidth with the DP.
    You said I have the 4000 for CUDA.  I am not all that familiar with CUDA and when I do read about it I do not understand it. 
    A concern I have is, that if I connect the 2 high end NEC monitors via the 5770, using it's 2 Display Ports I would have nothing connected to the 4000.  Is the 4000 doing anything with nothing connected?  I read where in a PC system the 2 cards would interact but in a Mac system they do not.
    Bottom line, as I see it, the 4000 will not be useful at all to me, since I want a dual monitor set-up.
    So far the 5870 seems the best choice, higher band width than the 5770, and it has 2 Display Ports to optimize the NEC monitors.
    I'm not sure how fine I am splitting hairs, nor do I know how important those hairs are.  I am just trying to set up a really fast reliable system that will mainly be used for CS6 and LR4.  Those NEC monitors are supposed to be top notch.

Maybe you are looking for

  • Generate XML file from RFC using Web Services

    Hi,   I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services. I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service

  • My screen is all white

    anybody know wy my screen is all white ?

  • Boot camp restart from Winblow to Leopard not good.

    Ever since upgrading to leopard from Tiger, whenever I try to restart from Winblows to Leopard using boot camp, the screen goes black on the start up side and nothing happens. The only way is to Leopard is to completely shut down then restart. From M

  • Does anyone an issue with the new music app force closing?

    So I got the new iPhone 4S and i'm trying to go through all of my albums by using Cover Flow. And then probably around half way through the screen lags and then force closes the app taking me back to the home screen. Any suggestions on what I should

  • Can't turn off phone to reseat battery

    I noticed this morning that my Pre although plugged in was not charging: although the charging icon was on, battery strength was dropping and dropping. I assumed I needed a new battery (present one is a year old), but I thought that I'd try taking ou