Crystal 8.5 - General SQL Error

I am using Crystal 8.5.  I'm writing a report with 4 tables.  If they are all equal joins, it works fine.  When I change the join between the first two tables to left outer join (which is what I need), I get the errors:  General SQL Errorr, Error detected by database DLL.  I found some documentation on this problem at Crystal Decisions.  It tells me to download ODBCregs.zip from their downloads.  It is no longer listed there.  Does anyone know where I can find it or how to resolve this problem.
Thanks.

Use the link below and navigate to the end of page:
http://adc.exactsoftware.com/docs/DocView.aspx?DocumentID=%7B2ed0c56b-25cd-4b9e-ae9b-bfaa35d24d4e%7D
Functions are the same for each version of CR. Just extrapolate to the new versions registry structure

Similar Messages

  • How do you capture real detail of sql errors in crystal viewer of CR2008

    How do you captue the further details of an sql error when running a report in Crystal 2008 viewer (within a software application)? I get a 'failed to retrieve data from database. Details: Database Vendor Code: -nnnn' error where nnn is a number like 210074. If I run the same .rpt directly thru crystal I get a failed to retrive rowset. Then after choosing ok on that message  I get another message with more details and this time (in this particular case) it happens to be 'Column XXXXX cannot be found in database or is not specified for query. Other times it could be something about excedding max length/precison, etc..
    We recently switched from using the RDC CR10 to this new .net viewer way. With the RDC it gave us the 'meaningful" message so we could tell what was wrong. Using this new method it does not. Is there a setting for showing more detail or some coding that would give me the real message detail using cr2008?
    Don't know if it matters but in this case it is a Progress database.

    Hello,
    Back in the RDC days we manually added a lot of code to capture the exception info. When CR was re-written in 9 we removed all custom "fixes" and error handling, we basically said any ANSII 92 standards rule apply. We just pass what the client gives us.
    What this means is we dynamically pass the exception from the client to CR and interpret what we can or we simply pass the error code to the error UI.
    What you can do is to use a try/catch block and create your own error table according to Progress Error codes to pass on a more meaningful message to your users.
    We won't due to the vast amount of errors possible and the vast amount of DB clients we would have to maintain. If the client doesn't pass meaningful info onto CR then we just pass it's error onto the the end user.
    Thank you
    Don

  • [Oracle][ODBC SQL Server Driver][libssclient22]General network error

    I am using oracle gateway (11.1) for sqlserver on Linux platform with Oracle Server 10g.
    I am getting following error when i run any select query:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][libssclient22]General network error. Check your network documentation.[Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen (connect()).[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
    ORA-02063: preceding 2 lines from SQLSERVER
    Another thing is, i have created a ODBC DSN named as "sqlserver" as well. This configuration works fine when "program" parameter is set to dg4odbc in Listener.ora. But with dg4msql, it gives error.
    Followings are the configuration files:
    initsqlserver.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=database_machine:1433//test_master
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    listener.ora
    SID_LIST_sqlserver =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = sqlserver)
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0.6.0/gateway)
    (PROGRAM = dg4msql)
    sqlserver =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Server_Machine )(PORT = 1522))
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    tnsnames.ora
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Server_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    (HS = OK)
    )

    Hi,
    The error you get is because your HS_FDS_CONNECT_STRING is not correct:
    Be sure you can ping the SQL SERVER name from the Oracle Server,or use TCP/IP address
    Check the port, it is not necessary 1433.
    You can use the instance name insted of port:
    HS_FDS_CONNECT_STRING=server_ip_address/instance_name/database_name
    Be careful, in the LISTENER.ORA, you must specify the Gateway machine and not the SQL SERVER machine:
    sqlserver =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Gateway_Machine )(PORT = 1522)) <====you must specify Oracle Gateway machine
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    Idem for TNSNAMES.ORA:
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Gateway_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    (HS = OK)
    Regards
    Mireille

  • Reg:-10901: Database error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)

    Hi Friends,
    When i schedule the report in infoview ,i am getting this error, could you please let me know how to solve this error.
    10901: Database error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)
    Thanks
    sreedhar

    Hi,
    I am able to refresh the report in Infoview and data is dispalying , but when i schedule the report in infoview i am getting that error.
    I am not clear on below one could you please elaborate on this
    You need to create ODBC for SQL server.Check your BO server is able to connect SQL Server.
    Thanks
    sreedhar

  • REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal.

    Hi,
    I am running the report Journals - General (132 char)- file name GLRGNJ.rdf from
    Oracle Report Builder 6.0.8.11.3.
    I have commented all the (srw.user_exit) in the Before Report trigger but i still
    get the message:
    REP-1401 'beforereport' Fatal PL/SQL error occurred. ORA 00000 normal,
    successful completion.
    Can anyone suggest a solution please?
    Thanks,
    Faris

    Dear sir, i am created one formula column in Reports6i and the following error has come. Could u please find out a solution. Thanks in advance.
    my function is below
    function CF_Branch_NameFormula return Char is
    lc_branch_name varchar2(100);
    begin
    SELECT rtrim(substr(FVT.DESCRIPTION
    ,instr(FVT.DESCRIPTION,'-',1)+1
    ,100)) INTO lc_branch_name
    FROM FND_FLEX_VALUES FFV, FND_FLEX_VALUES_TL FVT
    WHERE FFV.flex_value_Set_id = 1007956
    AND FFV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    AND FFV.FLEX_VALUE = FVT.FLEX_VALUE_MEANING
    AND FVT.DESCRIPTION <> 'xxx'
    and rownum<=1
    AND SUBSTR(FVT.FLEX_VALUE_MEANING,3,2) = :P_BRANCH;
    return (lc_branch_name);
    end;

  • Crystal Report Windows Forms Viewer Error in 1 Workstation after upgrade of PL

    Hi all,
    We just upgraded SAP from 8.82 PL02 to 8.82 PL15.
    Afterwards, in just 1 workstation, Crystal Reports layouts have Crystal Report Windows Forms Viewer error I attach.
    Before the upgrade this error did not happen.
    No permissions or authorizations were changed  in the workstation.
    The Crystal Reports layouts remain working fine in server and in the other workstations.
    In the workstation following are installed:
    - Operating System Windows 7;
    - Microsoft .NET Framework 4.5;
    - SAP Crystal Reports runtime engine for. NET Framework;
    - Crystal Report 2008 Runtime SP6;
    - Microsoft SQL Server 2008 R2 Native Client.
    All, but the operating system, are equal to the other workstations.
    User has edit access to SAP folders, temp and access to the attach path.
    We already uninstalled SAP client and client agent and re-installed it but with no avail.
    Can anyone help me?
    Thanks in advance.
    Best regards,
    Pedro Mariano

    Hi San Xu,
    Thank you for your input.
    However I'm facing problem with each software is suitable.
    I installed SAP Crystal Reports for SAP Business One (CR 2011 V14.0.4.738), but with no avail.
    Thanks in advance.
    Best regards,
    Pedro Mariano

  • Crystal Reports XI  stopped working error message on a Windows Server 2008

    We recently installed Crystal Report XI  in a Windows Server 2008 environment. After completed the installation as the Administrator every time that we try to execute Crystal we receive the following error message:
    "Crystal Reports has stopped working"
    Problem signature:
    Problem Event Name: BEX
    Application Name: crw32.exe
    Application Version: 11.0.0.1282
    Application Timestamp: 422d5c77
    Fault Module Name: StackHash_1fc1
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Offset: 7ef2fbfc
    Exception Code: c0000005
    Exception Data: 00000008
    OS Version: 6.1.7600.2.0.0.272.7
    Locale ID: 1033
    Additional Information 1: 1fc1
    Additional Information 2: 1fc163a1c57ae45571bce37d539b233f
    Additional Information 3: 2f92
    Additional Information 4: 2f92817e9e63d4100e2aa48e72910a78
    Any recommendation on what is causing this error?
    Thanks,
    Luis

    Hi, did you get this working? I'm really struggling to get up and running on 2008 R2, the CMS service just refuses to connect to the database. It also looks like the database wasn't created properly during the install. I set it up on an MSDE database, and when I look at it with sql management studio the database is there but there aren't any tables or anything else
    Can anyone either confirm or deny that its possible to run Crystal XI on 2008 R2?
    The error I'm getting when trying to start the service is:
    The root server reported an error Initialization Failure. (Reason: Unable to connect to the database using the provided connection string. Reason: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified).
    I've confirmed that the ODBC connections work (both 32 bit and 64 bit) via the built in test, but Crystal for some reason isn't happy

  • Receiving SQL Error: INTERNAL_ERROR  while executing the query

    Dear All,
    I am receiving the below error while executing a query.
    SQL Error: INTERNAL_ERROR
    Diagnosis
    The database system registered an SQL error. As available, the error number and a description are included in the short text. Possible causes for SQL errors include:
    Overflow of database objects such as buffers, temporary tablespaces, rollback segments or data containers/tablespaces.
    ->These problems can generally be eliminated by system administrators.
    Missing generated database objects such as tables or views based on inconsistent or inactive InfoCubes or InfoObjects. Examples of this include the view of the fact table for an InfoCube or the attribute SID table (X/Y table) of a characteristic.
    -> These problems can generally be eliminated by a BW administrator.
    SQL requests with incorrect content.
    -> Problems of this type are generally programming errors.
    System Response
    Procedure
    Contact your system administrator.
    Procedure for System Administration
    If there is no error description, look for one in the reference from the database producer.
    Decide on the correct category for the SQL error and check if it can be eliminated. Generally the error can also be found in the syslog (transaction sm21). From there, transactions sm51 and sm50, the developer's trace log of the work process can be determined and the erroneous statement can be viewed in the log. This procedure is described in SAP Note 568768.
    Notification Number DBMAN 257 
    I verified the table spaces and also done RSRV Repair of InfoObjects and InfoCubes and didnt find any error. But I am receiving this error for one particular month and remaining months are executing fine. Any ideas why i am receiving this error.
    Regards
    Ravi Y

    OSS Note 1305568:
    Symptom
    A data mart query that
    you want to execute within a data transfer process (DTP), for example, terminates with the
    SQL error -1013 "Too many order columns".
    The following is displayed in the monitor log of the data transfer process:
    Error while extracting from source xxxxxx (type InfoProvider)
    Message number RSBK 242
    Exception CX_SQL_EXCEPTION occurred (program:
    CL_SQL_STATEMENT==============CP, include:
    CL_SQL_STATEMENT==============CM004, line: 32).
    Message number RS_EXCEPTION 000
    SQL error: POS(3306) Too many order columns
    Message number DBMAN 257
    Error reading the data of InfoProvider xxxxxx
    Message number DBMAN 305
    You have already implemented Note 1065380.
    Other terms
    CX_SQL_EXCEPTION, message number, RS_EXCEPTION 000, DBMAN 257,  RSBK 242,
    RS_EXCEPTION 000
    Reason and Prerequisites
    The MaxDB internal limit of 4016 bytes or 128 fields for GROUP BY columns was exceeded.
    Solution
    When you implement these corrections, no aggregation is performed for the data (GROUP BY) if the limits of the MaxDB database have been exceeded.
    The limit values for the aggregation bahavior can also be manually reduced if there are problems with the default values.
    Two RSADMIN parameters are provided for this.
    MAXDB_MAX_GROUP_BY_FLDS is the maximum number of GROUP BY fields. The default value is 128.
    MAXDB_MAX_GROUP_BY_LEN is the maximum total length of the GROUP BY fields. The default value is 4000.
    SAP NetWeaver BI 7.00
               Import Support Package 21 for SAP NetWeaver BI 7. 00 (SAPKW70021) into your BI system. The Support Package is available when Note 1270629"SAPBINews NW 7.00 BI Support Package 21", which describes this Support Package in more detail, is released for customers.

  • PS General SQL Routines: Missing or invalid version of SQL library libpsora

    Hi Everyone,
    Need your assistance. Perhaps someone of you encountered this already. I have completed setting up everything until the application server part. If I try to boot the application server I get the error below. I have tried several solution published in Oracle Support and these did not resolve the issue.
    Appserv log
    PSADMIN.15894 (0) [10/01/10 16:17:21](0) Begin boot attempt on domain hc91dmo
    PSAPPSRV.15941 (0) [10/01/10 16:17:50](0) PeopleTools Release 8.50 (Linux) starting. Tuxedo server is APPSRV(99)/1
    PSAPPSRV.15941 (0) [10/01/10 16:17:51](0) Cache Directory being used: /applications/psoft/hc91/appserv/hc91dmo/CACHE/PSAPPSRV_1/
    PSAPPSRV.15941 (0) [10/01/10 16:17:51](1) GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library libpsora (200,0)
    PSAPPSRV.15941 (0) [10/01/10 16:17:51](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database HC91DMO with user PS.
    PSAPPSRV.15941 (0) [10/01/10 16:17:51](0) Server failed to start
    PSADMIN.15894 (0) [10/01/10 16:17:58](0) End boot attempt on domain hc91dmo
    Tuxedo log
    161730.TESTLAB-03!BBL.15902.2248875168.0: 10-01-2010: client high water (0), total client (0)5900.2137364080.-2: TMADMIN_CAT:1330: INFO: Command: boot -A
    161728.TESTLAB-03!tmboot.15901.2219435552.-2: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
    161728.TESTLAB-03!tmboot.15901.2219435552.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
    161728.TESTLAB-03!tmboot.15901.2219435552.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    161730.TESTLAB-03!BBL.15902.2248875168.0: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit, Patch Level (none)
    161730.TESTLAB-03!BBL.15902.2248875168.0: LIBTUX_CAT:262: INFO: Standard main starting
    161733.TESTLAB-03!tmboot.15905.1855951168.-2: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
    161733.TESTLAB-03!tmboot.15905.1855951168.-2: CMDTUX_CAT:1851: INFO: TM_BOOTTIMEOUT is set to 120 seconds
    161733.TESTLAB-03!tmboot.15905.1855951168.-2: CMDTUX_CAT:1855: INFO: TM_BOOTPRESUMEDFAIL option is selected
    161735.TESTLAB-03!PSWATCHSRV.15906.1160363616.-2: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
    161735.TESTLAB-03!PSWATCHSRV.15906.1160363616.-2: LIBTUX_CAT:262: INFO: Standard main starting
    161750.TESTLAB-03!PSAPPSRV.15941.4117513168.0: 10-01-2010: Tuxedo Version 10.3.0.0, 64-bit
    161750.TESTLAB-03!PSAPPSRV.15941.4117513168.0: LIBTUX_CAT:262: INFO: Standard main starting
    161751.TESTLAB-03!PSAPPSRV.15941.4117513168.0: LIBTUX_CAT:250: ERROR: tpsvrinit() failed
    161751.TESTLAB-03!tmboot.15905.1855951168.-2: tmboot: CMDTUX_CAT:827: ERROR: Fatal error encountered; initiating user error handler
    161755.TESTLAB-03!BBL.15902.2248875168.0: CMDTUX_CAT:26: INFO: The BBL is exiting system
    161758.TESTLAB-03!PSADMIN.15894: End boot attempt on domain hc91dmo
    stderr.log
    dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
    dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
    dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
    dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
    dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
    Here is my environment configuration.
    CentOS 5.4 64 bit
    PeopleTools 8.50
    HCM 9.1 MultiLanguage
    WebLogic 11g R1
    Tuxedo 11g R3
    VmWare Server 2
    Oracle 11g
    Thanks ....

    It's Oracle 11.2.0.1.0. Yes, I can login to database via SQL PLus.
    [oracle@TESTLAB-03 ~]$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 1 17:56:13 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> conn people/peop1e
    Connected.
    Here what in my .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    export ORACLE_HOME=/applications/oracle/product/11.2.0
    export TUXDIR=/applications/mdlware/tuxedo10gR3
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$TUXDIR/lib
    export PATH=$PATH:$ORACLE_HOME/bin:$TUXDIR/bin:$ORACLE_HOME/lib
    export PS_HOME=/applications/psoft/hc91
    export PS_CFG_HOME=$PS_HOME
    . $PS_HOME/psconfig.sh
    cd $PS_HOME

  • PS General SQL Routines: Missing or invalid version of SQL library libpsor

    Hi,
    I am facing the above error while booting up the Appserver. Could someone help me on these please.
    below are the softwares used:
    Oracle Linux5.4 64bit
    peopletools:8.51
    Application HCM:9.1
    weblogic wls_1034
    Tuxedo 10g3
    Stderr shows:
    dlopen in libpscompat failed for 'libpsora.so': libclntsh.so.10.1: cannot open shared object file: No such file or directory
    Appserv_log
    GenMessageBox(200, 0, M): PS General SQL Routines: Missing or invalid version of SQL library libpsora (200,0)
    PSAPPSRV.9875 (0) [12/11/12 15:37:28](1) GenMessageBox(0, 0, M): Database Signon: Could not sign on to database HCMDMO with user PS.
    Thanks in advance

    It's Oracle 11.2.0.1.0. Yes, I can login to database via SQL PLus.
    [oracle@TESTLAB-03 ~]$ sqlplus /nolog
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Oct 1 17:56:13 2010
    Copyright (c) 1982, 2009, Oracle. All rights reserved.
    SQL> conn people/peop1e
    Connected.
    Here what in my .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    export ORACLE_HOME=/applications/oracle/product/11.2.0
    export TUXDIR=/applications/mdlware/tuxedo10gR3
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$TUXDIR/lib
    export PATH=$PATH:$ORACLE_HOME/bin:$TUXDIR/bin:$ORACLE_HOME/lib
    export PS_HOME=/applications/psoft/hc91
    export PS_CFG_HOME=$PS_HOME
    . $PS_HOME/psconfig.sh
    cd $PS_HOME

  • PS General SQL Routine -- Missing or invalid version of SQL library PSORA (

    I installed PeopleTool8.5 in Windows7 ultimate(64bit version) . while i am tring to login first time in to datamover to populate the data to peopsoft. I am getting the following error message.
    Installed: Oracle 11g (64 bit), PeopleTools 8.5
    PS General SQL Routine -- Missing or invalid version of SQL library PSORA (200,0).
    Any idea to solve this issue.
    Thanks
    Ayyanar
    Edited by: P.P Ayyanar on Mar 13, 2010 12:56 PM

    P.P Ayyanar wrote:
    Please , we need to delete the existing row in dbowner table or any other solution.It seems you ran more than once this script. As I already said to you above, you MUST use a 32bit Oracle client against your 64bit Oracle database from a Windows workstation, are you ?
    Furthermore, Oracle db and Peoplesoft are not certified on Windows 7...
    Lastly, or you remove that line from the script, or you delete that row (all rows) from that table, or you re-create database from scratch (I mean drop and recreate) because running this script more than once is never good, especially regarding the DMS import.
    Nicolas.

  • Unknown Database Connector Error   Details: "Failed to retrieve SQL Error"

    Hi
    Getting "Failed to retrieve SQL Error" while trying to refresh the Crystal report.
    Unable to create a new report also
    This is my ERROR MESSAGE
    "Unknown Database Connector Error   Details: "Failed to retrieve SQL Error"
    Previous Error: Query generated multiple SQL statements.However multiple SQL is not supported in crystal reports query panel"
    Any Suggestion.

    Hi,
    Please note that any query that generates multiple SQL statements is not supported in the Query Panel in Crystal Reports.
    I guess this Universe is generating multiple SQLs and hence the error.
    I found this option while I was searching for something else: Could you try turning off the "Multiple SQL statement for each measure" in the Universe parameters and see if it works?
    Also, here's the Universe Support Guide, although old, it is still applicable:
    http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/20984c2b-17f1-2b10-1091-d18977f7cd8f?QuickLink=index&overridelayout=true
    -Abhilash

  • SQL Error when inserting record

    When attempting to update a record in dreamweaver, I am receiving the following error:
    "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' Organization, Office, Department, Phone, EmailAddress, JobTitle, `OfficialMaili' at line 1"
    I suspect there is a problem with my SQL statements but I'm not a programmer and I was hoping someone could take a look at my script and see if there is an obvious problem with my SQL statements.
    Thank you for any help you can provide and here is the entire script from my page:
    <?php require_once('Connections/group4.php'); ?>
    <?php
    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_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE saar SET Supervisor_SupervisorNumber=%s, TypeofRequest=%s, `Date`=%s, SystemName=%s, SystemLocation=%s, JustificationforAccess=%s, TypeofAccessRequired=%s, UserRequiredAccess=%s, VerificationofNeedtoKnow=%s, AccessExpDate=%s, Individual_IndividualNumber=%s WHERE SAARNumber=%s",
                           GetSQLValueString($_POST['Supervisor_SupervisorNumber'], "int"),
                           GetSQLValueString($_POST['TypeofRequest'], "text"),
                           GetSQLValueString($_POST['Date'], "text"),
                           GetSQLValueString($_POST['SystemName'], "text"),
                           GetSQLValueString($_POST['SystemLocation'], "text"),
                           GetSQLValueString($_POST['JustificationforAccess'], "text"),
                           GetSQLValueString($_POST['TypeofAccessRequired'], "text"),
                           GetSQLValueString($_POST['UserRequiredAccess'], "text"),
                           GetSQLValueString($_POST['VerificationofNeedtoKnow'], "text"),
                           GetSQLValueString($_POST['AccessExpDate'], "text"),
                           GetSQLValueString($_POST['Individual_IndividualNumber'], "int"),
                           GetSQLValueString($_POST['SAARNumber'], "int"));
      mysql_select_db($database_group4, $group4);
      $Result1 = mysql_query($updateSQL, $group4) or die(mysql_error());
      $updateGoTo = "view.php?SAARNumber=" . $row_rsSAAR['SAARNumber'] . "";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    $varSupervisor_rsSAAR = "2";
    if (isset($_GET['SAARNumber'])) {
      $varSupervisor_rsSAAR = $_GET['SAARNumber'];
    mysql_select_db($database_group4, $group4);
    $query_rsSAAR = sprintf("SELECT * FROM supervisor, saar, individual WHERE SAARNumber = %s AND saar.Supervisor_SupervisorNumber = supervisor.SupervisorNumber AND individual.IndividualNumber = saar.Individual_IndividualNumber", GetSQLValueString($varSupervisor_rsSAAR, "int"));
    $rsSAAR = mysql_query($query_rsSAAR, $group4) or die(mysql_error());
    $row_rsSAAR = mysql_fetch_assoc($rsSAAR);
    $totalRows_rsSAAR = mysql_num_rows($rsSAAR);
    ?>
    <!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>Validate a User</title>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    .header {
    font-size: 36px;
    text-decoration: underline;
    .quote {
    font-size: 18px;
    font-style: italic;
    </style>
    </head>
    <body>
    <p><img src="Images/EGA.png" width="227" height="222" alt="EGA" /><span class="header">SAAR Tracking System
    </span></p>
    <ul id="MenuBar1" class="MenuBarHorizontal">
      <li><a href="home.php">Home</a>  </li>
      <li><a href="search.php">Search</a></li>
      <li><a href="contact.php">Contact Us</a>  </li>
    </ul>
    <p> </p>
    <p>User Information:</p>
    <p> </p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <table align="center">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">TypeofRequest:</td>
          <td><input type="text" name="TypeofRequest" value="<?php echo htmlentities($row_rsSAAR['TypeofRequest'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Date:</td>
          <td><input type="text" name="Date" value="<?php echo htmlentities($row_rsSAAR['Date'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">SystemName:</td>
          <td><input type="text" name="SystemName" value="<?php echo htmlentities($row_rsSAAR['SystemName'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">SystemLocation:</td>
          <td><input type="text" name="SystemLocation" value="<?php echo htmlentities($row_rsSAAR['SystemLocation'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">JustificationforAccess:</td>
          <td><input type="text" name="JustificationforAccess" value="<?php echo htmlentities($row_rsSAAR['JustificationforAccess'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">TypeofAccessRequired:</td>
          <td><input type="text" name="TypeofAccessRequired" value="<?php echo htmlentities($row_rsSAAR['TypeofAccessRequired'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">UserRequiredAccess:</td>
          <td><input type="text" name="UserRequiredAccess" value="<?php echo htmlentities($row_rsSAAR['UserRequiredAccess'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">VerificationofNeedtoKnow:</td>
          <td><input type="text" name="VerificationofNeedtoKnow" value="<?php echo htmlentities($row_rsSAAR['VerificationofNeedtoKnow'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">AccessExpDate:</td>
          <td><input type="text" name="AccessExpDate" value="<?php echo htmlentities($row_rsSAAR['AccessExpDate'], ENT_COMPAT, 'utf-8'); ?>" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="Update record" /></td>
        </tr>
      </table>
      <input type="hidden" name="SAARNumber" value="<?php echo $row_rsSAAR['SAARNumber']; ?>" />
      <input type="hidden" name="Supervisor_SupervisorNumber" value="<?php echo htmlentities($row_rsSAAR['Supervisor_SupervisorNumber'], ENT_COMPAT, 'utf-8'); ?>" />
      <input type="hidden" name="Individual_IndividualNumber" value="<?php echo htmlentities($row_rsSAAR['Individual_IndividualNumber'], ENT_COMPAT, 'utf-8'); ?>" />
      <input type="hidden" name="MM_update" value="form1" />
      <input type="hidden" name="SAARNumber" value="<?php echo $row_rsSAAR['SAARNumber']; ?>" />
    </form>
    <p> </p>
    <p class="quote">&quot;Be polite, be professional, but have a plan to kill everybody you meet&quot; General James Mattis</p>
    <p> </p>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($rsSAAR);
    mysql_free_result($rsSupervisor);
    ?>

    > I am being directed to the page that has the error message on it.
    So you have two problems. First, you have a SQL error on the page you are being redirected to, and second, you are being sent to the wrong page...correct?
    What's the name of the page you want to be redirected to? What's the name of the page you are being redirected to?

  • SQL error or database missing

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    NSString *path = [documentsDirectory stringByAppendingPathComponent:@"bookdb.sql"];
    // Open the database. The database was prepared outside the application.
    //int retcode =sqlite3_open([path UTF8String], &database);
    if (sqlite3_open([path UTF8String], &database) == SQLITE_OK)
    // Get the primary key for all arrContacts.
    const char *chRecordIdQuery ="SELECT pk FROM book";
    sqlite3_stmt *sqlStatement;
    // Preparing a statement compiles the SQL query into a byte-code program in the SQLite library.
    // The third parameter is either the length of the SQL string or -1 to read up to the first null terminator.
    int retcode = sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL);
    if (sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL) == SQLITE_OK)
    // We "step" through the results - once for each row.
    while (sqlite3_step(sqlStatement) == SQLITE_ROW)
    // The second parameter indicates the column index into the result set.
    int primaryKey = sqlite3columnint(sqlStatement, 0);
    // We avoid the alloc-init-autorelease pattern here because we are in a tight loop and
    // autorelease is slightly more expensive than release. This design choice has nothing to do with
    // actual memory management - at the end of this block of code, all the book objects allocated
    // here will be in memory regardless of whether we use autorelease or release, because they are
    // retained by the arrContacts array.
    [self fetchContacts:primaryKey];
    [arrContacts addObject:ContactName];
    // "Finalize" the statement - releases the resources associated with the statement.
    sqlite3_finalize(sqlStatement);
    else
    // Even though the open failed, call close to properly clean up resources.
    sqlite3_close(database);
    NSAssert1(0, @"Failed to open database with message '%s'.", sqlite3_errmsg(database));
    // Additional error handling, as appropriate...
    When I execute this code den the sqlite_open commands works properly , it means it can find the database and opens it but it returns error om this line
    "if (sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL) == SQLITE_OK)"
    the value of int retcode = sqlite3preparev2(database, chRecordIdQuery, -1, &sqlStatement, NULL); is returned as 1 which says - SQL error or database missing .
    Also , previously I used the same code in other project and there it ran succesfully.
    I could not find out what is happening.
    can anyone help me out ?

    Try wrapping code that you submit to the forum in a pair (no slashes). It makes it much easier to read.
    It is hard to say what the problem is without knowing what your db file actually looks like. Given that you've had success with this code before you might double check the db file that is in the simulator's sandbox for your application. You can go to your <username>/Library/ApplicationSupport/iPhone Simulator/User/Applications/<appropriate directory for your app>/Documents and your should see the db file that you are trying to select from.
    You can check to see that it actually contains the schema and data that you expect with the command line tool: sqlite3. Run sqlite3 on you db file and then enter .dump. That will print the contents of your tables in the db.
    In my experience, a problem with the "prepare" call is generally related to a mismatch between your SQL statement and the actual db's schema.
    It may not help, but it is worth looking if you haven't yet.
    Cheers,
    Greg

  • DbSl Trace: CONNECT failed with sql error '12170'

    Hi,
    I'm having this problem during installation of DB instance. I already installed Oracle patchSet. Could you some tell me what could be the issue.
    SAP Release: NW 2004s SR1
    SAP Variant: ABAP
    OS: Solaris 10 64 Bit
    Oracle: 102_64
    INFO       2006-11-16 11:32:19
               CJSlibModule::writeInfo_impl()
    Output of /usr/sap/RED/SYS/exe/run/R3load -testconnect is written to the logfile R3load.exe.log.
    WARNING    2006-11-16 11:47:19
               CJSlibModule::writeWarning_impl()
    Execution of the command "/usr/sap/RED/SYS/exe/run/R3load -testconnect" finished with return code 2. Output:
    sapparam: sapargv( argc, argv) has not been called.
    sapparam(1c): No Profile used.
    sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    /usr/sap/RED/SYS/exe/run/R3load: START OF LOG: 20061116113220
    /usr/sap/RED/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#6 $ SAP
    /usr/sap/RED/SYS/exe/run/R3load: version R7.00/V1.4 [UNICODE]
    Compiled Apr  1 2006 03:18:31
    /usr/sap/RED/SYS/exe/run/R3load -testconnect
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    (DB) ERROR: db_connect rc = 256
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    DbSl Trace: OCI-call 'OCIServerAttach' failed: rc = 12170
    DbSl Trace: CONNECT failed with sql error '12170'
    (DB) ERROR: DbSlErrorMsg rc = 99
    /usr/sap/RED/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/RED/SYS/exe/run/R3load: END OF LOG: 20061116114718
    ERROR      2006-11-16 11:47:19
               CJSlibModule::writeError_impl()
    CJS-30023  Process call '/usr/sap/RED/SYS/exe/run/R3load -testconnect' exits with error code 2. For details see log file(s) R3load.exe.log.
    ERROR      2006-11-16 11:47:19 [iaxxgenimp.cpp:736]
               showDialog()
    FCO-00011  The step testDatabaseConnection with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|testDatabaseConnection was executed with status ERROR .
    Thanks
    Torpedo

    Hi ram
    Just brief ur Env please ..
    If you are receiving the ora-12535 error from tnsping as well as sqlplus, the client box is probably unable to find the listener for whatever reason. If the listener is definitely running and you are able to ping the listener's address from the client box but still can't tnsping it, you are probably running into a firewall issue.
    The reason for this is that with tnsping failing you are probably timing out before the connection gets to the listener. You can verify that the listener is running by checking the status in lsnrctl or doing a loopback connection through it. You can verify that the listener's address is visible to the remote box by pinging it from the remote box. Firewalls generally filter by port number so this is the next logical thing to check. If the remote connection passes through a firewall and the listener's port has not been opened up you will see this error.
    regards
    Vinod

Maybe you are looking for

  • Problem in sending data through email in brodcasting

    HI All i am trying to send the data through email in the broadcasting. but as i execute the broadcasting the message comes "Online processing is not possible for user 1" further its is saying "You want to execute a broadcast setting online. Processin

  • The seach box has stopped working?

    The search function is no longer working? Hitting return or clicking on SEARCH does nothing.

  • Audio of clips looping randomly in Premeire project

    Hey Guys, Was working on a project today and came across an incredibly frustrating error with little to know forseeable fix, at least from my view. It seems that randomly (and I really can't give a better description of when this happens as it really

  • Install third-party apk??

    Look i know this might be somewhere on the fourms or a link to a site but im really intrested to know ive recently come from an old android running open-source cyanogen mod 11 kit kat 4.4.4 i know it may be possiable to root my current zte open c fir

  • How can i air display the Screen from mac to the more than 3 iPads?

    how can i air display the Screen from mac to the more than 3 iPads? thanks