InvalidFieldtype from mysql-tables: chars instead of decimals
Fieldtype form mysql-tables accessed via ODBC
are in Crystal Reports 2008
almost all chars instead of decimals
with Crystal Reports 8 it works, with 2008 german (even with SP1) all fieldtypes are false !
Mysql -> CrystalReports
Decimal(1,0) -> Char[2] in german "Zeichenfolge[2]"
Decimal(6,0) -> Char[7] in german "Zeichenfolge[7]"
VarChar(5) -> char[5]
BigInt -> INT
MySQL 5.0.62 (on Window Server 2003)
ODBC : "mysql-connector-odbc-5.1.5-win32.msi"
Try the DataDirect 5.3 drivers available off our download site.
What do the vlaues look like? Please paste in a few samples.
Thank you
Don
Similar Messages
-
Fields missing from MYSQL table in Database Expert
I have just updgraded from Crystal XI to 2011 and I am still having issues with joining a mysql table to any other table.
Fields show up in field explorer but when I try to uise Database expert the only filed in the MYSQL table is the ID field.
Am I missing something here. Same problem with both versions. When I runa report using just the mysql table evrything works fine.Typically if the field doesn't show up the CR can't figure out what type it is which means when we query the DB for the field type the client/server returns the wrong type or some type that CR doesn't support.
How is the field defined on the server?
Thank you
Don -
Create PHP form from MySQL table structure
Hi folks
Not directly DW related, but ....
Anybody got any recommendations for a utility which would
create a quick head
start by creating the php/html code for a basic form using
the field structure
of a MySQL table ?
Thanks for any suggestions.
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.ukOn Sun, 21 Dec 2008 15:08:30 +0000 (UTC)
Joe Makowiec said :
> On 21 Dec 2008 in macromedia.dreamweaver, Ronnie
MacGregor wrote:
>
> > Anybody got any recommendations for a utility which
would create a
> > quick head start by creating the php/html code for
a basic form
> > using the field structure of a MySQL table ?
> I haven't used it, but it looks like phpmyedit may do
what you want:
>
>
http://www.phpmyedit.org/
Hi Joe
Thanks for this ...
phpMyEdit looks very good and very useful, and I'm playing
with it to see just
how configurable it proves to be.
It looks good for general admin tasks etc. bet whether it
proves suitable for
end user (public) use remains to be seen.
It is basically a class which generates the page code server
side at runtime
using the parameters you set in a calling script, but of
course you can grab
the source code for the generated page which may prove to
satisfy my initial
request.
Anyway ... from what I've seen so far I could recommend that
it is well worth
some time exploring the possibilities.
Cheers,
Ronnie
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.uk -
Hi there. I know this subject(s) may have been discussed in
the forum before, but my english tecnical terms suck and i couldn't
search for it.
So, i need your precious knowledge for the following:
I have a MySql DB. I want to get data from two tables. One
table has 'data' and another table has the 'data_description'. It's
a realestate site. One table has the 'reference' of a house and
another table has the correspondent description (description in
three languages - but lets forget this for now).
The problem is, i'm working with two record sources (one for
each table), and matching the house with the respective description
is hard. Since the record sources are orderd by the 'ID', it works
reasonably, but i want to do this the right way. (An SQL something
like 'LEFT JOIN' ?).
The second question is, once i have the data in the page,
clicking on the respective foto or text, a pop up window should
appear with all of the respective photos and description :S.
How do i do this?
Thanks a lot for your attention, hope you can give me some
help ;)Anybody?
My difficulties are in the pop up window that should get data
from two tables by the ID of the 'product'; the 'reference' of the
product and 'thumbnail' in the table of 'products', and the
respective description in the table 'product_description'.
Can you help me on this?
Thank you for your attention. -
How to insert data into Oracle db from MySQL db through PHP?
Hi,
I want to insert my MySQL data into Oracle database through PHP.
I can access Mysql database using mysql_conect() & Oracle database using oci_connect() through PHP.
Now How can I insert my data which is in MySQL into Oracle table. Both table structure are exactly same.
So I can use
insert into Oracle_Table(Oracle_columns....) values(Select * from MySQL_Table);
But again problem is I can't open both connections at the same time.
So has anyone done this before or anyone having any other idea..
Plz guide me...You can do it if you setup a ODBC Gateway between MYSQL and Oracle DB. Then you can directly read from MySQL table using DB links and insert into Oracle table in one single SQL Statement.
Otherwise you need to fetch the data from MySQL Into variables in your PHP Program and then insert into Oracle after binding the variables to the insert statement for Oracle. Hope that is clear enough.
Regards
Prakash -
SELECT from MySQL, INSERT into Oracle
Hallo,
I am new to Java.
My task is to collect data from about 30 tables inside MySQL database and then insert it to similar tables in Oracle.
Script should copy data one a day, during the night.
Number of rows in each table is about 30,000.
MySQL version 5.1
Oracle version 11.1.7
Both of them are installed on really fast servers.
The way i would do it is:
1. connect to MySQL
2. connect to Oracle
3. select data from MySQL table and insert it to Oracle table.
repeat this step for each table
More precise about SELECT and INSERT:
handle_one = "SELECT a, b, c FROM mysql_table1";
while(handle_one is true)
INSERT a, b, c INTO oracle_table1;
4. close MySQL connection
5. close Oracle connection
Is it best way?
Best Regards
slkslkLinuxUser wrote:
Script should copy data one a day, during the night.
Number of rows in each table is about 30,000.There are variations on the above depending on what the above two statements mean. -
Hi
My company just started a new project that implies migrating every hour operational data from a mysql database located at another company to our main DB (oracle10gR2). Between these two DB, we have an oracle XE DB which contains the database links to both DB and a procedure to get (from mysql) and insert (oracle10g) the values. What happens is that in the mysql DB, the values have decimals and, when i select the table in oracle, i only see integer values (no decimals). Here is an example of the select i use:
SELECT "v_hour", "v_date", "v_type", "v_tabstamp","v_value"
FROM "tab1"@mysql;
How can i work around this problem?
Many thanks!Maybe just a HS_LANGUAGE setting issue.
You could try that:
1a) in the gateway init file, please set HS_LANGUAGE=GERMAN_GERMANY.WE8ISO8859P1
2a) now open a new SQL*Plus session ans select from your table using the gateway based database link
=> if the values are now including the decimal part then your foreign database is set up to use a comma as the decimal separator and you have to make sure that the HS_LANGUAGE contains a territory that uses as decimal separator a comma.
If you still do not get the decimal values, then change it to:
1b) HS_LANGUAGE=american_america.we8iso8859P1
2b) Make sure you start again a new SQL*Plus session (the gateway init file is only read when you use the database link in your session for the first time (or explicit closed it before). Select again from your table.
=> is the decimal part now visible?
More details can be found in the gateway note: Gateway and Decimal Digits(Doc ID 1453148.1) available from My Oracle Support portal.
- Klaus -
Error while importing the tables from MySQL using the data source connection
Hi,
I am trying to import tables from MySQL into Powerpivot using the data source connection, if use the import using the Query option its working fine but not with the select list of table option.
when i click on the select list of tables option, i get the below error after selecting all the tables to be imported:
OLE DB or ODBC error.
An error occurred while processing table 'XXXXXXXXXX'.
The current operation was cancelled because another operation in the transaction failed.Hi Bharat17an,
Please provide the detail information when create the MySQL connection in your PowerPivot model. Here is a good article regarding "how to Use MySQL and Microsoft PowerPivot Together" for your reference, please see:
http://www.datamensional.com/2011/09/how-to-use-mysql-and-microsoft-powerpivot-together-2/
If this issue still persists, please help to collection windows event log information. It maybe helpful for us to troubleshoot this issue.
Regards,
Elvis Long
TechNet Community Support -
Crystal Report - More than one table from MySql
Hello, I am in need of help big time.
I have am using Visual Studio 2010 and Crystal Report 10.
The problem that I am incounting is that I am unable to retreive data from more than one table from a MySql database. I have been stuck on this for too long and need to hjump the hurdle.
I am using a MySql connection string, a dataset and a crystal report which is based on the dataset.
The main error that I am having is, the browser opens and a form appears saying "The report you requetsed requires further information" With the Server name: DataSetPropertiesDetials, while the User name and Password fields are then enabled.
I am guessing I am missing something in my code.
When I retreive data from one table the report is fine, but when I try to use more than one table it throws the error.
My Code is below and also attached:
Imports System.Data.SqlClient
Imports System.Configuration
Imports MySql.Data.MySqlClient
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.Web
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Public Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim con As MySqlConnection
Dim rpt As New CrystalReport3()
Dim myReport As New ReportDocument
Dim myData As New DataSet
Dim cmd As New MySqlCommand
Dim cmdUser, cmdProperty, cmdBranch As New MySqlCommand
Dim daBranch, daProperty, daUser As New MySqlDataAdapter
con = New MySqlConnection()
'Connection String
con.ConnectionString = "Server=****;Database=***;UID=***;Password=****"
Try
con.Open()
cmdBranch.CommandText = "SELECT branch FROM tblbranch"
cmdBranch.Connection = con
daBranch.SelectCommand = cmdBranch
daBranch.Fill(myData)
cmdProperty.CommandText = "SELECT ref, keys_held, key_no, keys_out, no_name, address_line1, address_line2,key_label FROM tblproperty"
cmdProperty.Connection = con
daProperty.SelectCommand = cmdProperty
daProperty.Fill(myData)
cmdUser.CommandText = "SELECT known_name FROM tbluser"
cmdUser.Connection = con
daUser.SelectCommand = cmdUser
daUser.Fill(myData)
myReport.Load("REPORT LOCATION")
myReport.SetDataSource(myData)
myReport.Database.Tables(0).SetDataSource(myData.Tables(0))
CrystalReportViewer1.ReportSource = myReport '
Catch myerror As MySqlException
MsgBox(myerror.Message)
End Try
End Sub
End ClassHi,
You have 3 SQL commands but you are calling SetDataSource only once. You need to look through for each of the SQL Commands.
Good luck,
Brian -
How to load a huge data file (export from mysql) to an oracle table?
I have a data file which contains 1.3G bytes table data from mysql. It's format is csv.
How can i load these data to an oracle table in java way?
I thought about using sqlldr. But it requires a oracle client which may not be permitted in my environment.
If i generate "insert " statement and use batch update the batch update will stop if it comes across an exception when executing the insert one by one. I find no "insert ingore" statement in oracle like mysql.
Is there anyone can give me a solution with high performance? It's urgent and Thanks!hsy541 wrote:
I have a data file which contains 1.3G bytes table data from mysql. It's format is csv.
How can i load these data to an oracle table in java way?
Why must it be a Java way? The point is just to move the data.
I thought about using sqlldr. But it requires a oracle client which may not be permitted in my environment.
Why not just import the .csv file into Oracle? I'm sure there's a script or utility that will do it.
If i generate "insert " statement and use batch update the batch update will stop if it comes across an exception when executing the insert one by one. I find no "insert ingore" statement in oracle like mysql.
You want to turn off transactions? I'm not an Oracle expert, but I'd be shocked if there was something you could do in MySQL that didn't have an analog in Oracle. Find a better resource, like somebody that actually knows Oracle. Who set up that database for you? Consult with them.
Is there anyone can give me a solution with high performance? It's urgent and Thanks!Urgent to you....
% -
Query from oracle to MySql using dblink fetch all the rows in MySql table
Hello,
I am using Heterogeneous connectivity between oracle 10204 to Mysql database.
I have a database link in the oracle side .
I am query a table in MySql that have 10 million rows.
Its doesnt matter if i am running :
select * from "CDR_Accounts"@mysql where "id"=7675405;
or
select * from "CDR_Accounts"@mysql ;
There is an index on the id column.
Yet, it seems that the Mysql is feteching all the rows from the table , all the data is transfering to oracle over the dblink , and only after that the requested rows are get back to the client.
The /etc/odbcinst.ini file is as follow:
[odbcprd:oracle@odbc /software/oracle]$ cat /etc/odbcinst.ini
[myodbc3]
Description = Mysql connector to mysql version 3.5
Driver = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3-3.51.25.so
Driver64 = /usr/lib
Setup = /software/oracle/MysqlOdbc/3.52/lib/libmyodbc3S-3.51.25.so
Setup64 = /usr/lib
UsageCount = 1
CPTimeout = 3600
CPReuse = Please advice
ThanksWhen using a gateway it is always possible that a where clause is not sent to the remote database. This is called post processing and depends on several factors like the used ODBC driver, the columns and its data types but also if you specify certain functions in the where clause.
The fastest way to see if post processing happens is in Oracle 11g the explain plan for a query. In 10g the plan does not always match the statement sent to the foreign database. Here it would be better to enable gateway tracing and setting the trace level to ON. This will log the statements sent to the foreign database and you can compare what statement was sent with the statement you've tried to execute. -
Making a jtable auto updates itself from a mysql table
Pretty much what the title says. How can i auto update the jtable for every time my mysql table is updated in anyway? i am implementing this auto update function in my admin program which displays a list of users who are online etc. from the moment a user is offline/online or changes other details displayed in my jtable, i want it to auto update the jtable as soon as the actual mysql table has been updated with new data...
I was thinking of re doing the whole jtable i made and create a thread for that table that has a infinite while loop that keeps repainting the jtable with the new updated data from a mysql table query eg select * from table and store the data into a resultset which then gets transferred into a vector. Load the vector into the jtbale and their ya go�.
what you think of this approach? Is their a better way to do this?
at the moment, as soon as my application opens, the jtable views all the data from my sql table, however if it doesnt auto updates itself, cheersi am implementing this auto update
function in my admin program which displays a list of
users who are online etc. from the moment a user is
offline/online or changes other details displayed in
my jtable, i want it to auto update the jtable as
soon as the actual mysql table has been updated with
new data...Well you can make some changes to make implementation easy
Ex: Create a table to keep a log of the changes in the system the dmin program read the log and replicate the changes as specified in the log on the table model.
When reading the log the admin program keep track of the sequence no of the last read log entry and it reads ony the entries which has larger seq numbers than the last read seq no
I dont think that it is critical to make this to be cloase to real time. An Update once a 1 or 2 secs should be sufficient. -
Insert date from YUI calendar into mysql table
Is there a way to insert the date selected from the YUI calendar into a mysql table?
I have been in trouble since last 2 days... I have tried all possible and explored any related topics.. Still I cannot address the problem.
Problem 1:
I have a simple jsp form which passed a bengali word.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form action="Test2.jsp" method="post" >
<input type="text" value="কাকা" name="word">
<input type="submit" value="Next">
</form>
</body>
</html>
When this page is post, a java program( TestWord) is called by the Test2.jsp. TestWord insert the passed bengali word into a MySQL table. Then it retrieves again the inserted bengali word and display in Test2.jsp.
Test2.jsp:----
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<jsp:useBean id="get2" class="dictionary.TestWord" scope="session"/>
<jsp:setProperty name="get2" property="*"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<form action="" method="post">
<%
String s=get2.getWord();
out.write("Before converion onversion = "+s);
s = new String(s.getBytes("ISO-8859-1"),"UTF-8");
out.write(" After conversion = "+s);
%>
</form>
</body>
</html>
It gives the output something like:
Before conversion = �?া�?া After conversion = ??????
Problem 2:
The record in mysql table is inserted in bengali font (eg. কাকা). When I retrieve the record and display in a jsp page, I can see the bengali word (কাকা) properly. But if I insert the bengali word again in MySql table, then I see some string like "�?া�?া" storing in the table.
Please help me out..
Thanks in advance. -
How to remove/delete from a mysql table
Hello!
Please can someone help me with this one; I need to remove/delete a a row in a mysql table. When I use the query below, it removes this line from other tables containing the same numbers too. I only want to remove it from this table alone
String update= ("DELETE FROM info WHERE Number = '" + Nr + "' AND week= " + week+ ");
THXI don't understand this. You're saying that running this query removes values from other tables besides your info table? I don't believe it.
One thing I'd caution you on is using names like "info" and "number" for tables and columns. They sound suspiciously close to keywords for your database. You'd be better off using less generic, more application specific names.
But I don't think that explains the behavior you're describing. Either this is a very serious bug in MySQL or a very serious misunderstanding on your part. -
Uploading data in the table from mysql db, any help is welcome
Hi, I have made a table with two columns, "Name" and "ID". Those are binded to contexts NameCtx and IDCtx. There are ten rows in table. What I need to do is upload Names and IDs from mysql database and fill those rows from 1 to 10 and I dont have much idea how to do this. Any tutorial, blog or your piece of code or tips will be most welcome. Regards, Balmer
Hi,
To access the My SQL db pl refer this thread
writing data form Webdyn Pro inputfield into MySQL db
Once the connection is done
Create a statement
Exeecute the sql statement
Iterate the resultset
populate the context
try{
Connection conn;
Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
String urlConn = "jdbc:sapdb://localhost/maxdb1"; //replace localhost and the maxdb1 with your server name and database.
String username = "userID";
String password = "password";
conn = DriverManager.getConnection(urlConn, username, password);
System.out.println("connected to DB...");
//Change the select statement to that of yours
Statement stmt = conn.createStatement();
stmt.execute("select name,id from table1");
//Result set
ResultSet resultSet = stmt.getResultSet();
//Iterate to populate the context that is bound to the table.
while (resultSet.next())
//Change the element and node name to that of yours
IOrdersElement ordersElement = wdContext.nodeOrders().createAndAddOrdersElement();
ordersElement.setNameCtx(resultSet.getString(1));
ordersElement.setIDCtx(resultSet.getString(2));
}catch(Exception e)
//handle the exception
Regards
Ayyapparaj
Maybe you are looking for
-
How can I create a virtual keyboard shortcut in my dock?
So I started using my MacBook Pro as a device I connect to my TV. I have an HDMI adapter, and, after setting up the display and sound, it is awesome! I even purchased a Trackpad so I can sit on my couch and navigate. The cost of the adapter and Track
-
I want to grant permissions to all domain users to view reports on our Report Server. Domain users are able to access our Report Server URL and folder, but when they click on a report item they get an error message: "Cannot open database "ReportServ
-
I have been creating a showreel of work in iDVD6. It has all been going swimmingly, except that the Quicktime Movies that I have exported from FCP and imported into iDVD, which are 16:9, are coming out squashed 4:3 (i.e square pixels. The menu and su
-
In the capacity section of the iTunes application as it related to content on the iPhone. Can anyone tell me what information is stored in the "OTHER" catagory and how can I see what this information is. It says that I have 6gb of other information i
-
anyone know of a good weather widget for the Nokia E6? I tried the accuweather one and I cant get it to show up in the widgets catalog. Anyone have a working weather widget on their Nokia E6? what are you using? Solved! Go to Solution.