CR2008:  MySQL ODBC Connection duplicating FROM statement in SQL Expression

Maybe I'm doing something wrong here, but I think maybe I'm not and that I've found a bug.
I'm doing a very simple select statement:
SELECT count(*)
FROM labtech.computers
WHERE os NOT LIKE %server%
When I do this statement, I get an error:
Crystal Reports
Error in compiling SQL Expression :
Database Connector Error: '42000:[MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT count(*)
FROM labtech.computers
WHERE os NOT LIKE %server% FROM `labtec' at line 1 [Database Vendor Code: 1064 ]'.
OK  
There is nothing wrong with this sql statement, so I started digging a little, removing everything except for
Select *
Crystal Reports
Error in compiling SQL Expression :
Database Connector Error: '42000:[MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT *
FROM `labtech`.`clients` `clients1`' at line 1 [Database Vendor Code: 1064 ]'.
OK  
You will see that it is adding the 
FROM `labtech`.`clients` `clients1`
So, my questions is:
1) Is this an issue with CR2008 or the MySQL ODBC driver
2) If it's CR2008, how do I report it?
3) Can anybody else duplicate it?
Thanks in advance for any help.
-Scott

Hi Scott,
Lots of info in these forums, more info in the [Crystal Report Designer|SAP Crystal Reports; forum. If you search in there you'll find references to others who suggested training material. You can also click on the eLearning tab above and find more info...
Thank you
Don

Similar Messages

  • MySQL ODBC Connection

    Hi all,
    Can anyone please let me know how to make ODBC Connection with MySql in JSP.
    Steps wise explanation will be highly appreciated.
    thanks for any help in advance,
    savdeep.

    Why you go for ODBC, better to use JDBC connection.
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection connection = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/databasename", User, Pass);

  • Mysql database connection with Labwindows/CVI 2009 sql toolkit

    Dear experienced users,
    I am using the following software/hardware:
    Windows 7/ Mysql database 5.6.15 64-bit with MySql ODBC 5.2 Ansi driver installed
    Labwindows/CVI 2009 with sql toolkit
    The user DSN of ODBC Data source administrator have been confiugred to one of mysql database. The test MYSQL Connector/ODBC is succesful.
    The Labwindows/CVI build setting is configure to debug64 after trying debug (32)
    The source code is from the example readtab.c with changes to the dsn I am testing
        hdbc = DBConnect ("DSN=dvd_collection");   
    The error message I have is confusing me.
    (it is in the attachd png)
    I thought it was due to the 64 bit mysql database. That's why I tried the 64 bit build from Labwiondws/CVI. I alsow tried Labview DB tools open connect.vi. It shows me the same error.
    Any suggestion is appreciated.
    Thanks,
    Jimmy
    Attachments:
    Capture.PNG ‏24 KB

    Jimmy
    I always use connection strings of the form "DSN=datasourcename;UID=database_user_id; PWD=database_user_password".
    Where:
    datasourcename = The name of the connection defined in the ODBC connection.
    database_user_id = One of the user identities created by the database administrator. Obviously the administrator will lock down the permissions appropriate to the task in hand.
    database_user_password = The password that identifies database_user_id, again set by the database administrator.
    Note that while it is obviously desireable to lock the permissions down as far as possible on the MySQL server, the more you do so, the slower the database will run, because of the way mySQL searches the permissions tables.

  • From localdb to sql express in VS 2014

    I'm trying to update an ASP.NET Web Forms application (not written by me) from .NET 3/SQL 2005 to .NET 4.5/SQL 2014. I'm running VS 2014 on Windows 8.1.
    Originally, I set the project development environment up to use IISExpress and LocalDB, but I couldn't get that running. After several days poking around the forums and application.config, I couldn't find anything that addressed my issues, so I decided to
    install IIS. I changed the project Web properties to target the local IIS Server, I immediately got the message "This project uses SQL Server LocalDB. Microsoft recommends that you use SQL Server Express with IIS."
    Okay, I can handle that. I installed SQL Server 2014 Express (eventually...the download link in the dialog is incorrect), attached the database to the server, and changed the connection string in web.config to
             Data Source=ZEUS\SQLEXPRESS;Initial Catalog=TMS;Integrated Security=True
    So far, so still not working...I'm still getting that <insert swear word here> message about LocalDB. I've cleaned the solution, re-started my machine...nothing changes.
    I can find lots of stuff about how to upgrade from SQL Express to LocalDB, and a blog or two about how to deploy LocalDB (but the instructions seem out of date). NOTHING on how to go the other way.
    Anybody have any ideas? I'm going nuts here...worse, going broke, because I can't bill my time until I resolve this, so assistance will earn undying gratitude...
    Rebecca M. Riordan

    Might try them over here.
    Microsoft Visual Studio and Visual Web Developer Express forum on ASP.Net
    Microsoft SQL Server, SQL Server Express, and SQL Compact Edition forum on ASP.Net
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • MySQL ODBC Setup

    Post Author: Andrewr
    CA Forum: Data Connectivity and SQL
    Greetings,
    I have a question as to how to get my ODBC connection setup.
    I have XP and a Mysql DB running on a Linux Server, on my XP machine I am using the Mysql ODBC Connection tool. I have tried both the 3.51.23 and the new 5.xxxx versions of this tool.
    I know that my username and password are correct in the setup.
    Whenever I try to setup the ODBC I get the error " Request Returned SQL_ERROR"
    &#91;MySQL&#93;&#91;ODBC 3.51 Driver&#93;Can't connect to MySQL server on '192.168.0.197' (10061)
    My XP Firewall is disabled.
    Does anybody happen to have any suggestions?
    Thank you
    Andrew
    Edit: I should probably add - that I am trying to generate reports with Crystal.
    Thanks

    Post Author: Andrewr
    CA Forum: Data Connectivity and SQL
    Well - Problem is not solved yet, but I think I have it figured out.
    When I log into my Linux server, and telnet to port 3306 I get a connection, so I know that Mysql is answering.
    When I try to telnet to the server on 3306 from my windows machine, I get nothing.
    So this leads me to believe that it is a firewall issue. Even though both the WS & Server's firewalls are disabled, I do have a dedicated firewall/DHCP server on the fringes of my network. I suspect that this may be the issue. All the hostnames for all machines are correctly located in the respective hosts files. So I know that is not the issue. Just gotta setup the correct rule for the firewall - I hope.
    Thanks
    Andrew

  • ODBC connect from Oracle to MySQL!

    Dear All,
    I know its not very much related to the subject of this forum but DBA's often have to perform such tasks.
    I am in process of developing replication between Oracle and MySQL. For this I have planned to create materialized views in oracle that query MySQL database.
    I am using Oracle 11gR1 on Linux for Oracle Server and MySQL is on windows based server version is 5.1.
    I am stuck at the very first step that is to create a database link between Oracle and MySQL.
    On Oracle's server, I did the following:
    Installed unixODBC rpm (Installed successfully)
    Installed mysql-connector-odbc (Installed successfully)
    when i write this command odbcinst -j it gives the following information
    unixODBC 2.2.11
    D|RIVER........... : /etc/odbcinst.ini ; (my comments : Files exists)
    SYSTEM DATA SOURCE : /etc/odbc.ini (my comments : File exists )
    USER DATA SOURCE : /root/.odbc.ini (my comments : File DO NOT exists)
    Now i tried to add the following entry in the file /etc/odbc.ini
    [bssdata]
    Driver = MySQL ODBC 3.51 Driver
    DATABASE = bssdata
    DESCRIPTION = views_on_bssdata
    PWD =
    PORT = 3306
    SERVER = 192.168.0.68
    UID = root
    Now when i try to check the connectivity with the command:
    isql -v bssdata root
    Error: data source name not found, and no default driver specified.
    ERROR: Could not SQLConnect
    Anyone have tried this before, please help me out of it.
    Regards, Imran

    Hope these links help you :
    http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/
    http://sysinfo.bascomp.org/2008/03/setting-oracle-heterogenous-service-mysql-to-oracle/
    http://www.idevelopment.info/data/Oracle/DBA_tips/Heterogeneous_Services/HETERO_2.shtml
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Regards
    Rajesh

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • DAS Can't connect to mySQL ODBC

    Using:<BR>HPS 8.3<BR>Sun Solaris 8<BR>I've created a BQY in Intelligence Explorer that connects using mySQL ODBC in Windows XP and wanted to publish it to the web, but I needed to publish the OCE to the server and set it up with DAS.<BR><BR>Here are the steps I took<BR>1. Installed the mysql connector odbc 3.51.12 sun solaris2.8 sparc 64bit ODBC in Solaris.<BR>2. Created an odbc.ini file in Solaris with my mySQL connection settings in the home directory of the user running the services. I even made a copy of it in the $BP_HOME directory.<BR>3. Added the library path for my ODBC library to all my scripts.<BR>4. Added the data source using the service config tool.<BR>5. Restarted services<BR>6. published the OCE and BQY<BR><BR>When I access the BQY using the plug-in, it gives me <BR>"Server Error [2009]; Internal Error Detected in Data Access Service"<BR><BR>When I access it using the thin-client (iHTML), it gives me:<BR>"An Intelligence Service error has occurred.-Failed to acquire requested service"<BR><BR>What else needs to be done?<BR>I tried some the other suggestions to no avail:<BR>--added the library path  to the LD_PRELOAD variable in the $BP_HOME/bin/services.sh script<BR><BR>Also, I noticed that when I ran ServiceConfig.sh, there were no data sources to pick from the dropdown.  Anyone know how to make that active so I can just PICK the connection to use?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I'd strongly recommend that you take all that JDBC code out of your JSP. Put it into a class that you can test on the command line. Once you have it working, you can use it to get at data and pass it along to your JSP for display.
    I'd also recommend that you not use scriptlets and learn JSTL right away. MVC separation suggests that putting Java code in a JSP is a very bad idea.
    %

  • Lost ODBC Connection from development environment

    Using LV 7.1 and an Active-X based ODBC Connection scheme to a MySQL database which has worked flawlessly up until now.  I've just written an application which accesses the database to generate a 'recipe' for our operators to follow.  This is poked into a multicolumn listbox, and works perfectly from the compiled version.  However, when I'm running the very same program in the development envirnment, I will get an error which indicates I have lost the connection to the database.  Never happened from the built versions, and yes, I'm running exactly the same code.  This is irritating, as when I'm trying to debug the SQL pieces, the code crashes.  Happily, the compiled versions are working, but it makes me nervous when programs crash like this.
    I am doing a listbox refresh every 60s or so, which involves accessing the database, reading a large chunk and displaying it. Im' also doing an ODBC conncetion check every 2s, and possibly some other database access depending on the operator input.  MySQL is set up so that I can have 100 threads open at once, and I never approach that.  I always open, do command, then close and destroy connections. 
    All I can think of is that there is a difference in the timing and the database access between the developement environment and the compiled versions.
    Any thoughts anyone? 

    Hi,
    Yes, that is exactly what I have done.  Built the executable which runs without problems.
    I've also tried to strip the program down by simply running the piece which polls the database continually. This seemed to run fine until I ran another program which also accessed the same database. So, to summarize:
    1.  The development environment program with single loop running accessing the database every 2s or so runs fine.
    2.  The dev. env. app. running multiple loops possibly accessing the db concurrently crashes
    3.  The same program as 2 but built into an application runs fine.
    MSB

  • Connection with MYSQL ODBC

    Post Author: wrkwinter
    CA Forum: Data Connectivity and SQL
    Hi,   I am having problem with conecting Crystal Report XI to the MYSQL Server. I am using Mysql Connector/ODBC 3.51. I configured ODBC connection . Once i connect to MYSQL server thru Crystal Rpeort Everything works fine but after 5-10 minutes if i refresh the report I get following error.
    "Failed to retrieve data from the database"DetailsHY000:&#91;MySQL&#93;&#91;ODBC 3.51 driver&#93;&#91;mysqld-4.1.22-standard-log&#93;&#91;MySQl server has gone away&#91;Database vendor code :2006&#93; and if i log off and relog on to database everything works fine like for another 5-10 minutes and after that same ERROR  But if i use MYSQL Query Browser to connect to the database. I don't have any problem like that.  Can please explain any reason for that.....Thanks

    Post Author: synapsevampire
    CA Forum: Data Connectivity and SQL
    Check out:
    http://www.mysqltalk.org/server-has-gone-away-vt158777.html
    I'd guess that you're timing out or exceeding the number of connections.
    -k

  • Can a SQL view see data from an ODBC connection?

    Hi.  I currently have an application that pulls data from a custom SQL view in my SQL database.  This custom application can not be changed, so it expects to see the data exactly as presented by my custom SQL view.  This works fine
    when the data resides in SQL, but I am not sure if it is possible when the data resides outside of SQL.  I’d like to connect to another type of database via an ODBC connection from my SQL database, and still utilize my custom SQL view.  I would prefer to NOT
    use the SQL database as a warehouse, and simply use it to pass data.
    Is this possible?   Thank you for reading.

    Hi Robet,
    According to your description, you want to create view in SQL Server to pass data from OBDC database to custom application, right?
    In this case, we can create linked server to access an ODBC database when you are using an ODBC data source. Linked servers can use the OLE DB Provider for ODBC without using an ODBC data source. You can refer to the link below to see the details.
    http://technet.microsoft.com/en-us/library/ms191462(v=sql.105).aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Adobe LiveCycle Designer ES Error while Connecting to MYSQL ODBC Driver

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

  • Not Able to create ODBC Connections to AS400 DB2 from OWB 11g

    Hi,
    Currently i am in the process of setting up of database connections to AS400 DB2 Database from Oracle Warehouse Builder 11g.
    I installed Oracle 11.1.0.6.0 and upgraded to 11.1.0.7.0.
    I am able to create database links manually but not able to create using oracle warehouse builder.
    The error i am getting error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL7973 - SQL create package for DG4ODBCFBA in REMOTEDB has failed.
    ORA-02063: preceding 2 lines from OWB_82
    I am trying different methods from the last 2 days.
    Please help me in this situation.
    Thanks.
    Salih KM

    My Http server port is 7777. used that , it doesn't work. Using 7101(admin server port) also doesn't work.
    Testing JSR-160 Runtime ... failed.
    Cannot establish connection.
    Testing JSR-160 DomainRuntime ... skipped.
    Testing JSR-88 ... skipped.
    Testing JSR-88-LOCAL ... skipped.
    Testing JNDI ... skipped.
    Testing JSR-160 Edit ... skipped.
    Testing HTTP ... success.
    Testing Server MBeans Model ... skipped.
    1 of 8 tests successful.
    Both the cases only HTTP is success.
    Thanks
    Manish

  • ODBC Connectivity with Crystal Reports 2009 and MySQL

    Hi,
    I'm hoping someone can help me. We are currently running Crystal Reports CR Developer version 9.2.2.693 with an ODBC connection (ODBC 3.51 driver) to a My SQL database, version 4.0.18.*
    We want to upgrade to Crystal Reports 2008, CR Developer version 12.0.0.683, however when I try to run reports to the current database, I get the following error:
    *Database Connector Error: 2300:[MySQL][ODBC 3.51 Driver][mysqld-4.0.18-nt]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near  .client where 0=1  at line 1 [Database Vendor Code: 1064] *
    Has anyone encoutered this before? Do I need to get a different rev. ODBC driver? Thanks in advance for your help.

    Thanks for your suggestion, but since the same query works when I use Crytal Reports 9 to the same MySQL database, I don't think that's the issue. I wonder if it has to do with the driver.

  • Error establishing ODBC connection to Oracle database from Access 2007

    I am trying to access via linked tables from Access 2007 my ODBC connections.
    I am able to setup and test successfully in the ODBC Data Source Administrator my Data source, and Driver(Oracle in OraHome92), and I used this successfully when I had Access 2003 on this PC.
    system details: Oracle 9i, MS Access 2007 on Windows XP
    error - call failed:
    detailed error from sqlnet.log:
    Fatal NI connect error 12560, connecting to:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle)(ARGV0=oracleORCL)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))'))(CONNECT_DATA=(SID=ORCL)(CID=(PROGRAM=C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE)(HOST=USRN4WNCNH6DDQG)(USER=fznp29))))
    VERSION INFORMATION:
         TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
         Oracle Bequeath NT Protocol Adapter for 32-bit Windows: Version 9.2.0.1.0 - Production
    Time: 05-DEC-2008 11:38:05
    Tracing not turned on.
    Tns error struct:
    nr err code: 0
    ns main err code: 12560
    TNS-12560: TNS:protocol adapter error
    ns secondary err code: 0
    nt main err code: 530
    TNS-00530: Protocol adapter error
    nt secondary err code: 126
    nt OS err code: 0
    Any ideas?

    Hi,
    Please can you specify how you create your DSN for Oracle connection in ODBC Data Source Administrator?
    What did you specify for the TNS Service Name?
    What is the content of your TNSNAMES.ORA file?
    Thx
    Mireille

Maybe you are looking for

  • How to display Long text in alv output

    Hi, I have developed an ALV report.It is displaying the output. There is another requirment for alv output text field as below From the long text fields show only the first 20 characters and afterwards the long text icon. If the icon is clicked open

  • What went wrong with burning?

    I wanted to burn an iTunes folder (some 1000 songs, 4GB) into a DVD disc so I highlighted the iTunes folder and clicked the button Burn Disc on bottom right corner of the iTunes window. However, only 88 songs (or 300MB) of music was burned into a DVD

  • Link to inbox on express work item dialog box

    Hi Friends, Is there a way to delete the link to inbox from express message dialog box, for some express work items? Any input is much appreciated Thanks Vijay

  • Flash pro cs3

    this is the third time i re install the free trial version of flash pro cs3 but everytime i want to run the software i get this message : PROBLEM WITH TRIAL click next to continue and in the next page it ask me for the serial key but i dont have it y

  • .avi won't view in PSE 8

    I am running PSE 8 on a windows 7 home premium machine and the .avi files recorded off my point and shoot digital cameras will not view in PSE 8, but work perfectly in the windows picture viewer when I double click on them in the windows folder. to b