SQL Anwhere & Crystal XI

Post Author: gchambers01
CA Forum: Data Connectivity and SQL
I just upgraded to SQL Anywhere version 10, now when I refresh a report I get the DSN dialog box asking for the password, even though the password has been saved in the DSN. I'm also using the RDC in my application and tried using the LogOnServer method and enter the password there, but I don't think the DLL that is passed is optional and I couldn't find the name of the DLL I should pass as a paramter.

Post Author: gchambers01
CA Forum: Data Connectivity and SQL
NewsGroup: 
ianywhere.public.general
Date: 
May 25,2007  09:25 am
Created by: 
Geoffrey Chambers
Topic: 
Re: Using the RDC and SQL Anywhere
If anyone is interested, this seems to work. oDoc := oCRW:openreport(report)
oDoc:Database:tables(1):connectionProperties("password"):value
:= "sql"
I'll need to subclass my report object and add methods like
password()
oReport:password = 'sql' to hide the complexities of the
call.
Since i still get the dialog box for password when I use Crystal Reports directly, I think Crystal Reports/Business Objects needs to update a DLL to work with SQL Anywhere 10

Similar Messages

  • How to write SQL in crystal report that can reuse SQL execution plan cache?

    I write the following SQL with crystal report parameter fields, and it is connecting to SQL 2005
    Select Name from Customer where CustID = '{?CustID}'
    The SQL profiler show that It is an ad-hoc query, how to write parameterized SQL which can reuse Execution Plan.
    Edited by: Chan Yue Wah on May 14, 2009 3:17 AM

    Since there are too many report, it is not possible rewrite all. Is that crystal report do not have option to change how it query the database ?

  • SQL Developer Seems to have messed up SQL Plus & Crystal Connectivity

    Hi all,
    previously I have been able to connect to a DB via SQL Plus. Also, I have been able to report on it with Crystal Reports XI.
    I'm not certain, but I believe this has occurred since installing SQL Developer?!?!? Since once I installed, no need to use SQL Plus anymore and just haven't needed Crystal for a while.
    My TNSNames.ora in C:\oracle\product\10.2.0\client_1\NETWORK\ADMIN seems fine (it worked before)
    SQLNet.ora has the following in it......
    #SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= ( TNSNAMES, EZCONNECT )
    A TNSPing returns.....
    C:\>TNSPING PVNGDEV1
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 09-SEP-2
    008 17:28:21
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    C:\oracle\product\10.2.0\client_1\network\admin\sqlnet.ora
    TNS-03505: Failed to resolve name
    C:\>
    When I try and create a connection via Crystal I get....
    Crystal Reports
    Failed to open the connection.
    Details: ORA-12154: TNS:could not resolve the connect identifier specified
    [Database Vendor Code: 12154 ]
    This is sending me absolutely crazy and have already spent 1/2 day trying to fix it.
    Please - any ideas?
    Regards
    DC
    SQL Developer 1.5.1
    Oracle Client 10.2
    Crystal Developer XI

    PROBLEM SOLVED - WHAT A MYSTERY and a WASTE OF MY TIME.
    APOLOGIES TO SQL Develoepr for being the prime suspect - I still love you!
    TNSNAmes.ORA as follows works!!!!!!
    pvngdev1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ********)(PORT = 1521))
    (CONNECT_DATA =
    (SID = pvngdev1)
    However, the following does not
    PVODB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PVODB)
    PVOQA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SID = PVOQA)
    # - Enterprise Reporting
    ERSDEVDB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SID = sasrpt)
    (SERVER = DEDICATED)
    # - PVNG
    PVNGDEV1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PVNGDEV1)
    PVNGQA1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PVNGQA1)
    DESTDEV1 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = *******)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = DESTDEV1)
    Why is this.
    I guess I 'll build up TNSNAmes connection by connectuion and test and see how I get on.
    Regards all
    DC

  • How to extract embedded SQL from crystal reports 8.5

    I have a report created in version 8.5 with data source as crystal query (.qry) published on Crystal enterprise server.
    I have lost Qry file but the report is running by executing the embedded SQL. Is there any option where I can extract the SQL statement that is embedded in the report file.

    Hi,
    Go to 'Database' menu
    select 'Database Expert....' submenu
    It'll open 'Database Expert window. On right side of this window it shows 'Selected tables'. Under that it shows databsae name and the query used. Right click one it and you should see
    Edit,
    View, and
    Add to Repository options.
    Hope this will help.

  • A strange issue on PL/SQL and Crystal report

    A Crystal rpt file (version=8.5) is called through CRAXDRT.DLL by a VB6 exe. This rpt file has two linked sub-reports. There are 3 Oracle stored procedures behind the main report and two sub-reports. I found that the stored procedure behind the main report is always called twice within the same Oracle session when the VB based report is run. Did someone else ever meet the similar situation and know why?
    Thanks in advance!

    Thanks for your response. In fact, the stored procedure for the main report is responsible for querying data and inserting them into a oracle table (report table); the stored procedures for the sub-reports only summarize the data stored in the above report table. The main stored procedure are not called in the stored procedures for the sub-reports. I attach a field consisting of the current Oracle PL/SQL session number and system time to each recod in the report table. So I can trace the process of inserting data by the main stored procedure and found that the main stored procedure actually insert the same data twice within the same Oracle session.
    Thanks

  • Passing SQL to Crystal Reports Server using JAVA

    Hi all,
      We are in the process of redoing our Java app and we would like to create SQL query and pass this to Crystal Reports Server to have it generate a report.
      I've looked all over but still could not find any info on it.  Does anyone know how this is done or know where I can find some information on this?
      I've looked at some of the examples from BO but did not find anything relating to what I need to have.
    Thanks in advance.
    -S.C.-

    Hey,
    Have a look at https://boc.sdn.sap.com/node/452
    There some other great webinars on the left side also.
    Hope that helps.
    Else if you wanting to run some SQL before loading the report search for something along the lines of:
    (But I warn you this is not the correct coding, I have just quickly cut and paste a
    few bits from one of my reports but you should get the idea, hopefully,
    might have to use your imagination.)
    Connection connection = null;
    CallableStatement cs;
    Class.forName(dbDriverName);
    // Create a connection to the database
    connection = DriverManager.getConnection(dbConnectionURL, dbUsername, dbPassword);
    // Call a procedure with one IN parameter
    cs = connection.prepareCall("{ CALL " + str_ProcStatement + "}");
    cs.setString(1, str_Param1);

  • Joining tables with SQL in Crystal XI

    I am new to Crsytal Reports. I want to join 2 tables using a formula, which I am trying to do in SQL. I created a simple test report and I can get it to work if I don't put any fields on the report from the joined table.  ie  -  if I just use fields from "sal-rep" the report works.  As soon as I add a field from "freight" (my joined table) the report will not display anything.  (but I don't get any error messages - just a blank report).  Here is my SQL: 
    SELECT "sal-rep"."full-name","sal-rep"."invoice-nbr","freight"."misc-charge-ammount"  FROM   "PUB"."sal-rep" INNER JOIN "PUB"."FREIGHT" ON ("sal-rep"."invoice-nbr"="freight"."invoice-nbr")  WHERE  "sal-rep"."invoice-nbr"='0000189957'

    I got it to work!!!   This is the SQL I used -
    SELECT "sal_rep"."full-name", "sal_rep"."invoice-nbr", "freight"."misc-charge-ammount", "freight"."invoice-date"
    FROM   "PUB"."freight" "freight" INNER JOIN "PUB"."sal-rep" "sal_rep" ON ("freight"."invoice-nbr"="sal_rep"."invoice-nbr") AND ("freight"."invoice-date"="sal_rep"."inv-date")
    WHERE  "sal_rep"."invoice-nbr"='0000189957'
    Now when I look at the Table used in Database expert it lists -  Command and Freight.
    Before it was listing Command and Sal-Rep. 
    Not sure I understand why, but at least it's working.
    thanks for your help - really appreciated!

  • Crystal Develop and Production Guidelines in SQL Server (Crystal 9)

    We have development and production environment on 2 different machines.
    It seems when we want to migrate a report from dev to prod, we need to reset the DSN or connection and crystal then forces us to respecify all field names in a report.
    It is a big pain. Has anyone seen this?
    Thanks
    Ken Light
    DBA Interior Health

    Hi
    When you migrate a report, you need to
    - Create a DSN with same name on Production as it was on Test.
    - Do a set Datasource location.
    - Verify database to ensure all changes made in the database are reflected.
    - If you have used stored procedure with parameter in your report, then uncheck the above option and then refresh the report.
    Hope this helps!!!
    Regards
    Sourashree

  • Modify SQL query in Crystal Reports 2013

    Bonjour,
    Je voulais savoir s'il était possible de modifier la requête SQL dans Crystal Reports 2013, car les bases de données de notre application pour bibliothèque utilise un format de date particulier qu'il nous faut corriger directement dans la requête SQL.
    Merci pour vos informations.
    Cordialement
    Claude Marcilly
    Cannes - France
    Hello,
    I wanted to know if it was possible to modify the SQL query in Crystal Reports 2013. Databases of our application library indeed use a particular date format that we need to fix directly into the SQL query.
    Thank you for your information.
    Best regards
    Claude Marcilly
    Cannes - France

    Hi Claude,
    If you are creating reports using tables then go in Database menu and click on show SQL query, this will show the SQL generated by crystal reports.  Now go in database expert and expend your connection and double click on Add Command and past the query which was generated by Crystal and try to modify the date format and click OK.
    Now you need to redesign your reports based on Add command.
    or
    If your reports datasource is Add command you can directly go in add command and change it.
    -Sastry

  • EDITING SQL SCRIPT IN CRYSTAL REPORTS

    I just installed Version 12 and am trying to edit SQL scripts in Crystal Reports that were created in Version 8.  When opening the Database tab on the Main Menu, the Query Panel is greyed out and not accessible.  I can view the SQL Query but cannot edit it.  If someone can advise me what to do I would be very appreciative.
    Edited by: Frank Romano on Mar 18, 2009 4:17 PM

    Hi Frank,
    Here is the SAP Note that says that you cannot edit SQL from Crystal 9 and later
    Symptom
    In Crystal Reports (CR) 8.5 and earlier, it is possible to edit the SQL statement in the 'Show SQL Query' dialog box. Doing so allows the report designer to modify the SQL statement that CR generates. Starting with Crystal Reports version 9, users are no longer able to modify the SQL in the 'Show SQL Query' window.
    How can you control the SQL statement that Crystal Reports sends to the database?
    Resolution
    To control the SQL statement that Crystal Reports 9 and later uses, use the 'Add Command' feature to create a Command Object. The 'Add Command' feature replaces the ability to edit SQL statements in the 'Show SQL Query' dialog box. Use this dialog box to write your own SQL command (query) which will be represented in Crystal Reports as a Table object.
    More Information
    Additional information about creating and using Command Objects ('Add Command') can be found on our support site and within the Online Help file contained in Crystal Reports.
    On our support site search for the technical brief, cr_query_engine.pdf and knowledge base article c2016641 at
    http://support.businessobjects.com/search
    Keywords
    OBJECT ADD COMMAND EDIT SHOW SQL QUERY DATABASE ACCESS MENU MODIFY SQL Crystal Reports Show SQL query Command object , c2017389
    Regards,
    Raghavendra

  • Please help: how to connect to SQL Server Analysis Service (OLAP cube) with Crystal Re[ort XI

    I'm trying to connect to an OLAP cube on our SQL Server 2005 machine which is running Analysis Services (9.0).  When I am trying to use the Crystal Reports menu follow steps mentioned below:
    1) New report -> Standard Report Wizard
    2) Create New Connection -> OLAP -> Add
         Source Type: MS OLE DB Provider fir Analysis Service 9.0
    But when I click buttone 'Test', CR prompt me: The connection could not be establiched. Faild to set properties.
    HOWEVER: I can connect SQl Server Analysis Server with Excel and other Report tools.
    Our softwares are as mentioned following:
    - OS: Windows 2003 Server
    - SQL Server: SQL Server 2005 Enterprise
    - Crystal Reports XI Release 2 Developer Edition
    And SQL Server & Crystal Report are running in the same PC.
    Any help?

    Please re-post if this is still an issue with your OLAP Connectivity please post to Business Objects  » Other Business Objects Products Forum or purchase a case and have a dedicated support engineer work with you directly

  • Not able to see the crystal reports XI version in the IE 7 and IE 8

    Hi Team,
    I am using web based application developed in VB,ASP,SQL SERVER,Crystal Reports(XI). I am able to see the Crystal Reports in IE 6. But i am not able to see the reports in IE 7 and IE 8. While clicking on the reports button it is showing the  red X image top left cornor.
    I am using CrystalActiveX viewer11 version for viewing the reports.
    In IE 6,if the client using fiirst time for vieiwing the reports,it will ask the Activexviewer control prompt and says ok,it will display the reports.
    Thanks and Regards
    Eshwar

    Thanks your advise.But we are using following crystal reports (XI) version and we don't have CRXI with R1 and R2.
    CurrentVersion:11.0.0.895 ( CR Developer and Product Type:Full)
    Crystal Reportviewer11 configured in the IIS which is version (5.0). and configured the virtual folder to C:\Program Files\Common Files\Business Objects\3.0\crystalreportviewers11\.
    Our web application code also configured in the IIS at same level.
    When the user wants to see the reports through the application,it will ask the Plugin of Crystal Report Viewer and user will download this plugin and it will save in the IE plug ins.It will ask only first time viewing the reports for the next onwards it will not ask or prompt of the Activex control.
    So please suggest me, is there any upgrade version of this Crystal Reportviewer11 needs to be installed or any browser setting need to be configured for IE 7 and IE 8.
    waiting for your reply.
    Regards
    Eshwar

  • How would you send a date-range parameter to a SQL sproc?

    Team,
    MY ENVIRONMENT
    SQL 2005, Crystal Reports for Visual Studio 2005
    MY PROBLEM
    I am authoring both a sproc and a report, so I have full control over the design. I am a SQL expert and also a Crystal 8.5 expert.
    I have done the Sproc-Report connection dozens of times.
    Please consider along with me the sequence of creating a report based on a parameterized stored procedure.
    My sproc header is shown here:
    CREATE Procedure dbo.usp_DocumentActivityReport(
         @Department NVARCHAR(50)      
       , @DateRange  NVARCHAR(50)
    ) AS
    SELECT Col1, Col2, Col3 FROM #TEMP
    MY THOUGHT PROCESS
    @DEPARTMENT is a string. That's easy.
    @DATERANGE is a DATE RANGE and I don't know how to get Crystal Reports to prompt for a date range, so I used a String parameter knowing I can parse a specially formatted string, and knowing that I can use a formula to compute the string.
    Step 1. Create the blank report, the {?Department} parameter, the {?CreationDateRange} report parameter, and the {@DateRangeText} conversion formula that converts {?CreationDateRange} to the specially formatted string.
    Step 2. Test the stored procedure.
    Tests pass; It returns data when I run it with values, with zero-length string values, and with NULL values.
    Step 3. Tie the report to the stored procedure.
    Adding the sproc directly creates two hard-wired, undeletable parameters, and returns data columns. That's no good because the user must supply the specially formatted string for the date range. So, I try using Add Command instead, with this syntax:
    {call "EXP_TEST"."dbo"."usp_CorroDocumentActivityReport" (N'{?Department}', N'{@DateRangeText}')}
    This code is accepted, but Add Command did not create any undeletable parameters at all. I guess that's OK.
    But the worst part is that it does not show any output columns with data either! AAARGH!
    Please assist with showing me the proper order to do these steps.
    BTW, here's the VB Syntax formula for {@DateRangeText}:
    Dim min As String
    dim max as String
    if HasLowerBound ({?CreationDateRange}) then
      min = ToText(Minimum({?CreationDateRange}),"MM/dd/yyyy")
    else
      max = ""
    end if
    if HasUpperBound ({?CreationDateRange}) then
      max = ToText(Maximum({?CreationDateRange}),"MM/dd/yyyy")
    else
      max = ""
    end if
    if IncludesLowerBound ({?CreationDateRange}) then
      min = "[" & min
    else
       if HasLowerBound ({?CreationDateRange}) then min = "(" & min
    end if
    if IncludesUpperBound ({?CreationDateRange}) then
        max = max & "]"
    else
       if HasUpperBound ({?CreationDateRange}) then max = max & ")"
    end if
    'formula = min & "..." & max
    formula = "(1/1/2009...3/1/2009)"
    sorry ... cross-posted per Amit

    Ludek,
    It sounds like you and The specified item was not found. think along the same lines! I have cross-posted for both of you now!
    Please see Simple Sproc Parameters question
    ~ Shaun

  • Crystal Reports not displaying all data

    We have a simple report pulling from 3 tables on a sql server. For some reason, data from one table does not fully display. The table is called Referral, and we have some clients that have a Referral record tied to them. Out of a report of 20 records, we will have 3-4 that won't display the referral data (even though I can see it in the database), but the other 16 records will. If I go into the database, and change the data on one of the non-displaying referral records and save, it will start displaying. If I then change the data back to the original, it will also display. Being new to Crystal Reports, I don't know if this is a Crystal issue or a problem at the data source, but thought I would put it out here in case someone is familiar with this problem. Our Crystal Reports version is 2011.
    Thanks.

    Hi
    This could be either table join problem in your crystal reports designer or when you are linking the tables it is unable to match the records.
    -- Go in Crystal reports designer and refresh the report and go in Database Menu--Show SQL query and copy the SQL and run the same at database end and check.
    Also you said you are able to see all records at database end, if you are extracting data through SQL you can very well copy that SQL in crystal reports under 'Add Command'  option and create your report.
    You will find Add command option under your Database connection while creating a report.
    Thanks,
    Sastry

  • Last date for an invoice formula for Crystal Reports

    Post Author: jegva
    CA Forum: Crystal Reports
    I sure hope someone can help me write a formula to list only the last dated invoice from our database.  Let me explain, our sales would like a report listing all of our customers showing their last dated invoice.  We use SQL and Crystal Reports 8.5 (yea outdated).  They are interested in showing all our customers and their last invoice/date so they can try to contact those who have not done business for some time. Please help!!!!!!!

    Hi Scott,
    One reason is the older versions introduced a .5 font reduction in the viewers. This was a good thing for some but bad thing for others so I assume what the developers have done is leave the font as is and show those # symbols now to indicate the viewer you are using and font you are using works differently on the OS and the various viewers being used.
    In CR designer it uses the GDI+ to render the data through classic C++ function calls. I .NET it too uses GDI+ but it's the Framework making the calls and the Framework handles screen mapping differently. We've had this issue/functionality limitations since version 9. Various reasons and various work arounds resulted in various outputs.
    Another reason is the C++ viewer built into the Report Designer and the .NET framework handling the fonts work slightly differently when rendering. This has been tracked and few times here by me and in both cases the cause is GDI+ has bugs in it so it's nothing we can do. Post or log your issue with Microsoft, they may be able to fix it. Once they do then if it's still a problem in CR we can fix it depending on what MS does.
    Another work around may be to use a fixed font like Courier or some other font that has a specified character area all characters use, it may make the characters space oddly but as for displaying it's always the same size.
    All I can suggest is they get into a practice of testing their reports in your app before "publishing"
    Thanks again
    Don

