Native SQL "Table does not exist in database"

Hi Developers,
I'm doing a database connection to an Oracle db and trying to read data using native SQL - I keep getting the runtime error "table does not exist in database" on the statement Fetch Next Cursor. The following is the code snippet (I've commented out the Exec SQL and Fetch Next to make sure I have a connection and I do). HR is a schema in the database and T_Donation is a table in HR.
Data: w1(3),
         c1 type cursor.
start-of-selection.
  if con_name is initial.
    write: 'No connection specified'.                       "#EC NOTEXT
    return.
  endif.
try to open the connection and catch the errors (if any)
  try.
      con_ref = cl_sql_connection=>get_connection( con_name ).
    catch cx_sql_exception into sqlerr_ref.
    error occured
      write:
        'Could not open connection', con_name, '.'.         "#EC NOTEXT
      if sqlerr_ref->unknown_connection = 'X'.
        write:
          / con_name, 'is not defined in DBCON'.            "#EC NOTEXT
      elseif sqlerr_ref->db_error = 'X'.
        write:
          / 'sql error', sqlerr_ref->sql_code, 'occured:',
          / sqlerr_ref->sql_message.                        "#EC NOTEXT
      else.
        perform get_trace_file using dev_file.
        write:
          / 'DBI error', sqlerr_ref->internal_error, 'occured.',
          / 'See trace file for further info:',
            icon_read_file as icon hotspot, dev_file.       "#EC NOTEXT
      endif.
      return.
  endtry.
connection successfully opened
  write:
    / 'Connection', con_name, 'successfully opened.'.       "#EC NOTEXT
*- Get the data from MS-SQL Server
  EXEC SQL.
    open C1 for
    SELECT HR.T_DONATION.DN_DONATIONYEAR
    FROM HR.T_DONATION
  ENDEXEC.
  do.
    EXEC SQL.
      FETCH NEXT C1 into :w1
    ENDEXEC.
    if sy-subrc = 0.
      perform loop_output.
    else.
      exit.
    endif.
  enddo.
  EXEC SQL.
    CLOSE C1
  ENDEXEC.
close connection again
  con_ref->close( ).
  write:
    / 'Connection', con_name, 'closed'.                     "#EC NOTEXT
end-of-selection.
*& Form LOOP_OUTPUT
Output
form loop_output .
  write: /5 w1.
endform. " LOOP_OUTPUT
Thanks for your help.
Jim
Message was edited by:
        James Barnes

Well my advice is to check the question in the sql tutorial, it will be quicker then getting an answere.

