<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Sybase</title>
        <description>Forum for Sybase migration issues.</description>
        <link>http://forums.mysql.com/list.php?62</link>
        <lastBuildDate>Tue, 24 Nov 2009 20:22:05 +0000</lastBuildDate>
        <generator>Phorum 5.2.1-alpha</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?62,292264,292264#msg-292264</guid>
            <title>I NEED YOUR HELP PLEASE (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,292264,292264#msg-292264</link>
            <description><![CDATA[ Dear Database Support Professional,<br />
 <br />
I am Database Administrator and I am writing to ask for your help in responding to a 10-12 minute survey for a degree requirement on relational database support professionals in the USA. Please note that the respondent is completely anonymous. If I don’t get this portion of my degree completed by the end of this semester, then I would have to wait for another year which entails additional costs and time on me. By completing the survey, you will be contributing to research in our field and also there is the satisfaction of having helped a fellow professional and a fellow human being attain his goals. I believe a good turn always bring another in some way in our lives. I therefore kindly beg for your help to a fellow database professional by completing this survey.  The link to the survey is provided below.  If possible please forward to other database professionals or groups:<br />
<a rel="nofollow"  href="http://www.surveymonkey.com/s.aspx?sm=a1JqU7GVt1g6rCkIPyL23w_3d_3d">http://www.surveymonkey.com/s.aspx?sm=a1JqU7GVt1g6rCkIPyL23w_3d_3d</a><br />
<br />
Thank you earnestly for your kindness.<br />
Gabriel]]></description>
            <dc:creator>Gabby Takash</dc:creator>
            <category>Sybase</category>
            <pubDate>Sat, 21 Nov 2009 14:38:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,290394,290394#msg-290394</guid>
            <title>Data truncated while loading (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,290394,290394#msg-290394</link>
            <description><![CDATA[ hi,<br />
<br />
I have exported tables data from sybse to CSV file. and run the laod command LOAD DATA LOCAL INFILE './path.INTO TABLE table name FIELDS TERMINATED BY '|' ENCLOSED BY '' LINES TERMINATED BY '\r\n'(columns);<br />
<br />
for some of the tables it worked fine.but for some tables where column data is more, it came to three lines. so it has taken second line as another record.<br />
<br />
for example:<br />
<br />
3 | 194 | 1 | Need Quote | per Rich's specifications in phone msg of 9/20/2001. Lump at 23, in between payments and retirment payments, 3 options using $240,000 per child | 2001-09-25 00:00:00.0 | N/A        | Yes   | null | null | 1 | Normal | null<br />
<br />
i want this to be inserted in one single row.<br />
<br />
thanks in advance....]]></description>
            <dc:creator>Harirpiya Vedula</dc:creator>
            <category>Sybase</category>
            <pubDate>Tue, 10 Nov 2009 07:44:44 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,284111,284111#msg-284111</guid>
            <title>How To get the Number of rows scan less when we take difference between the dates (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,284111,284111#msg-284111</link>
            <description><![CDATA[ mysql&gt; explain SELECT now(),g.gallery_created,g.id as gallery_ids FROM gallery_event g LEFT JOIN tag m on g.id=m.gallery_id WHERE date(now())-date(g.gallery_created) &lt;= 7;<br />
+----+-------------+-------+--------+---------------+---------+---------+---------------------+--------+-------------+<br />
| id | select_type | table | type   | possible_keys | key     | key_len | ref                 | rows   | Extra       |<br />
+----+-------------+-------+--------+---------------+---------+---------+---------------------+--------+-------------+<br />
|  1 | SIMPLE      | g     | ALL    | NULL          | NULL    | NULL    | NULL                | 136193 | Using where | <br />
|  1 | SIMPLE      | m     | eq_ref | PRIMARY       | PRIMARY | 8       | prod.g.id |      1 | Using index | <br />
+----+-------------+-------+--------+---------------+---------+---------+---------------------+--------+-------------+<br />
2 rows in set (0.00 sec)<br />
<br />
<br />
<br />
there are 136193 number of rows are there so it scann all the rows while i need data for last 7 days.. ?]]></description>
            <dc:creator>Amit Tripathi</dc:creator>
            <category>Sybase</category>
            <pubDate>Thu, 01 Oct 2009 05:32:26 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,277106,277106#msg-277106</guid>
            <title>Migration toolkit custom datatype (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,277106,277106#msg-277106</link>
            <description><![CDATA[ Hello,<br />
<br />
I'm trying to migrate a sybase ASE DB to MySQL.<br />
I have a custom datatype in sybase, which cause the migration to fail. I know that mysql doesn't support custom datatype, how can I tell the toolkit that the custom datatype should be replaced by the corresponding type?<br />
<br />
Thanks for the help!<br />
<br />
Mike]]></description>
            <dc:creator>Mike WALDMAN</dc:creator>
            <category>Sybase</category>
            <pubDate>Thu, 20 Aug 2009 14:06:28 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,276492,276492#msg-276492</guid>
            <title>Getting updated rowcount in Powerbuilder (4 replies)</title>
            <link>http://forums.mysql.com/read.php?62,276492,276492#msg-276492</link>
            <description><![CDATA[ I'm issuing an embedded update in my code and I need to be sure the proper number of rows have been updated.  Using the transaction management variable SQLNRows, when updating to Sybase ASE I used to be able to check this value for the update rowcount.  For instance, if 1 row was updated, the value would be 1.  If no rows were updated, the value would be zero.  In my transition to MySQL, I've noticed that the same result is not being returned.  For instance, in my testing I've learned that when the embedded update causes no rows to be updated, the value in SQLNRows is 1 when my code expects the value to be zero.  That of course causes BIG problems.  It seems to me like a success/failure code is being returned in SQLNRows rather than an update rowcount.<br />
<br />
Is there a configuration setting or a database parameter that would make the value returned to Powerbuilder from MySQL in the SQLNRows transaction variable be the number of rows updated?<br />
<br />
Thanks,<br />
Shawn]]></description>
            <dc:creator>Shawn Pleska</dc:creator>
            <category>Sybase</category>
            <pubDate>Tue, 29 Sep 2009 20:45:42 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,269944,269944#msg-269944</guid>
            <title>ODBC Remotely (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,269944,269944#msg-269944</link>
            <description><![CDATA[ Please I would like to know how to fill the ODBC form to connect on the database I created on mysql on my domain on yahoo .<br />
<br />
Thanks in advance .]]></description>
            <dc:creator>Mariam Adel</dc:creator>
            <category>Sybase</category>
            <pubDate>Thu, 02 Jul 2009 15:03:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,259570,259570#msg-259570</guid>
            <title>database consistency check command in mysql (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,259570,259570#msg-259570</link>
            <description><![CDATA[ Like in Sybase's &quot;dbcc checktable(table_name)&quot; which gives the logical pagesize and data pages of a table, how do i find the logical pagesize and data pages of a MySQL table.]]></description>
            <dc:creator>Muslim Abdul KADER</dc:creator>
            <category>Sybase</category>
            <pubDate>Fri, 24 Apr 2009 21:40:02 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,259227,259227#msg-259227</guid>
            <title>SELECT statement that should not return the &amp;quot;XXX rows affected line&amp;quot; (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,259227,259227#msg-259227</link>
            <description><![CDATA[ I need to write a select statement, that should produce just the output and should not show up the &quot;no of rows affected&quot; in its output.<br />
for example<br />
<br />
1&gt; select * from Tester<br />
<br />
TesterId TestCompId TestprovId -----------<br />
0 0 0<br />
2280638 2280638 1000<br />
2280639 2280639 1000<br />
2280640 2280640 1000<br />
2280641 2280641 1000<br />
2280642 2280642 2000<br />
2280643 2280643 2000<br />
2280644 10270970 1000<br />
2280645 2280645 2000<br />
2280646 2280646 2000<br />
5300522 5300522 2000<br />
5300523 5300523 2000<br />
5300524 5300524 2000<br />
5309074 5309074 2000<br />
5573907 5573907 2000<br />
5909156 5909156 1000<br />
5915339 5915339 1000<br />
6879589 6879589 1000<br />
8155084 8155092 2000<br />
10270973 10270973 1000<br />
12746835 12746837 1000<br />
14197273 14197273 1000<br />
<br />
(22 rows affected)<br />
<br />
I do not want the (22 rows affected) line. What do i need to add in the select statement to eliminate this?]]></description>
            <dc:creator>Muslim Abdul KADER</dc:creator>
            <category>Sybase</category>
            <pubDate>Sat, 25 Apr 2009 16:43:17 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,259099,259099#msg-259099</guid>
            <title>set nocount equivalent (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,259099,259099#msg-259099</link>
            <description><![CDATA[ In my existing application that uses sybase, i have &quot;set nocount on&quot; to disable the count of rows displayed out of a select statement. <br />
<br />
Now, that we are migrating to MySQL and i cannot use &quot;set nocount on&quot;, is there a way that i can implement on MySQL that provides the same functionality as &quot;set nocount on&quot;. ?]]></description>
            <dc:creator>Muslim Abdul KADER</dc:creator>
            <category>Sybase</category>
            <pubDate>Wed, 06 May 2009 15:57:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,248457,248457#msg-248457</guid>
            <title>Line Brek Problem while migrating. (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,248457,248457#msg-248457</link>
            <description><![CDATA[ After we'd sucessfully migrated from Sybase ASA, but after that we found instead of Link Break here its added with x0dx0a. Please anybody advice us how to avoid this while migrating]]></description>
            <dc:creator>Noah Selva Raj</dc:creator>
            <category>Sybase</category>
            <pubDate>Wed, 18 Feb 2009 10:52:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,244760,244760#msg-244760</guid>
            <title>voice broadcasting (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,244760,244760#msg-244760</link>
            <description><![CDATA[ If you are looking Quaity and Economical solution for your Voice Broadcasting needs.<br />
<br />
Contact me. I offer the LOWEST Rate in market with guarantee!<br />
<br />
Remember you can get Pay As you Go as well as One time solution too.<br />
<br />
You can contact me by email on:   <a rel="nofollow"  href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#118;&#98;&#64;&#103;&#105;&#116;&#116;&#108;&#46;&#99;&#111;&#46;&#117;&#107;">&#118;&#98;&#64;&#103;&#105;&#116;&#116;&#108;&#46;&#99;&#111;&#46;&#117;&#107;</a>]]></description>
            <dc:creator>sara palin</dc:creator>
            <category>Sybase</category>
            <pubDate>Wed, 10 Jun 2009 07:54:24 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,236099,236099#msg-236099</guid>
            <title>Capture Live Web Data (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,236099,236099#msg-236099</link>
            <description><![CDATA[ Is there a method for capturing live data from a foreign web site similar to this method in SyBase?<br />
<br />
<br />
<a rel="nofollow"  href="http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.stf.help.mb/mb000000150.html">http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.stf.help.mb/mb000000150.html</a><br />
<br />
Alternate Suggestions or Reading?<br />
<br />
Thanks!]]></description>
            <dc:creator>Snow Man</dc:creator>
            <category>Sybase</category>
            <pubDate>Thu, 27 Nov 2008 01:34:11 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,235314,235314#msg-235314</guid>
            <title>Where is the storage place in sybase? (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,235314,235314#msg-235314</link>
            <description><![CDATA[ Hi Friends,<br />
This is Mathan. I am new to Sybase and this Forum.<br />
I have some questions related sybase ct_lib API's.<br />
<br />
Example:<br />
Database.exec()<br />
Database.bind()<br />
Database.next()<br />
Database.get_result()<br />
<br />
when doing the above proceture, the query is sending to sybase via cl_lib. Sybase will fetch the records based on the query by user. Suppose here we have 10000 fetched records by sybase.<br />
Now we can use get_result() method to get all the fetched records.<br />
<br />
My question is:<br />
1) Are fetched records stored in sybase end?<br />
If yes, the ct_next() will call for every already fetched record and forward to application???<br />
2) or ct_lib is maintaining any space to store all the fetched records.<br />
If yes, can we get the all fetched records to application, when sybase is unavailable ?????<br />
<br />
Please can anyone help me on this<br />
<br />
/MaK]]></description>
            <dc:creator>Mathan K</dc:creator>
            <category>Sybase</category>
            <pubDate>Mon, 11 May 2009 04:43:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,224846,224846#msg-224846</guid>
            <title>Sybase ASE to MySQL Migration Guide (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,224846,224846#msg-224846</link>
            <description><![CDATA[ Sybase web site has this, MySQL to Sybase ASE Migration Guide<br />
<br />
<a rel="nofollow"  href="http://www.sybase.com/detail?id=1051522">http://www.sybase.com/detail?id=1051522</a><br />
<br />
Any migration guide for ASE to MySQL, topics on dbcc, raw devices, sp_helpdb, engine configuration, shared memory configuration.<br />
<br />
Thanks]]></description>
            <dc:creator>Rey Wang</dc:creator>
            <category>Sybase</category>
            <pubDate>Tue, 02 Sep 2008 03:21:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,197922,197922#msg-197922</guid>
            <title>Converting Sybase Anywhere Studio 8.0.3 to MySQL 5.0 (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,197922,197922#msg-197922</link>
            <description><![CDATA[ Hi,<br />
<br />
I got the job to transfer a Sybase database to mysql. For test purposes I installed Sybase Anywhere 8.0.3 on a Windows 2000 computer with the default database asademo from Sybase (user ID: DBA, password: SQL). Also on the same machine the migration tool. As hostname I use either the IP-address of the machine or localhost; port adress is 2638). Nothing will help to make a valid connection to the server. I allways get the following error messages.<br />
<br />
<br />
Connecting to source database and retrieve schemata names.<br />
Initializing JDBC driver ... <br />
Driver class Sybase JDBC Driver<br />
Opening connection ... <br />
Connection jdbc:jtds:sybase://144.6.1.8:2638/asademo;user=DBA;password=SQL;charset=utf-8<br />
The list of schema names could not be retrieved (error: 0).<br />
<br />
ReverseEngineeringSybase.getSchemata :Login failed<br />
<br />
Details: <br />
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365)<br />
net.sourceforge.jtds.jdbc.TdsCore.tdsLoginAckToken(TdsCore.java:2917)<br />
net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2230)<br />
net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:599)<br />
net.sourceforge.jtds.jdbc.ConnectionJDBC2.&lt;init&gt;(ConnectionJDBC2.java:331)<br />
net.sourceforge.jtds.jdbc.ConnectionJDBC3.&lt;init&gt;(ConnectionJDBC3.java:50)<br />
net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)<br />
java.sql.DriverManager.getConnection(Unknown Source)<br />
java.sql.DriverManager.getConnection(Unknown Source)<br />
com.mysql.grt.modules.ReverseEngineeringGeneric.establishConnection(ReverseEngineeringGeneric.java:141)<br />
com.mysql.grt.modules.ReverseEngineeringSybase.getSchemata(ReverseEngineeringSybase.java:87)<br />
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
java.lang.reflect.Method.invoke(Unknown Source)<br />
com.mysql.grt.Grt.callModuleFunction(Unknown Source)<br />
<br />
<br />
Is there anyone who has an idea what's going wrong?<br />
<br />
Thanks,<br />
<br />
Guenther]]></description>
            <dc:creator>Guenther Beike</dc:creator>
            <category>Sybase</category>
            <pubDate>Sat, 25 Oct 2008 02:02:33 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,175043,175043#msg-175043</guid>
            <title>if statement (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,175043,175043#msg-175043</link>
            <description><![CDATA[ Hi everyone !!!<br />
<br />
I need help con this...<br />
I have in sybase this sentence<br />
<br />
if (exists(select column1 from tabla1 where column1=value1))<br />
begin <br />
update tabla2 set column2=value2 where column3=value3<br />
update tabla3 set column4=value4 where column5=value5<br />
end<br />
<br />
How I can do it in mysql?<br />
<br />
Thanks...]]></description>
            <dc:creator>juan Perez</dc:creator>
            <category>Sybase</category>
            <pubDate>Wed, 26 Sep 2007 18:23:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,173152,173152#msg-173152</guid>
            <title>API for C linking problems (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,173152,173152#msg-173152</link>
            <description><![CDATA[ Hi,<br />
  I'm trying to make a client application in C, connecting to a mySQL database. Platform is: Windows, LCC-32. In the source code I have declarations:<br />
<br />
  #include &lt;windows.h&gt;<br />
  #include &quot;resource.h&quot;<br />
  #include &lt;windowsx.h&gt;<br />
  #include &lt;mysql.h&gt;<br />
  #include &lt;stdio.h&gt;<br />
<br />
and test code:<br />
<br />
  MYSQL * mysql;<br />
  mysql = mysql_init(NULL);<br />
<br />
using the linker to take the library file:<br />
<br />
  mysqlclient.lib<br />
<br />
And I have an output like this:<br />
<br />
Wedit output window build: Fri Sep 14 15:55:14 2007<br />
.data section assumed<br />
...<br />
.data section assumed<br />
File c:\lcc\lib\mysqlclient.lib contains unknown section .sxdata.<br />
.data section assumed<br />
...<br />
.data section assumed<br />
File c:\lcc\lib\mysqlclient.lib contains unknown section .text$yc.<br />
.text section assumed<br />
File c:\lcc\lib\mysqlclient.lib contains unknown section .CRT$XCU.<br />
.data section assumed<br />
...<br />
.data section assumed<br />
File c:\lcc\lib\mysqlclient.lib contains unknown section .sxdata.<br />
File c:\lcc\lib\mysqlclient.lib contains unknown section .text$yc.<br />
.text section assumed<br />
File c:\lcc\lib\mysqlclient.lib contains unknown section .CRT$XCU.<br />
.data section assumed<br />
...<br />
.data section assumed<br />
 .data: undefined reference to '??_7type_info@@6B@'<br />
 .rdata: undefined reference to '__purecall'<br />
Error c:\lcc\lib\mysqlclient.lib: Undefined (*UND*). Symbol ??_EMessage@yaSSL@@UAEPAXI@Z<br />
c:\lcc\bin\make.exe<br />
Compilation + link time:0.2 sec, Return code: 1<br />
<br />
What is happened? How I can resolve this problem?<br />
Thanks]]></description>
            <dc:creator>Mario  Rossi</dc:creator>
            <category>Sybase</category>
            <pubDate>Fri, 14 Sep 2007 13:58:40 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,162616,162616#msg-162616</guid>
            <title>Calling a stored procedure from select (2 replies)</title>
            <link>http://forums.mysql.com/read.php?62,162616,162616#msg-162616</link>
            <description><![CDATA[ Hi, <br />
<br />
Can anyone let me know if it possible to call a stored procedure in a select statement<br />
<br />
For example<br />
<br />
SELECT Account_ID, Account_Number, Currency, (Exexute the stored procedure passing to it the Account_ID) AS Current_Amount FROM Accounts<br />
<br />
Thanks!]]></description>
            <dc:creator>UDAYA YARASI</dc:creator>
            <category>Sybase</category>
            <pubDate>Wed, 12 Mar 2008 20:51:56 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,162343,162343#msg-162343</guid>
            <title>Help dividing two values from different tables. (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,162343,162343#msg-162343</link>
            <description><![CDATA[ Hi, I am completly new in ASP , but, due the necessity of the production in the company I work, I need <br />
urgently to learn do deal with scripts and SQL.<br />
<br />
I did a script that shows on the production screen the consume tax of the gas instantly on time and it <br />
<br />
worked. Now I have to do a table formed by the DIVISION of a valor V from one table by the valor V in <br />
<br />
another table, mas the values must be taken at the same time do give me the gas consumed by ton produced.<br />
<br />
Explaining in details:<br />
<br />
I have two tabels: <br />
<br />
1 - PDE#HD#Consumption#RP_Consumption_Gas<br />
2 - PDE#HD#SpeedCurves#Productivity<br />
<br />
Inside each of these tables, there are two columms with the same name for both -&gt; V, T. The V columm of the <br />
<br />
table PDE#HD#Consumption#RP_Consumption_Gas gives me the cas consumed and the V table of <br />
<br />
PDE#HD#SpeedCurves#Productivity the productivity. The V1/V2 graph must be ploted in a 24 hours period. What <br />
<br />
happens is that if I do it for 24 houres, I mean, 1 day, the graph is ploted completly wrong in time! If I <br />
<br />
do the same thing, but using only one columm, not the division by another, it works! Why this is happening ? <br />
<br />
What is wrong with the following script ?? I need to know the answer for this as fast as possible! If you <br />
<br />
need more details, I will give.<br />
<br />
The script:<br />
<br />
DayForm = Request.Form(&quot;D1&quot;) <br />
<br />
Dim hoje<br />
Dim dia <br />
<br />
If DayForm = &quot;&quot; OR DayForm = 0 Then hoje = true <br />
<br />
If hoje Then _<br />
Set rs = conn.Execute(&quot;SELECT <br />
<br />
convert(varchar,PDE#HD#Consumption#RP_Consumption_Gas.T,108),(PDE#HD#Consumption<br />
#RP_Consumption_Gas.V/PDE#HD#SpeedCurves#Productivity.V) As Consumo FROM <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas INNER JOIN PDE#HD#SpeedCurves#Productivity ON <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T = PDE#HD#SpeedCurves#Productivity.T WHERE <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T &gt; DATEADD(dd, -1, GetDate()) ORDER BY <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T&quot;) _<br />
Else _<br />
Set rs = conn.Execute(&quot;SELECT <br />
<br />
convert(varchar,PDE#HD#Consumption#RP_Consumption_Gas.T,108),(PDE#HD#Consumption<br />
#RP_Consumption_Gas.V/PDE#HD#SpeedCurves#Productivity.V) As Consumo FROM <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas INNER JOIN PDE#HD#SpeedCurves#Productivity ON <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T = PDE#HD#SpeedCurves#Productivity.T WHERE <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T &gt; convert(date, DATEADD(dd, &quot; &amp; DayForm &amp; &quot;, GetDate())) AND <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T &lt; convert(date, DATEADD(dd, &quot; &amp; DayForm+1 &amp; &quot;, GetDate())) ORDER BY <br />
<br />
PDE#HD#Consumption#RP_Consumption_Gas.T &quot;)]]></description>
            <dc:creator>angelo antonio</dc:creator>
            <category>Sybase</category>
            <pubDate>Sat, 14 Jul 2007 12:56:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,155974,155974#msg-155974</guid>
            <title>Too many key parts specified (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,155974,155974#msg-155974</link>
            <description><![CDATA[ Hello:<br />
<br />
I'm migrating table that have more than 16 key parts, and i cant created it in Mysql. What should i do? As i understand, i have 2 options:<br />
<br />
1. Create an id as identity column, making this column the key for the table, and left the real key outside of the key. <br />
2. Create insert and update trigers that will concatenate all the fields of the key in one field wich would be the key for the table.<br />
<br />
Which implementation would you recomend? Or if you have other ideas? Which one would be faster to use with heave selects and other operations?<br />
<br />
Thankyou in advance!]]></description>
            <dc:creator>Aldo Herrera</dc:creator>
            <category>Sybase</category>
            <pubDate>Tue, 09 Oct 2007 13:00:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,137682,137682#msg-137682</guid>
            <title>Adding 7 days to a date (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,137682,137682#msg-137682</link>
            <description><![CDATA[ I am trying to remove data from a table in a database. Like a sort of archiving processes whereby I remove one week of data at a time.<br />
<br />
So I select the min date from the table (select min (TIMESTAMP) from &lt;tblname&gt;)<br />
<br />
Which returns a date in the following format -&gt; 20070114 13:22:59.843671 +0000?<br />
<br />
I want to be able to add seven days to that field so I will end up with 20070121<br />
<br />
And then I can delete from table name where TIMESTAMP &lt; '20070121'<br />
<br />
Any suggestions? <br />
<br />
Thanks<br />
<br />
Anjel]]></description>
            <dc:creator>Anjel </dc:creator>
            <category>Sybase</category>
            <pubDate>Wed, 31 Jan 2007 23:24:20 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,136352,136352#msg-136352</guid>
            <title>Sybase 5.0 .db file (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,136352,136352#msg-136352</link>
            <description><![CDATA[ I have an old .db file from sybase 5.0   I want to migrate the data to mysql.<br />
<br />
Are there any programs out there that does the converesion.<br />
<br />
or How can I connect to it using php, c or some language to retrieve the data.  (I believe there are no longer odbc drivers)]]></description>
            <dc:creator> </dc:creator>
            <category>Sybase</category>
            <pubDate>Tue, 04 Sep 2007 09:40:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,125268,125268#msg-125268</guid>
            <title>How to edit sql script in Manual Editing in Migration Tool (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,125268,125268#msg-125268</link>
            <description><![CDATA[ Hi <br />
<br />
Im trying to port a Sybase to Mysql. So far i've only migrated one schemata (table) out of 30. I look at the table details (in Manual Editing stage) under the column and it says that &quot;data type ID can not be migrated.&quot; However other variables in that same table are said to be migrated succesfully. But in the end only one table was successfully migrated. How can i edit the script in MTool - those that create table and change datatype? Also i noticed that most of the non migrated objects are of data type 'ID'. Is there a way i can just change this ID to a data type that is acceptable to mySql? The summary report says about the Routines: &quot;The generated SQL has to be checked manually.&quot;]]></description>
            <dc:creator>Romel </dc:creator>
            <category>Sybase</category>
            <pubDate>Tue, 07 Nov 2006 07:55:34 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,123203,123203#msg-123203</guid>
            <title>How to port from Sybase (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,123203,123203#msg-123203</link>
            <description><![CDATA[ Hi. Im a newbie. I was asked to investigate how to Port a Sybase to mySql. I need to know the procedure to do it. Can it be possible to do this if the Sybase is on linux and mySQL is windows?]]></description>
            <dc:creator>Romel </dc:creator>
            <category>Sybase</category>
            <pubDate>Fri, 27 Oct 2006 05:35:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,122783,122783#msg-122783</guid>
            <title>Backups like in MySQL in Oracle (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,122783,122783#msg-122783</link>
            <description><![CDATA[ Hello,<br />
<br />
I am new in Oracle, and I love mySQL, but my company wants me to use oracle. A/W maybe you can help me, cause the most oracle forums are dead or I couldn't find any. My problem is, that I work on two computers. Both have Oracle 10g Express Edition. I want to have on both systems the same database structure and content. If I change something on one of the systems I want to make a Dump like with mysql to a plain text file, send it to the other and restore it.<br />
With sql it works fine, but in oracle I couldn't find any solution for that. On Linux and mysql you have also to possibility to copy the files from /var/lib/mysql/... but I have no idea where the files are for oracle on a windows machine.<br />
<br />
Can somebody help me?<br />
And sorry for my worse english, I am from germany.<br />
<br />
Thank you<br />
Hauke]]></description>
            <dc:creator>Hauke Meier</dc:creator>
            <category>Sybase</category>
            <pubDate>Fri, 23 Feb 2007 08:38:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,117640,117640#msg-117640</guid>
            <title>facing - The SQL Server is terminating this process error (no replies)</title>
            <link>http://forums.mysql.com/read.php?62,117640,117640#msg-117640</link>
            <description><![CDATA[ Hi All,<br />
 I have one proceudre for which I am facing problem. when I execute this procedure I got the following error<br />
<br />
Server Message:  Number  5702, Severity  10<br />
Procedure 'cm_find_ratetable', Line 57:<br />
The SQL Server is terminating this process.<br />
Client Message:  Layer  1, Origin  1, Severity  1, Number  167<br />
ct_cmd_drop(): user api layer: external error: This routine cannot be called because the command structure is in an undefined state.<br />
<br />
Following is my procedure :<br />
CREATE  proc  cm_find_ratetable<br />
(<br />
@payerpricingname varchar(30)= NULL,<br />
@rulename varchar(30)= NULL,<br />
@contractid varchar(40) = NULL,<br />
@payerid varchar(20)= NULL,<br />
@alldates varchar(10)=NULL,<br />
@sortfield varchar(30)=NULL,<br />
@sortorder  varchar(10) = NULL<br />
)<br />
As<br />
Begin<br />
<br />
declare @percent char(1),<br />
   @orderby numeric,<br />
   @maxeffective smalldatetime<br />
<br />
select @percent = '%'<br />
<br />
<br />
if(@sortfield= 'PayerPricingName')<br />
   select @orderby =1<br />
else if (@sortfield= 'RuleName')<br />
   select @orderby =2<br />
else if (@sortfield= 'Effective')<br />
   select @orderby =3<br />
else if (@sortfield= 'Termination')<br />
   select @orderby =4<br />
<br />
<br />
if @payerpricingname !='%'<br />
   select @payerpricingname = @payerpricingname<br />
else<br />
   select @payerpricingname = @percent<br />
<br />
<br />
if @rulename !='%'<br />
   select @rulename = @rulename<br />
else<br />
   select @rulename = @percent<br />
<br />
if @contractid !='%'<br />
   select @contractid = @contractid<br />
else<br />
   select @contractid = @percent<br />
<br />
if @payerid !='%'<br />
   select @payerid = @payerid<br />
else<br />
   select @payerid = @percent<br />
<br />
<br />
if (@alldates = 'Y')<br />
   Begin<br />
   if (@sortorder = 'D')<br />
       begin<br />
       select  PayerPricingKey,<br />
           PayerPricingName,<br />
           RuleName,<br />
           Effective,<br />
           Termination<br />
       from<br />
           (select distinct<br />
               PayerPricingKey,<br />
               PayerPricingName,<br />
               PR.RuleName ,<br />
               PR.Effective,<br />
               PR.Termination<br />
            from     PayerPricing PR ,<br />
               TermInRule TIR ,<br />
               TermRule TR ,<br />
               ContractTerms CT ,<br />
               LookCCntrct LCC ,<br />
               PayerProfile PP<br />
            where   TR.TermKey =  CT.TermKey and<br />
               LCC.ContractID = CT.ContractID and<br />
               TIR.TermRuleKey = TR.TermRuleKey and<br />
               PR.PayerPricingName = TIR.InputValue and<br />
               PR.PayerPricingName like (@payerpricingname)  and<br />
               PR.RuleName like (@rulename)  and<br />
               LCC.ContractID in  (select distinct ContractID from PayerContracts<br />
               join PayerProfile on<br />
               PayerContracts.PUID = PayerProfile.PUID and PayerID like (@payerid)) and<br />
               LCC.ContractID like (@contractid)<br />
            )RatesTbl<br />
        ORDER BY CASE<br />
            WHEN  @orderby= 1 THEN PayerPricingName<br />
            WHEN  @orderby= 2 THEN RuleName<br />
            WHEN  @orderby= 3 THEN convert(varchar,Effective,120)<br />
            WHEN  @orderby= 4 THEN convert(varchar,Termination,120)<br />
            ELSE PayerPricingName<br />
           END<br />
       DESC<br />
       end<br />
<br />
   else<br />
       begin<br />
       select  PayerPricingKey,<br />
           PayerPricingName,<br />
           RuleName,<br />
           Effective,<br />
           Termination<br />
       from<br />
           (select distinct<br />
               PayerPricingKey,<br />
               PayerPricingName,<br />
               PR.RuleName ,<br />
               PR.Effective,<br />
               PR.Termination<br />
           from<br />
               PayerPricing PR ,<br />
               TermInRule TIR ,<br />
               TermRule TR ,<br />
               ContractTerms CT ,<br />
               LookCCntrct LCC ,<br />
               PayerProfile PP<br />
           where   TR.TermKey =  CT.TermKey and<br />
               LCC.ContractID = CT.ContractID and<br />
               TIR.TermRuleKey = TR.TermRuleKey and<br />
               PR.PayerPricingName = TIR.InputValue and<br />
               PR.PayerPricingName like (@payerpricingname)  and<br />
               PR.RuleName like (@rulename)  and<br />
               LCC.ContractID in  (select distinct ContractID from PayerContracts<br />
               join PayerProfile on<br />
               PayerContracts.PUID = PayerProfile.PUID and PayerID like (@payerid)) and<br />
               LCC.ContractID like (@contractid)<br />
           ) RatesTbl<br />
        ORDER BY CASE<br />
            WHEN  @orderby =1 THEN   PayerPricingName<br />
            WHEN  @orderby= 2 THEN   RuleName<br />
            WHEN  @orderby = 3 THEN   convert(varchar,Effective,120)<br />
            WHEN  @orderby = 4 THEN  convert(varchar,Termination,120)<br />
            ELSE PayerPricingName<br />
           END<br />
       end<br />
<br />
   end<br />
<br />
else<br />
if (@sortorder = 'D')<br />
   begin<br />
   select  PayerPricingKey,<br />
       PayerPricingName,<br />
       RuleName,<br />
       Effective,<br />
       Termination<br />
   from<br />
       (select distinct<br />
           PayerPricingKey,<br />
           PayerPricingName,<br />
           PR.RuleName ,<br />
           PR.Effective,<br />
           PR.Termination<br />
       from<br />
           PayerPricing PR ,<br />
           TermInRule TIR ,<br />
           TermRule TR ,<br />
           ContractTerms CT ,<br />
           LookCCntrct LCC ,<br />
           PayerProfile PP<br />
       where   PR.Effective = (select Max(Effective) from PayerPricing PR1 where<br />
           PR.PayerPricingName = PR1.PayerPricingName ) and<br />
           TR.TermKey =  CT.TermKey and<br />
           LCC.ContractID = CT.ContractID and<br />
           TIR.TermRuleKey = TR.TermRuleKey and<br />
           PR.PayerPricingName = TIR.InputValue and<br />
           PR.PayerPricingName like (@payerpricingname)  and<br />
           PR.RuleName like (@rulename)  and<br />
           LCC.ContractID in  (select distinct ContractID from PayerContracts<br />
           join PayerProfile on<br />
           PayerContracts.PUID = PayerProfile.PUID and PayerID like (@payerid)) and<br />
           LCC.ContractID like (@contractid)<br />
        ) RatesTbl<br />
    ORDER BY CASE<br />
       WHEN  @orderby =1 THEN PayerPricingName<br />
       WHEN  @orderby= 2 THEN RuleName<br />
       WHEN  @orderby = 3 THEN convert(varchar,Effective,120)<br />
       WHEN  @orderby = 4 THEN convert(varchar,Termination,120)<br />
       ELSE PayerPricingName<br />
       END<br />
   DESC<br />
   end<br />
<br />
else<br />
   begin<br />
   select  PayerPricingKey,<br />
       PayerPricingName,<br />
       RuleName,<br />
       Effective,<br />
       Termination<br />
   from<br />
       (select distinct<br />
       PayerPricingKey,<br />
       PayerPricingName,<br />
       PR.RuleName ,<br />
       PR.Effective,<br />
       PR.Termination<br />
       from PayerPricing PR ,<br />
            TermInRule TIR ,<br />
            TermRule TR ,<br />
            ContractTerms CT ,<br />
            LookCCntrct LCC ,<br />
            PayerProfile PP<br />
       where   PR.Effective = (select Max(Effective) from PayerPricing PR1 where<br />
           PR.PayerPricingName = PR1.PayerPricingName ) and<br />
           TR.TermKey =  CT.TermKey and<br />
           LCC.ContractID = CT.ContractID and<br />
           TIR.TermRuleKey = TR.TermRuleKey and<br />
           PR.PayerPricingName = TIR.InputValue and<br />
           PR.PayerPricingName like (@payerpricingname)  and<br />
           PR.RuleName like (@rulename)  and<br />
           LCC.ContractID in  (select distinct ContractID<br />
               from PayerContracts join PayerProfile on<br />
               PayerContracts.PUID = PayerProfile.PUID and PayerID like (@payerid)) and<br />
               LCC.ContractID like (@contractid)<br />
       ) RatesTbl<br />
   ORDER BY<br />
   CASE<br />
       WHEN  @orderby =1 THEN   PayerPricingName<br />
       WHEN  @orderby= 2 THEN   RuleName<br />
       WHEN  @orderby = 3 THEN   convert(varchar,Effective,120)<br />
       WHEN  @orderby = 4 THEN  convert(varchar,Termination,120)<br />
       ELSE PayerPricingName<br />
   END<br />
   end<br />
end<br />
<br />
<br />
Please help me to resolve this problem]]></description>
            <dc:creator>shubhada khawase</dc:creator>
            <category>Sybase</category>
            <pubDate>Mon, 25 Sep 2006 08:56:27 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,116329,116329#msg-116329</guid>
            <title>UDP broadcast in mysql (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,116329,116329#msg-116329</link>
            <description><![CDATA[ Hi, <br />
<br />
There is a function in Sybase called syb_sendmsg(ip_add, port ,&lt;message&gt;) which broadcast the message to the ip_add and port specified. Is there an equivalen mysql function. There is an MYSQL Message API. Is there anybody who has used it. <br />
<br />
Thks<br />
Srivats.C]]></description>
            <dc:creator>Srivats Chandrasekaran</dc:creator>
            <category>Sybase</category>
            <pubDate>Mon, 22 Jun 2009 09:08:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,114580,114580#msg-114580</guid>
            <title>Migration problems (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,114580,114580#msg-114580</link>
            <description><![CDATA[ Hi!<br />
<br />
The company i work for plans to migrate all databases we use from Sybase ASA Version 8.0.3.5217 to mySQL V5.x! The Application (executed in Windows NT) which accesses the mySQL-Db was created with Powerbuilder 7 Build 10180. We're using myODBC 3.51.12 to connect the mySQL-Server (V5.0.22). I configured the ODBC driver like the manual suggests it. The mySQL server is not specially configured yet (except the sql_mode which is ANSI).<br />
<br />
The database itself is already migrated to mySQL without any problem (well, less problems than i thought!), but the PB-Application does some strange things in connection to it! First of all, for some DataWindows i had to change the retrieval argument(s) from number to string in order to get them work - I would like to know why this is necassary - it doesn't sound logically to me and I really dont like that solution (because some DataWindows work fine with number-arguments! But I could'nt figure out any differences in DW-definition). Another problem is, that DW's Update() method does not return a valid value (always -1) - seems like the odbc-driver does not realize that rows were changed - They're all perfectly written to the db!<br />
<br />
I heard that there are some Powerbuilder configuration files which handle various things like how values are passed to the ODBC driver, but I could not figure out where they are located and how to write them.<br />
<br />
How can I avoid changing too much code in my application? It has to work with both databases (ASA &amp; mySQL).<br />
<br />
Thanks in advance!<br />
<br />
<br />
***EDIT***<br />
HI!<br />
<br />
I found out why DataWindows with numeric retrieval-parameters did not work for Datawindows in connection to mysql:<br />
<br />
There's a file called pbodb70.ini which handles various odbc-driver settings! So if you connect a mysql-db, just create a section called [MySQL] and put PBSupportBindSelect='NO' in it and it works fine! There's also a setting for update/insertable dw's (called PBSupportBindUpdate!)<br />
<br />
hope this helps!]]></description>
            <dc:creator>David Eder</dc:creator>
            <category>Sybase</category>
            <pubDate>Sun, 20 May 2007 04:06:08 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,100945,100945#msg-100945</guid>
            <title>MySQL Migration Toolkit - supports Sybase migrations (3 replies)</title>
            <link>http://forums.mysql.com/read.php?62,100945,100945#msg-100945</link>
            <description><![CDATA[ Migration from Sybase ASE 12.5 or later is now supported.<br />
<br />
<a rel="nofollow"  href="http://forums.mysql.com/read.php?104,100566,100566#msg-100566">http://forums.mysql.com/read.php?104,100566,100566#msg-100566</a>]]></description>
            <dc:creator>Edwin DeSouza</dc:creator>
            <category>Sybase</category>
            <pubDate>Fri, 01 May 2009 03:40:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?62,98146,98146#msg-98146</guid>
            <title>Porting code that does a raiseerror (1 reply)</title>
            <link>http://forums.mysql.com/read.php?62,98146,98146#msg-98146</link>
            <description><![CDATA[ How do you generate an error from MySQL as you do in SYbase using raiseerror?<br />
<br />
      e.g. raiseerror 99999 &quot;bad values&quot;<br />
           return<br />
<br />
<br />
I have searched all over the web but cannot find anything that will show me the syntax to use to do this.<br />
<br />
Eileen Boyer]]></description>
            <dc:creator>Eileen Boyer</dc:creator>
            <category>Sybase</category>
            <pubDate>Mon, 18 Sep 2006 05:11:11 +0000</pubDate>
        </item>
    </channel>
</rss>
