Dump with SQL Sentences

Hi
I 'm using SQL sentences in a customer program, for example:
        EXEC SQL.
          INSERT INTO ORAGNI.V_SALDOS_FATPO@INT
          VALUES (:TI_SALIDA-PERNR,
                  :TI_SALIDA-NAME1,
                  TO_DATE(:C_FECHA, 'dd.mm.yyyy'),
                  :TI_SALIDA-DISPO,
                  :TI_SALIDA-SALDOP,
                  :TI_SALIDA-SALDOAU,
                  :TI_SALIDA-SALDOAO,
                  :TI_SALIDA-SALDOAPO,
                  :TI_SALIDA-SALDOAE,
                  :TI_SALIDA-SALDOAD,
                  :TI_SALIDA-DARMC,
                  :TI_SALIDA-SALDOT,
*                :TI_SALIDA-SYSID,
                  :V_FONDO,
                  :TI_SALIDA-ULTIMO_DIV)
        ENDEXEC.
    EXEC SQL.
      COMMIT WORK.
    ENDEXEC.
But i have a dump when I run this program, this is part of the dump:
Errores tiempo ejecucióDBIF_DSQL2_SQL_ERROR         
       ocurrido el     07.10.2008 a  14:59:31
SQL error 1722 occurred when executing EXEC SQL.                              
-----------------¿Qué ha sucedido?
The error occurred in the current database connection "DEFAULT".              
Other Dump:
Errores tiempo ejecucióDBIF_DSQL2_SQL_ERROR         
       ocurrido el     07.10.2008 a  14:59:31
SQL error 1722 occurred when executing EXEC SQL.                              
-----------------¿Qué ha sucedido?
The error occurred in the current database connection "DEFAULT".              
How can i do to catch this mistake  ?? maybe i can to use catch ... endcatch ¿how can i use it?
Regards
Gregory

Hi,
01722, 00000, "invalid number"
// *Cause:
// *Action:
You must be writing invalid number into a numeric field, Please check the values in the individual fields using trace and compare with the Field definition to find the error.
Thanks and Best Regards,
Sunil.