Similar Messages

  • Short dump 'Table does not exist in database'

    Hello All,
    When a report is executing it is going to short dump by saying 'Table does not exist in database'. As per the short dump analysis this issue is happening because of the following   Native SQL statement statement :
    Program :  %_T050N0 (This is a dynamic  program generating by SAP )
    Form Name :  DYN_LIC_SEL_TOT
    exec sql performing LOOP_MOVE_WRITE_ISAP.
    select single_plate, itm_num, ctry_code, model_lot,
    lic_hold_flg, qty into :dcat-lplate, :dcat-matnr,
    :dcat-werks, :dcat-charg, :dcat-holdflag,
    :dcat-qty from ZLICENSE_R2 where itm_num   = :p_matnr and
                    model_lot = :p_charg
    endexec.
    As per the customer this issue occurring since they migrated the SAP  back-end data base from Oralce to DB6. Here I felt that ZLICENSE_R2 is not migrated from the  Oracle to DB6. But as per the BASIS Team, even this table was not maintained in Oracle also. If the table was not maintained in the Oracle, this issue should have been there even before migration also.
    Following is the short dump details:
    Short text
        Table does not exist in database.
    What happened?
        The table or view name used does not
        exist in the database.
        The error occurred in the current database connection "DEFAULT".
    What can you do?
        Check the spelling of the table names in your report.
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_NATIVE_SQL_ERROR', was not
         caught in
       procedure "DYN_LIC_SEL_TOT" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Triggering SQL statement: "select single_plate, itm_num, ctry_code, model_lot,
    lic_hold_flg, qty from ZLICENSE_R2 where itm_num = ? and model_lot = ? "
    Database error code: "-204"
    Could you please  let me know what might be the reason for this issue.
    Many Thanks in Advance.

    Transaction SE11, input ZLICENSE_R2 for table name, and display the table. Did the table display? If not, that is the main problem.
    If the table displays, go to menu item Utilities -> Database Object -> Database Utility
    In the resulting screen, under the "Status" fields, you should see text "Exists in the database." If you don't, then the table exists in the dictionary, but doesn't exist in the database system. Click the "Create database table" button and then you should be able to run the program.
    You may need basis team's help to carryout some of these actions.

  • CFM2 - Table does not exist in database.

    Hi Gurus,
    I am new to EWM & facing one error while transferring Inbound Delivery to SCM EWM from ECC.(T Code - CFM2)
    Please also note that, 1.I could transfer the master data through CFM1& CFM2 from ECC to EWM
                                        2.Inbound delivery created in ECC is showing "distributed" status.
    Please see below the screen shot where the error message is occurring.
    Kindly also let me know apart from CIFing what are other ways to transfer transactional data to EWM from ECC ?
    Thanks in advance.
    Regards,
    Dinu J

    Hi,
    I'd like to add that delivery data is transferred via QRFC. The integration can be maintained in the ERP customizing. EWM relevancy of a delivery will be determined based on plant/storage location.
    Best regards,
    Christian

  • Table TTZDF does not exist on database

    HI forum
    i am installing the last SAPIDES Ehp3 Linux / Maxdb during the process of installation all job were imported sucessfully 32 of 50 , in the phase CHECK DDIC PASSWORD, the system can´t do log in.
    Review the log in the work directory (dev_w0) the follow message is generated.
    A Sat Jun 12 21:19:56 2010
    A  **GENER Trace switched off ***
    B  dbmyclu : info : my major identification is 3231713892, minor one 0.
    B  dbmyclu : info : Time Reference is 1.12.2001 00:00:00h GMT.
    B  dbmyclu : info : my initial uuid is CF0B144C2E40F845E1000000C0A00A64.
    B  dbmyclu : info : current optimistic cluster level: 2
    B  dbmyclu : info : pessimistic reads set to 2.

    C Sat Jun 12 21:20:15 2010
    C  *** ERROR =>   prepare() of C_0063, rc=1, rcSQL=-942 (POS(95) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(95) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28435b8,no=63,idc_p=(nil),con=0,act=0,slen=190,smax=256,#vars=1,stmt=0x19449e10,table=TTZDF                        
    C  SELECT "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "TIMETO" FROM "TTZDF"
    C   WHERE "CLIENT" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT"  WITH LOCK ISOLATION LEVEL 1;
    B  ***LOG BZA=> table TTZDF      does not exist on database R/3       
    B  *** ERROR => Buffer loading failed: {fcode=293, rc=32, cnt=0, table='TTZDF'}
    C  *** ERROR =>   prepare() of C_0063, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28435b8,no=63,idc_p=0x2b4da2909220,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x19449e10,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:26 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(95) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(95) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=(nil),con=0,act=0,slen=190,smax=256,#vars=1,stmt=0x1944e480,table=TTZDF                        
    C  SELECT "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "TIMETO" FROM "TTZDF"
    C   WHERE "CLIENT" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT"  WITH LOCK ISOLATION LEVEL 1;
    B  ***LOG BZA=> table TTZDF      does not exist on database R/3       
    B  *** ERROR => Buffer loading failed: {fcode=293, rc=32, cnt=0, table='TTZDF'}
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:28 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:30 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:31 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:21:18 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:21:21 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:21:29 2010
    C  *** ERROR =>   prepare() of C_0066, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da2843780,no=66,idc_p=0x2b4da29093e8,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x194421a0,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction
    M  ***LOG R47=> ThResFree, delete (001024) .
    I search notes and in sdn forum any information about this error, but there isn´t information.
    How i can solve this inconsistence durant the installation for finish the SAP IDES installation.
    Hi forums
    cheking the process of the installation, the problem i wait have it  solve doing the reinstallation with any  adjust in the database release .. i will be comment the process to the solution.
    Jairo

    thie process was solved with a new installation-

  • The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle db

    I am using Livecycle 8.2 running on JBOSS. I get this error in server log
    2013-07-25 13:48:33,809 ERROR [com.adobe.idp.config.AdobePreferenceFactory] UserM:GENERIC_ERROR: [Thread Hashcode: 5001776] Problem with system root| [com.adobe.idp.storeprovider.jdbc.DBStoreFactory] errorCode:12293 errorCodeHEX:0x3005 message:The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle database.
    2013-07-25 13:48:33,809 INFO  [STDOUT] java.lang.RuntimeException: The VersionEntity table does not exist in the LiveCycle database. Please bootstrap LiveCycle database.null
    Also not able to login using Administrator password. Assuming above error is the cause. Please any help is appreciated. Thnks.

    Is this observed on a running server or have you made any changes to LC server or database after which this error is seen?
    --Santosh

  • LOG BZA= table PATCHHIST  does not exist on database

    Dear Friends,
    I am installing SAP R/3 4.7 using import method and in the last step of the installation RFC logon module (post procesing) getting the error FRF-00063 RFC logon failed with invalid interface.
    below is the R3trans log
    4 ETW000 Connected to DBMS = DB6 --- DB2DBDFT = 'TST' --- SYSTEM = 'SPP'.
    4 ETW000  [dev trc     ,00000]  { db_rtab( fcode = 'RT_INSERT', tname = 'PATCHHIST' ) {saprel.c:1350}
    4 ETW000                                                                             163  0.755328
    4 ETW000  [dev trc     ,00000]  *** ERROR in prepareStatement[dbdb6.c, 12112] CON = 0 (BEGIN)
    4 ETW000                                                                            1743  0.757071
    4 ETW000  [dev trc     ,00000]  &+     DbSlModifyDB6( SQLExtendedPrepare ): [IBM][CLI Driver][DB2/AIX64] SQL0204N  "SAPTST.PATC
    HHIST" is an undefined nam
    4 ETW000                                                                              32  0.757103
    4 ETW000  [dev trc     ,00000]  &+     e.  SQLSTATE=42704
    4 ETW000                                                                              19  0.757122
    4 ETW000  [dev trc     ,00000]  &+
    4 ETW000                                                                              19  0.757141
    4 ETW000  [dev trc     ,00000]  &+     INSERT INTO "PATCHHIST" ( "EXECUTABLE", "SAPRELEASE", "HOSTNAME", "PLATFORM", "DBVENDOR"
    , "TIMESTAMP", "PATCHNO",
    4 ETW000                                                                              20  0.757161
    4 ETW000  [dev trc     ,00000]  &+     "DBSLPATCHN" ) VALUES( ?, ?, ?, ?, ?, ?, ?, ? )
    4 ETW000                                                                              29  0.757190
    4 ETW000  [dev trc     ,00000]  &+       cursor type=NO_HOLD, isolation=UR, cc_release=NO, optlevel=5, degree=1, op_type=15, re
    opt=0
    4 ETW000                                                                              33  0.757223
    4 ETW000  [dev trc     ,00000]  &+       ABAP location info: '', 0
    4 ETW000                                                                              30  0.757253
    4 ETW000  [dev trc     ,00000]  &+
    4 ETW000                                                                              19  0.757272
    4 ETW000  [dev trc     ,00000]  &+
    4 ETW000                                                                              19  0.757291
    4 ETW000  [dev trc     ,00000]  *** ERROR in prepareStatement[dbdb6.c, 12112] (END)
    4 ETW000                                                                              28  0.757319
    4 ETW000  [dbtrtab     ,03967]  ***LOG BZA=>table PATCHHIST  does not exist on database [dbtrtab#5 @ 3967]
    4 ETW000                                                                              38  0.757357
    Kindly help me in resolving the issue.
    Thanks and Regards,
    Seshu

    Hello Seshu,
    the table should be there, so maybe there was an earlier problem durint the installation.
    Go to the directory containing the installation logs and search for errors, e.g.
    grep -i PATCHHIST *.log
    Regards,
    Mark

  • Table does not exist - DbLink

    Hello, I have 2 instances, into production environment, instance A and instance B. Into instance A I have a dblink to instance B...
    The problem appear when I want to see the indexes of a table of instance B from instance A, to do this I press F4 into TOAD over:
    owner.table@dblink
    and when I click into tab "Indexes", Oracle said me: "The table does not exist", I review the grants, and this is ok, and the table exist in instance B.
    One explanation, I have the same environment into testing, and there work perfectly, I have the same dblinks, the same users and the same grants.
    Any suggestion to help me.

    You may want to contact the folks that make TOAD.
    My guess is that TOAD is querying the local USER_/ ALL_/ DBA_INDEXES table rather than the USER_/ ALL/ DBA_INDEXES table at the remote server. You could run a client-side SQL trace to see what SQL is being generated to see if the problem is that TOAD is generating the incorrect SQL or whether there is some problem with the database. But I'm not sure how productive that would be since it's not like you could fix the SQL TOAD is submitting. If there is an option in TOAD that changes the behavior here, it's certainly possible that someone here will know it. But TOAD support is probably more likely.
    Justin

  • Table does not Exist in Unix OS after it has been created In HTML_DB

    I created a table in HTML_DB and can see the table fine in my HTML_DB application. However, when I go to the Unix OS and try to look up the database using SQL*Plus, I am getting an error saying the table does not exist. Any help as to why this is happening would be appreciated.
    Kelly

    When I go to the Unix OS, I then try and search for the table in the exact schema that I used in >HTML_DB.I don't see what the Unix OS has to do with it here...do you mean you're connecting via SQLPlus?
    If you're connecting via SQLPlus, which schema are you connecting to? (i.e. are you certain you're connecting to the same schema that the table was created under when you were connected to Application Express).

  • Can't Create a Data Source - Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi there,
    I am having a serious issue with The Power BI Data Management Gateway which I am hoping that someone can help me with.
    Basically I am setting a connection between a Power BI demo site and a SQL 2012 Database based on Azure. The Data Management Gateway and is up and running, and Power BI has managed to connect to it successfuly.
    By following the tutorials at
    here I was able to successful create my Data Connection Gateway with a self-signed certificate.
    However, when trying to create the data source I come into problems. The Data Source Manager manages to successfully resolve the hostname, as per the screenshot below:
    Bear in mind that I exposed the require ports in Azure as endpoints and I managed to modify my hosts file on my local machine so I could access the SQL server hosted in Azure using its internal name -- otherwise I would not be able to get this far.
    However the creation of the data source also fails when trying to created it whilst logged in the SQL server in question:
    The Data Source Manager returns the error when using the Microsoft OLE DB Provider for SQL Server:
    Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
    I tried using the SQL Server Native Client 11.0 instead but I also get an error. This time the error is:
    Failed to test connection. Login timeout expiredA network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.Named Pipes Provider: Could not open a connection to SQL Server [53]. 
    Some considerations
    If I provide an invalid username/password, the Data Source Manager does say that the username and password is incorrect.
    Firewall is turned off in the SQL Server (either way, this error also happens if I try top use the Data Source Manager whilst logged in the SQL Server itself).
    SQL Profiler does not show any attempt of connection.
    The SQL server instance in question is the default one.
    The error happens regardless if I select the option to encrypt connection or not.
    In SQL Configuration manager I can see that all protocols are enabled (TCP/IP, Named Pipes and Shared Memory.
    The Event Viewer does not provide any further errors than the one I have copied in this post.
    I'm at a loss here. Could someone please advise what might I be doing wrong?
    Regards,
    P.

    Here is what I had to do to solve this issue:
    Basically I had to add the MSSQL TCP/IP port as an end-point in Azure. After I did that, then I was able to create the data-source. However, I was only able to authenticate with a SQL account, as any domain account would return me an error saying that the
    domain isn't trusted.
    What puzzles me here is how come the Data Source Manager would inform me that an account username/password was invalid, but it would fail/timeout if I provided valid credentials (!?!?!!?)

  • OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi,
    I have one client and one server.  In both hosts I created an OS-user named User1.
    The user have been given various role under the prefix SQLServer2005.
    The default instance of SQL Server and instance (background-process) of
    Analysis Service are also run under User1.
    I connected via Management Studio to Analysis Service directly in the
    server.  I set the permission to access Analysis Service to Everyone. 
    This means everyone should be able to use Analysis Service.  I have set
    ODBC data source to the server.  Testing was successful.
    I created a project to create a cube.  The tables are fairly small (total 300 MB, biggest one 290).
    On project setting (created at client) I set the server host as
    deployment target. I managed to deploy project when all I have are Data
    Source and Data Source Views.
    But on deployment I always failed.   The errors remain the same, begins with
    OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.; 08001.
    I have tried 4 combinations of Impersonation :
    (A) Use a specific username and password
      * in which I supply User1 and the password of User1
    (B) Use the service account
    (C) Use the credentials of the current user
    (D) Default
    Why is this? The server does certainly exist.  I think the error message is wrong.
    I have seen 3 posting that seems related.  One of them say the solution is giving the right impersonation, but gave no detail.  About the privilege, User1 are granted the role of
    SQLServer2005MSOLAP.  What is the solution?
    Thank you,
    Bernaridho

    I just had this problem and solved it by creating an alias in SQL Server Configuration Manager, as below:
    Scenario: My SQL server is accessible from the internet under my.domain.com, and from itself at ServerName. But the local network can't see itself through the router at my.domain.com, so the deployed project is unable to process the cube, since that would
    require Analysis Services to be able to see the SQL Server at my.domain.com, which it can't do.
    So I changed the server in my project from my.domain.com to ServerName, and I created a local alias to ServerName in SQL Server Configuration Manager, under SQL Native Client 11.0 Configuration, Aliases. In my case, I pointed it to localhost port 1333, and
    used SSH -L 1333:my.domain.com:1433, but I could have pointed the alias directly to the server, just as well. (Verifying... yes, that worked too, so you can forget SSH if you have no interest in it.)

  • EXP-00011 table does not exist

    Hi guru's,
    My DB Version: 10.2.0.2.0
    OS Version: Solaris 10
    While trying to export a table from a schema i am getting error:
    exp-00011 table does not exist
    when i check the source database i found that table name as 'abc' exists there
    but when i log on to schema and try to check the info about the abc table with below mentioned query i got below error:
    SQL> select table_name from user_tables where table_name='rtx';
    no rows selected
    i also checked with table_name='RTX'
    i am getting the same error.
    Can anyone help me out

    sorry the table name is rtx
    C:\Documents and Settings\Administrator>exp userid=sysadm/rtxprod@rtxprod tables=sysadm.rtx file='E:\rtx.dmp' buffer=1000000 feedback=10000 statistics=none
    Export: Release 10.2.0.1.0 - Production on Thu May 10 14:36:34 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options^C
    C:\Documents and Settings\Administrator>exp userid=sysadm/rtxprod@rtxprod tables=sysadm.rtx file='E:\rtx.dmp' buffer=1000000 feedback=10000 statistics=none
    Export: Release 10.2.0.1.0 - Production on Thu May 10 14:37:05 2012
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    EXP-00011: SYSADM.RTX does not exist
    Export terminated successfully with warnings.

  • Cannot retrieve table metadata - Table does not exist: ODP source 0WRKCNT_CATG_TEXT does not exist

    Hi, when i able to import the 0WRKCNT_CATG_TEXT extractor into source system i am getting the above bug Cannot retrieve table metadata - Table does not exist: ODP source <0WRKCNT_CATG_TEXT> does not exist, i have been checked in RSA5 T code to check the object is active or not, its active and its available in ROOSATTR table with enabled mode,but still its showing the error, can anyone help on this ..

    Hi Airings,
    'ORA-00942: table or view does not exist'
    According to the error message, it seems that the migrating table or view does not exist in the database, or SSMA does not have access to it. To troubleshoot the issue, please check the following things.
     1. Verify that if the spelling of the table or view name is correct.
     2. If the table or view exists but is in a different schema from the current schema where the SQL is executing (in other word, the table doesn’t own by you, but owned by other user), the ORA-00942 error will return too. Resolve this by
    explicitly reference the table or view by specifying the schema name (schema_name.table_name).
    3. SSMA queries some additional catalog tables that you may not have permission to, please make sure that you grant the account permission to
     read sys.mlog$. For more details, please review this similar thread:
    Bug in SSMA For Oracle 6.0 for non-dba Oracle user.
    Reference:
    ORA-00942 Table or View Does Not Exist Oracle Error
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Table does not exists.

    I M TRYING TO TAKE EXPORT OF A TABLE BUT I M GETTING ERROR THAT TABLE DOES NOT EXISTS BUT ACTUALLY TABLE EXISTS... PLEASE SUGGEST Y I M GETTING THIS ERROR.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    SQL> select table_name from user_tables where table_name='CSCNF';
    TABLE_NAME
    CSCNF
    SQL> select object_name,object_type from user_objects where object_name='CSCNF';
    OBJECT_NAME OBJECT_TYPE
    CSCNF TABLE
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    [oracle@~]$exp musr/musr file=tab.dmp tables=CSCNF
    Export: Release 11.2.0.1.0 - Production on Thu Jun 17 16:28:51 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing option
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    EXP-00011: MUSR.CSCNF does not exist
    Export terminated successfully with warnings.

    [oracle@~]$sqlplus / as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Thu Jun 17 16:40:48 2010
    Copyright (c) 1982, 2009, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    SQL> conn musr/musr
    Connected.
    SQL> sho user
    USER is "musr"
    SQL> select table_name from user_tables where table_name='CSCNF'
      2  ;
    TABLE_NAME
    CSCNF
    SQL> exit
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    With the Partitioning, Oracle Label Security, OLAP, Data Mining,
    Oracle Database Vault and Real Application Testing options
    [oracle@~]$

  • Table does not exist for the sys user

    Hey Everyone,
    I am having a strange problem with 10G 10.2. I keep getting the table does not exist for all the tables when I am logged in as sys. It is strange because I can query the same tables being logged in as a regular user say 'scott'. I can't figure out what the problem is since it could not be privileges because the user is sys. Is there something I am missing here. Any advice would be welcome.
    Thanks,
    Sarang

    Yeah i am using the query....
    SELECT * FORM SCOTT.EMP
    It is a little wierd. I did a full database restore yesterday night. I dont know if that has anything to do with this. Will have to take a look at the logs.

  • Primary index does not exist in database but shows in SE14?

    I added a couple of key fields to a Z table and activated it. Every thing went well - adjusted it with SE14 also.
    When I checked the Runtime object - it is OK.
    When I checked Database Object, it is showing that the Primary Index does not exist in Database but SE14 says that the Priamry Index exists in Database.
    Please advise how to correct this. I saw another psoting when I searched per this error message: "Indexes: Inconsistent with DDIC source" . It tells to create this index at Database but need to know the steps.
    pl advise.
    (reposting here)
    Edited by: Venkatabby on Mar 26, 2008 4:05 PM

    hi,
    To create a index for a table,
    go to se11->click on Indexes tab and create  a primary index.
    Indexes speed up data selection from the database. They consist of selected fields of a table, of which a copy is then made in sorted order. If you specify the index fields correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan).
    The system automatically creates the primary index. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE.
    If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVINGclauses, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
    You create secondary indexes using the ABAP Dictionary. There you can create its columns and define it as UNIQUE.
    reward points if useful.
    regards
    sandhya

Maybe you are looking for

  • Lost Desktop Icons

    I have a desktop folder with content, but no icons on the desktop. How do I get the content to appear on the desktop with icons?

  • I have a HP Pavilion g6z-2200 upgraded to 8.1 got a blank screen,

    i have a HP Pavilion g6z-2200 upgraded to 8.1 got a blank screen, revert back to 8, now i can't get any of my apps back because they want me to upgrade to 8.1 how do i know if it's safe?

  • Get Info panel keeps disappearing below bottom edge of screen

    I'm sure I'm not the only one who has ever experienced it . . . but after clicking on Get Info, the panel does appear, but within a nanosecond it slips below the bottom edge of my screen. No matter how rapidly I try to catch it, it always sleeps away

  • Error after update attempt - question on reinstalling

    I tried to update iTunes this weekend and I got an error doing so.  Now ever time I try to start it I get an error (something about illegal access of the C runtime library, IIRC).  I've tried to "repair" but that gives the same result.  I'm thinking

  • Events on iTouch are disappearing!!!

    I KNOW I entered an event on my iTouch last week, but when I synched, it disappeared and didn't appear on my Outlook. HELP! I've searched my settings on iTunes, but can't figure out what would cause it to do that.