Maybe you are looking for

  • How to find out if sata_nv is set to AHCI or IDE?

    Hello, I'm thinking about buying a small SSD (64 GB) since I'm only using 7 GB of my 120 GB anyway. My Laptop (HP dv6365eu) is around 5 years old and only supports SATA I. Unfortunately the BIOS doesn't allow any configurations whatsoever. For best p

  • Posting to internal order via ME23n - PO

    Hi, I have set up the releavant budget profiles, linked to the internal order and activated the budget control via KO22 as well. When posting to the internal order via FI, F-02, I can get the warning message set if I have burst the budget for the int

  • Can't install latest Flash player 10.1 for Opera 10.53

    Hi all Having a weird problem installing Flash Player 10.1.53.64. Flash is only installed partially, differently from earlier versions. OS: Windows XP SP 3 (32bit) Browser: Opera 10.53 old Flash player version: 10.0.45.2 I tried updating my Flash pla

  • Line tool "snap to pixel" option?

    Hello, This issue has been bugging me ever since Adobe introduced vector shapes in PS.  Adding the "snap to pixels" option to the shapes has been awesome... but where's the love for the line tool?  I'm still forced to use the marquee tool to make a s

  • What can i do to restrict client switching between AP's

    Hello Community. Problem is in one office if the client is exact in the middle of the two AP's the clients jumps from one AP to another all the time if he moves one step to right or one step to the left. How do i change these ap switching sensing ? T