Similar Messages

  • Please, help me with sql sentence

    hi everybody
    i have this sentence
    UPDATE RECIBO SET RECARGO = (SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_PAGADO FROM RECIBO WHERE N_RECIBO = '0001')) / 12 FROM DUAL);
    this sentence gives no erros, but in fact i want the FLOOR of that result (somethig like this):
    UPDATE RECIBO SET RECARGO = (SELECT FLOOR((SELECT MONTHS_BETWEEN (SYSDATE , (SELECT F_PAGADO FROM RECIBO WHERE N_RECIBO = '0001')) / 12 FROM DUAL) , 0) FROM DUAL);
    but this gives the error:
    ERROR en línea 1:
    ORA-00909: número de argumentos no válido
    please, could somebody help me to get the flloor of the first sentence? thanks!

    Here you go:
    UPDATE recibo
    SET    recargo = FLOOR(MONTHS_BETWEEN(SYSDATE , (SELECT f_pagado
                                                     FROM   recibo
                                                     WHERE  n_recibo = '0001')))

  • Area or view of sql sentences with error??

    Hi Gurus!
    I wanna know if is there any view or something like that, where I can look for a sql sentence with error?
    The views V$SQL, V$SQLAREA, V$SQLTEXT doesn't work for that because they have de last rigth sql sentences and I need the last with error.
    Thanks in advance.

    SQL Developer maintains a history of the SQL statements that it has issued over time. That is a purely client-side function, though, it just tells you what SQL has been issued by the local client. It doesn't tell you anything about what SQL has been sent to the server by other client applications on the client machine or from other client machines.
    Justin

  • Using Interactive Report with SQL query accessing tables via db link

    Is there a known issue with using the interactive report in version 3.1.2.00.02 with SQL that is accessing tables via a database link? I get the error 'not all variables bound', I do not get this error when using the standard report for the same SQL?
    Thanks,
    Edited by: [email protected] on May 26, 2009 2:59 PM

    Varad,
    Good question, failed to check that. In fact there are errors. Dump file c:\oraclexe\app\oracle\admin\xe\bdump\xe_s002_3640.trc
    Mon Jun 15 08:48:11 2009
    ORACLE V10.2.0.1.0 - Production vsnsta=0
    vsnsql=14 vsnxtr=3
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    Windows XP Version V5.1 Service Pack 3
    CPU : 2 - type 586, 1 Physical Cores
    Process Affinity : 0x00000000
    Memory (Avail/Total): Ph:1051M/2038M, Ph+PgF:2273M/3934M, VA:1302M/2047M
    Instance name: xe
    Redo thread mounted by this instance: 1
    Oracle process number: 16
    Windows thread id: 3640, image: ORACLE.EXE (S002)
    *** ACTION NAME:(PAGE 2) 2009-06-15 08:48:11.743
    *** MODULE NAME:(APEX:APPLICATION 112) 2009-06-15 08:48:11.743
    *** SERVICE NAME:(SYS$USERS) 2009-06-15 08:48:11.743
    *** CLIENT ID:(ADMIN:232384011651572) 2009-06-15 08:48:11.743
    *** SESSION ID:(24.931) 2009-06-15 08:48:11.743
    *** 2009-06-15 08:48:11.743
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [ACCESS_VIOLATION] [_LdiDateFromArray+55] [PC:0x608B04F3] [ADDR:0x0] [UNABLE_TO_WRITE] []
    Current SQL statement for this session:
    select Stage,Procedure,Stp,FW,Reslt,MSG,date_run
    from bi_msg_VW@dwitnm
    order by 1
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2FE1EA14 1207 package body SYS.DBMS_SYS_SQL
    2FE1F064 328 package body SYS.DBMS_SQL
    2ABDC520 5097 package body APEX_030200.WWV_RENDER_REPORT3
    2BD5E55C 1538 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    2BD5E55C 366 package body APEX_030200.WWV_FLOW_DISP_PAGE_PLUGS
    335BDA88 11190 package body APEX_030200.WWV_FLOW
    2BDBD1C8 255 procedure APEX_030200.F
    2AB58D10 30 anonymous block
    ----- Call Stack Trace -----
    I didn't include the call stack, it is too large. Now I'm even more puzzled that the IR would work while a sql report would fail.
    Bob

  • How to export data and SQL sentence?

    Hi all,
    I need to create SQL sentences with INSERT INTO clauses of exported data from a table to populate another table?
    Thanks and best regards,
    Carlos N.

    Inserting one row at a time is inefficient.
    You can do this instead
    SQL> select decode(rownum,1,'Insert all'||chr(13),'     ')||
      2  'into emp (empno,ename) values ('||empno||','''||ename||''')' from emp
      3  /
    DECODE(ROWNUM,1,'INSERTALL'||CHR(13),'')||'INTOEMP(EMPNO,ENAME)VALUES('||EMPNO||','''||ENAME||''
    Insert all into emp (empno,ename) values (7369,'SMITH')
         into emp (empno,ename) values (7499,'ALLEN')
         into emp (empno,ename) values (7521,'WARD')
         into emp (empno,ename) values (7566,'JONES')
         into emp (empno,ename) values (7654,'MARTIN')
         into emp (empno,ename) values (7698,'BLAKE')
         into emp (empno,ename) values (7782,'CLARK')
         into emp (empno,ename) values (7788,'SCOTT')
         into emp (empno,ename) values (7839,'KING')
         into emp (empno,ename) values (7844,'TURNER')
         into emp (empno,ename) values (7876,'ADAMS')
         into emp (empno,ename) values (7900,'JAMES')
         into emp (empno,ename) values (7902,'FORD')
         into emp (empno,ename) values (7934,'MILLER')
    select * from dual ; --- // Add this statement manually or in the script
    -- // using prompt statement in sqlplus SS

  • Issue with SQL Developer connect to SQL server

    I'm using "SQL Developer 2.1.1.64.45" to work on a migration project which needs to convert a SQL server database to a Oracle 11g database. But I got an issue when I setup the SQL server connection. The SQL Developer let me connect by selecting a SQL server database name (For example: Northwind), but once connected, it always connected to "master" database instead. The "SQL Developer" is running on Windows 7 Professional (x64) platform. My Oracle database is 11g, and SQL server database is SQL 2005. And my SQL server instance name is "SQL2005". Anyone have ever experienced this problem? Thanks in advance.
    Edited by: user8276338 on Feb 8, 2011 1:05 PM

    Hi Bob,
    Thanks for the feedback, lets stick with SQL Developer 3.
    Correct me if I'm wrong,
    You attempted to migrate from SQL Server to Oracle including target generation and datamove in one go, by filling in each step of the migration wizard to the end.
    During the datamove you got
    ORA-01000:maximum open cursor exceeded
    So it looks like SQL Developer during the migration is not closing cursors fast enough and hits the maximum number of open cursors in your Oracle database.
    I think the default max open cursors is 300 in Oracle.
    There are a few things we can do here.
    You should be able to see the new migration project in your Migration Projects navigator.
    By navigating down the project tree to "Converted Database Objects" we can attempt the data move again by right clicking and choosing "Data Move".
    But first I would restart SQL Developer so as to free up any lingering open cursors.
    That may allow you to complete the data move, as the only cursors being open are being used in the data move and not some cursors which may have been left open from previous steps in the migration.
    Now from my perspective I would like to identify where are we leaving open the cursors, so I'm going to setup some testcases my end to see if I can replicate.
    From your perspective Id presume you just want to move on with the migration.
    So if the above (shutdown and attempt just the data move) doesnt workyou could
    A) Increase the MAX OPEN CURSORs on your Oracle databases so it complete the data move
    or
    B) Use the offline data move technique.
    A) Increase MAX OPEN CURSORs
    This wiki explains how to do that, looks like 1000 is fairly common, but even a much larger number is not a problem
    http://wiki.oracle.com/page/OPEN_CURSORS
    ALTER SYSTEM SET OPEN_CURSORS = 10000;
    OR
    B) Offline Data Move
    If you are moving large amounts of data (say > 1GB), then the standard data move (we call it online), which just uses JDBC to SELECT * FROM and INSERT INTO may not cut the mustard.
    In this case you can try using our offline technique. SQL Developer will generate a set of scripts for you.
    unload_script.bat will use SQL Servers BCP tool to dump out the table data into DAT files.
    oracle_ctl.bat will load the data in the DAT files into Oracle.
    As we know the names of all the tables, columns ,both SQL Server and Oracle, we can generate fairly good scripts.
    The benefit of this technique is large amounts of data can be migrated and you get to use tools designed to dump data and load in data, so you have better error logging and tweaking.
    To attempt this in the Migration Wizard , Data Move page, select offline.
    If you can describe your database a bit (number of tables, number of procedures, amount of data to migrate) I may be able to define my testcase better so I can replicate the issue.
    Thanks
    Dermot
    SQL Developer Team.

  • Connection with SQL Server using DBCO

    Hi,
    I want to connect to Misrosoft SQL Server using DBCO transaction. I have given the following fields.
    DB Connection = test
    DBMS = MSS
    User Name = user02
    password = test
    Conn. info = MSSQL_SERVER=tcp:10.100.50.36 MSSQL_DBNAME=New_Wisdom
    permanent selected
    Connection Limit = 5
    Optimum Conns = 2
    while executing through the statement as follows,
    EXEC SQL.
    CONNECT :'TEST'
    ENDEXEC.
    I am getting the dump ' An SQL error occurred when executing Native SQL.
    The error 900 occurred in the current database connection "DEFAULT".' Please suggest me what needs to be added or corrected.

    Hi Benito.
    I'm not very familiar with MSS but maybe the following will help a little bit.
    Depending on the version of your SAP system you can use the transaction DBACOCKPIT to add connections to non-SAP databases. There is an test connection button in that transaction, too. You will find some information about that transaction in some whitepapers here in the SDN. For example have a look at this one: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1062428c-f1df-2910-b08f-c322feddcd10
    ADBC error 16 is just "something went wrong". Is your SAP system using MSS, too? If not you will need the matching DBSL for it on your SAP system.
    If you have set up an connection you can use program ADBC_TEST_CONNECTION to check if everything is ok. If I remember it correctly in case of errors it allows you to jump into the trace file. There you should find some usefull information.
    Perhaps asking in the Database&OS forum area (there is a MSS forum) might help, too.
    Best regards,
    Jan

  • BO Error - Connection or SQL sentence error (DA0005)

    Hi All,
    I am facing an issue while connecting to BO -
    Connection or SQL sentence error (DA0005)
    Exception: DBD, ORA-12170: TNS:Connect timeout occuredState: N/A
    Funny thing is, this error occurs on some machines, whereas on some it does not. There, BO works pretty smooth. We tried exchanging the TNS files between machines, tried matching the firewall rules, but nothing works.
    Any ideas on why this is happening? Thanks a lot in advance!
    Cheers,
    Akshay

    Our issue seems very similar to yours. The errors we have are:
    Connection or SQL sentence error (DA0005). Unable to create connection.
    or
    A connection required to refresh this document is unavailable (DA0004)
    or
    Cannot open file due to unknown error (FRM0007)
    I've tried lots of posts on google but couldn't find proper solution.
    Desperately looking for help as the users are just not able to work with this kind of errors
    and there's still time for us to commence the upgrade.
    Wondering what's your environment. Ours as below:
    BOXI R2 sp6
    Database: Oracle 11g

  • (Error: BOMGR 0060) IDispatch error # 109 Connection or SQL sentence error

    Hi all members
    BO version: BO 6.5
    My client is facing following error in Infoview all of sudden for last 2 weeks while viewing the published reports in an Infoview.
    BusinessObjects server process raised an automation exception. (Error: BOMGR 0060) IDispatch error # 109 Connection or SQL sentence error.
    (DA0005): [Exception: DBD, ORA-12154:
    TNS:could not resolve the connect identifier specified State: N/A] The following data providers have not been successfully refreshed:
    SQL 1 with XYZ. (DMA0007): (BSSBUWSIT0001.xxxxxx.com)
    (returned by function Refreshing Document
    Following is the wording of my client
    "it comes to all reports, only few run smoothly, and if we restart the server it goes immediately otherwise it takes some time to get disappearu2026"
    Kindly any member guide me for the resolution of this problem.
    Thanks in advance
    Regards,
    Izhar
    Edited by: izhar ahmed on Sep 29, 2008 12:03 PM

    Hi Izhar,
    Could you please review the following information it might help you to resolve the issue.
    You need to check the following things.
    Things to check:
    1. ORACLE PATH in client SYSTEM VARIABLES:
    On the Windows 2000 CLIENT user machine:
    - Right-click on "My Computer" and select "Properties". The "System Properties" window appears.
    - Go to the "Advanced" tab and 'Environment Variables' and under 'System Variables' window the 'path' variable.
    - Click on 'Edit' and copy and paste the info into this case notes. Check if there is more than one Oracle home defined in the "Path" system variable.
    - If there is more than one Oracle home defined, then edit your "Path" variable so that only one Oracle home is defined.
    2. TNSNAMES.ORA:
    - Check to see if any multiple copies of the "tnsnames.ora" file and the "sqlnet.ora" file are identical to each other.
    There may be a problem with certain lines contained within the tnsnames.ora in C:\ORANT\NET80\ADMIN folder.
    eg: [(COMMUNITY = TCP.world), (GLOBAL_NAME = LIVEServer.world)]
    3. OCIW32.dll Search for these on client machine
    You may have a copy of the "OCIW32.dll" file in both the Oracle client/bin and the other <Oracle application>/bin directories.
    Rename or remove the "OCIW32.dll" file located in the other Oracle application /bin directory.
    Note:
    Please make sure that you have installed only one version of Oracle middleware, which must be the same version as the query database (ie NOT SQL Net 2.3 if you are connecting to a Oracl 8.1.6 query database)
    4. CHECK THE REGISTRY ORACLE_HOME:
    Check if one version of middleware on that machine, by the registry contacts. BO will look for the middleware in:
    HKEY_LOCAL_MACHINE/Software/Oracle : ORACLE_HOME
    Other Business Objects tests to carry out:
    1. import the universe via Supervisor and go into properties -> Test connection. Any errors?
    2. Check the connection - 'Edit' --> Database Engine - which Oracle driver version is being used for this universe?
    3. Check the universe domain by clicking Tools -> Repository -> Click on Universe domain and Test. Also click 'Modify' to select the correct Oracle driver version.
    *********MORE*****
    In order to find in it all information for the connection to the database BO always checks the path of the middleware (Control Panel -> System -> Environment -> Path (eg C: ORANT) and uses the first occurrence of ociw32.dll found within the %path%. Business Objects also reads the Oracle registry and the value ORACLE_HOME to find the list of TNS but it cannot deal with two different versions of Oracle.
    Consequently, both need to be synchronized to avoid a problem.
    Regards,
    Sarbhjeet Kaur

  • How to execute a SQL sentence in a package?

    Hi everybody!!
    After executing the standard Copy package I need to execute a SQL sentence (an INSERT INTO database), I don't know the easiest way of doing this. I've tried to modify the Copy package adding an additional DumpLoad Task but it doesn't work.
    ¿Can anybody tell me how could I execute a SQL sentence when running a package?
    Thank you in advance
    Pedro

    I think you will need to edit or copy the existing SSIS package.  Then in the SQL BIDS tool, open the package, add a new SQL based TASK, such as SCRIPT TASK or EXECUTE SQL TASK to the process and add the flow link.  Once you have added what you need, the easiest thing is to save the package back to the BPC location with a new name, add the new package to the DM list via the BPC client, and test. You will need access to the file server for BPC and the SQL DB system.
    Hope that helps.

  • Starting with sql

    Hello!!
    I've got two computers, and one of them with ora11g. I can connect to it throught EM, and now I'm wondering how could I launch sql sentences to it.
    I could access to the windows 2003 console through remote desktop connection, but I don't know If there are any other way to do it.
    Thanks.

    Sounds like you want to access your 11g database on the 1st PC from the 2nd PC?
    As Daniel said, you need an Oracle client drivers - these will provide the communication layer and link between the client and server. I suggest you download the Oracle Instant Client driver set and the SQL*Plus add-on for it. Tiny downloads.
    Unzip. Add a TNSNAMES.ORA to the directory and set the TNS_HOME environmental variable to it. Run SQL*Plus and connect to the database in order to throw "sql sentences" at it.
    It should be that simply if done correctly.

  • Dump of SQL Server 2008 R2 Enterprise

    Hi,
       How can I download the Dump of SQL Server 2008 R2 Enterprise Edition? I have the License Details. But I missed the CDs. Could you please help for the Dump collection?
    ! ! Thank You Very much ! !
    Best Regards
    +91 9871843884

       How can I download the Dump of SQL Server 2008 R2 Enterprise Edition? I have the License Details. But I missed the CDs. Could you please help for the Dump collection?
    Hi,
    If you have license key with yourself. You can download SQL Server 2008 R2 Evaluation edition. When you are installing SQL Server eval edition on license key page you would have option to select free  edition or provide License key for Enterprise edition.
    Provide License key and it would be enterprise edition after your installation finishes
    PS: if above does not helps please speak to MS personal
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Mix jython code with sql

    Hi,
    I have just read the following sentence in the odi jyhon reference:
    "Oracle Data Integrator users may write procedures or knowledge modules using Jython, and may mix Jython code with SQL, PL/SQL, OS Calls, etc."
    Does anyone of you know how jython can be mixed with SQL in a knowledge module? I just know how to embed java code with the <% %> tag. But how about jython (e.g. when used in a knowledge module task with technology = "Oracle"?
    I appreciate your help.
    best regards,
    Hans

    So Firstly I have never done this in KM but it works well in Procedure so I think it would work in a KM but I'm not sure.
    So I will show you an exemple which will be easyer than lot of explanation.
    This exemple is a step of a procedure which is supposed to send an email if there is an error in an execution.
    This Step retrieve informations about the execution as the error message or the execution context...
    In the Target Command :
    Technology= Jython
    I have :
    EmailBody = EmailBody + r'''<TR><TD><CENTER>#NO</CENTER></TD><TD>#SESS_NAME</TD><TD>#STEP_NAME
    </TD><TD>#CONTEXT</TD><TD>#DEBUT</TD><TD>#MSG</TD></TR>'''
    Contexte = '#CONTEXT'.
    --> the #variable are the informations that I will extract in the source.
    In the Source Command :
    Technology = Oracle .
    SELECT L.SESS_NO || ' / ' || L.NNO "NO", STEP_NAME, SESS_NAME, SS.CONTEXT_CODE "CONTEXT", L.STEP_BEG "DEBUT", X.TXT "MSG", L.step_rc "RC"
    FROM <%=snpRef.getObjectName("L", "SNP_STEP_LOG", "D")%> L,
    <%=snpRef.getObjectName("L", "SNP_SESS_STEP", "D")%> SS,
    <%=snpRef.getObjectName("L", "SNP_SESSION", "D")%> S,
    <%=snpRef.getObjectName("L", "SNP_EXP_TXT", "D")%> X
    WHERE L.SESS_NO = <%=snpRef.getSession("SESS_NO")%> AND
    L.SESS_NO = SS.SESS_NO AND L.NNO = SS.NNO AND S.SESS_NO = L.SESS_NO AND
    STEP_STATUS = 'E' and L.I_TXT_STEP_MESS=X.I_TXT and X.TXT_ORD=0
    And with this the Jython keep the information of the Query...
    So I would like to apologize cause in my last post I have inversed the Target and the Source... Sorry. Hope that your problem didn't come from here...
    Evidently you will have SQL as Source and Jython as Target...

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to do it with SQL Loader

    All,
    I have two tables HEADER_TABLE and LINE_TABLE. Each header record can have multiple line records. I have to load data from a flat file to these tables.Flat file can have two types of records. H-Header, L-Line. It looks as follows.. Each H record can have multiple corresponding L records
    H..........
    L.......
    L......
    L......
    H.........
    L.......
    L......
    L......
    I have HEADER_ID column in HEADER_TABLE and HEADER_ID, LINE_ID columns in the LINE_TABLE.
    While loading data using SQL Loader, I need to generate HEADER_ID and LINE_ID values as follows and load them.
    H..........<HEADER_ID = 1>
    L....... <HEADER_ID = 1><LINE_ID = 1>
    L...... <HEADER_ID = 1><LINE_ID = 2>
    L...... <HEADER_ID = 1><LINE_ID = 3>
    H......... <HEADER_ID = 2>
    L....... <HEADER_ID = 2><LINE_ID = 4>
    L...... <HEADER_ID = 2><LINE_ID = 5>
    L...... <HEADER_ID = 2><LINE_ID = 6>
    Is it possible to do this with SQL LODER?
    I tried to do this with sequences. But it loaded the tables as follows.
    H..........<HEADER_ID = 1>
    L....... <HEADER_ID = 1><LINE_ID = 1>
    L...... <HEADER_ID = 1><LINE_ID = 2>
    L...... <HEADER_ID = 1><LINE_ID = 3>
    H......... <HEADER_ID = 2>
    L....... <HEADER_ID = 1><LINE_ID = 4>
    L...... <HEADER_ID = 1><LINE_ID = 5>
    L...... <HEADER_ID = 1><LINE_ID = 6>
    Thanks
    Ketha

    Morgan,
    Examples given in the link are quite generic and I have tried them. But my requirement is focused on generating header_id and line_id values as i have described. It seems that SQLLDR scans all records for a particular WHEN clause and insert them into the specified table. I think that if SQLLDR is made to read recod in the data file sequentially, this can be done.
    ANy idea of how to make SQLLDR read the records from the file sequentially?
    Thanks
    Ketha

Maybe you are looking for

  • How to use different (not local) user for NTLM auth in Authenticator?

    Hi All, I use custom authenticator to provide user / passwords to connect to .NET Web Services. I overloaded function getPasswordAuthentication() that returns right user / password combination for the requested URL. It all works perfectly for many ki

  • How do I connect wireless keyboard to Tv

    How do I connect wireless keyboard to Apple TV

  • Spatial Index Advisor

    Hi all, Do you know why I got the following error when I try to use add a layer? Server object could not be created: server object could not be initialized: Non supported character set:oracle-character-set-560 Thanks

  • Euro cutomization not maintained

    Gurus When Iam Creating Sales Order for a customer( Export customer) the system is showing the error "Pricing/euro: Attention: Euro Customizing not maintained" But the document currency is in USD and Exchange rate is already maintained for USD. So wh

  • Would the retina 15 inch be a good laptop for 3D animation and design?

    Being a student, a laptop is the best for me being as I'm never at my apartment to use a desktop.  It would be maxed out with ram. I want a laptop that can run 3DS Max and Photoshop at the same time and not feel sluggish. If its not possible with thi