<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Microsoft SQL Server</title>
        <description>Forum for Microsoft SQL Server migration issues.</description>
        <link>http://forums.mysql.com/list.php?60</link>
        <lastBuildDate>Wed, 22 May 2013 06:00:47 +0000</lastBuildDate>
        <generator>Phorum 5.2.19</generator>
        <item>
            <guid>http://forums.mysql.com/read.php?60,585728,585728#msg-585728</guid>
            <title>migrate from SQL Server 2005 to MySql 5.1.39 (3 replies)</title>
            <link>http://forums.mysql.com/read.php?60,585728,585728#msg-585728</link>
            <description><![CDATA[ Hi, i have to migrate a database from MS Sql Server 2005 to Mysql 5.1.39.<br />
I first tried to migrate a table . In this table there is  a field whit this definition : [ [id] [numeric](19, 0) IDENTITY(1,1) NOT NULL] . The Workbench proposes me this conversion: [`id` DECIMAL(19,0) NOT NULL ].<br />
<br />
If I use this definition the copy is performed successfully, but I have to migrate to this definition [ `id` BIGINT(20) NOT NULL AUTO_INCREMENT ].<br />
If I use  this second definition I have an error in the copy data phase: <br />
<br />
ERROR: `ALFRESCO_TEST`.`alf_qname`:Type mismatch fetching field 1 (should be string, was MYSQL_TYPE_LONGLONG) <br />
<br />
Why ? Is it possible make this target definition ?<br />
Thanks for the help]]></description>
            <dc:creator>gioia guiducci</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 10 May 2013 18:12:31 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,585363,585363#msg-585363</guid>
            <title>Disalow persistent connexion on MySQL 5.1 running under WINDOWS with ASP (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,585363,585363#msg-585363</link>
            <description><![CDATA[ Hi,<br />
<br />
how can i disable /disolow / limit persistent connexions on MySQL 5.1 running under windows with IIS 7.0 (ASP) ?<br />
<br />
When google bots or another search engines robots (i presume) visits differents websites host on my windows server, a lot of persistents connexions are created and after serverals minutes / hours my max_connections=300 set in my.ini file is is reaches...<br />
<br />
screen copy here <a href="http://www.autourdunet.fr/images/mysql.jpg"  rel="nofollow">http://www.autourdunet.fr/images/mysql.jpg</a>]]></description>
            <dc:creator>Damien BONVARLET</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Thu, 02 May 2013 21:14:06 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,585339,585339#msg-585339</guid>
            <title>convert MSSQL job to MySQL (3 replies)</title>
            <link>http://forums.mysql.com/read.php?60,585339,585339#msg-585339</link>
            <description><![CDATA[ I have an application that dumps logs into 2 databases.  They have been on MSSQL for years and I recently needed to move them to MySQL.  In MSSQL 30 days worth of logs would be 150GB.  So I had a job running at night that trimmed everything older than 30 days, then did a backup with truncate_only and a shrink log as such:<br />
     DELETE FROM ESSyslogMain WHERE recorddate &lt; getdate()- 30<br />
     backup log syslog with truncate_only<br />
     DBCC SHRINKFILE(syslog_log, 1)<br />
<br />
How can I accomplish this in MySQL?<br />
     DELETE FROM ESSyslogMain WHERE recorddate &lt; curdate()- 30<br />
seems to take care of the first line, but I'm stuck after that.<br />
<br />
Can anyone tell me the code &quot;conversion&quot; for the 2nd and 3rd lines?  Can anyone tell me how to schedule a job in MySQL?  I have version 5.2.47CE of the workbench installed.<br />
TIA<br />
Craig]]></description>
            <dc:creator>Craig Tompkins</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Mon, 06 May 2013 12:18:41 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,585162,585162#msg-585162</guid>
            <title>Move Data from MySQL to SQL Server via SSIS (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,585162,585162#msg-585162</link>
            <description><![CDATA[ -------------------------------------------------------------<br />
How to connect and load data from MySQL to SQL Server<br />
-------------------------------------------------------------<br />
<br />
1 - Download the 32 bit ODBC driver. <br />
 <br />
go to the MySQL website and download: “mysql-connector-odbc-5.2.4-ansi-win32.msi”<br />
NOTE: Do not use the 64 bit driver on BIDS 2008.  BIDS 2008 is 32 bit.  You will get a mismatch error when creating SSIS’s connection manager: “The specified DSN contains an architecture mismatch between the Driver and Application”<br />
<br />
2 - Create a User DSN<br />
<br />
You need to open the using windows 32 ODBC admin tool. DO NOT open the regular ODBC admin, in control panel.   Open the ODBC admin located here:  c:\Windows\SysWOW64\odbcad32.exe.  If you use the default ODBC admin…it will not work.  Additionally you must create a “User DSN” - NOT a System DSN. Otherwise it will not show up in SSIS<br />
NOTE: the screens look the same so you will have no way of knowing whether you are in 32 BIT ODBC Admin tool or not.<br />
<br />
3 – Create a new SSIS package and create an ADO.NET connection manager. Create your ADO.NET destination connection and object.(where you want to send the data)<br />
<br />
4 – Change the Source ADO.NET properties.<br />
<br />
You will get validation errors and your package will not run.  You need to change the “ValidateExternalMetadata” to FALSE (in the “Advanced Editor” dialog box) of the ADO.NET source   It will also give you metadata error…that’s ok…just click ok.  It will still pull the metadata (column names/data types).  You cannot select the tables as you would in SQL server.  You need to type the SQL select statement. <br />
<br />
5 - Run the package and should run and load normally.]]></description>
            <dc:creator>Andrew Venuto</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Mon, 29 Apr 2013 23:47:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,583700,583700#msg-583700</guid>
            <title>money type (1 reply)</title>
            <link>http://forums.mysql.com/read.php?60,583700,583700#msg-583700</link>
            <description><![CDATA[ Hi,<br />
<br />
I try to migrate a SQL database to MySQL with MySQL Workbench 5.2 and i have a problem with a field that have a money type with this error 'NoneType' object has no attribute 'numericPrecision'<br />
<br />
Do I need to change the field? Or is there a workaround?<br />
<br />
Julien]]></description>
            <dc:creator>Julien Jeanneret</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 03 May 2013 16:18:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,580279,580279#msg-580279</guid>
            <title>Can I query MSSQL from a MySQL session? (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,580279,580279#msg-580279</link>
            <description><![CDATA[ I have a MySQL database running on Linux.  I want to link MySQL to a MSSQL database running on Windows.  Not a MySQL database.  Not data migration.  Not data replication.  Not log shipping.  I want to open MySQL, enter a query, and obtain data from the MSSQL database itself.  I suppose I'm asking how to setup MySQL Linked Server to MSSQL.]]></description>
            <dc:creator>Paul Trejo</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Thu, 28 Feb 2013 20:42:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,580218,580218#msg-580218</guid>
            <title>WorkBench Migration error (2 replies)</title>
            <link>http://forums.mysql.com/read.php?60,580218,580218#msg-580218</link>
            <description><![CDATA[ Hello,<br />
i'm trying to migrate an MS SQL Server 2008 R2x64 database to MYSQL 5.1.36 using WorkBench migrating tool.<br />
I've successfully setup the source and target RDBMS (test connection OK).<br />
But for the next step (Fetch shema list), there is a error connecting to DBMS source:<br />
<br />
Starting...<br />
<br />
Connect to source DBMS...<br />
<br />
- Connecting to source...<br />
<br />
Traceback (most recent call last):<br />
<br />
  File &quot;C:\Program Files\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py&quot;, line 173, in getServerVersion<br />
<br />
    ver_string = execute_query(connection, &quot;SELECT CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)&quot;).fetchone()[0]<br />
<br />
  File &quot;C:\Program Files\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py&quot;, line 62, in execute_query<br />
<br />
    return get_connection(connection_object).cursor().execute(query, *args, **kwargs)<br />
<br />
pyodbc.ProgrammingError: ('42000', '[42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.36]FUNCTION SERVERPROPERTY does not exist (1305) (SQLExecDirectW)')<br />
<br />
Traceback (most recent call last):<br />
<br />
  File &quot;C:\Program Files\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py&quot;, line 173, in getServerVersion<br />
<br />
    ver_string = execute_query(connection, &quot;SELECT CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)&quot;).fetchone()[0]<br />
<br />
  File &quot;C:\Program Files\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py&quot;, line 62, in execute_query<br />
<br />
    return get_connection(connection_object).cursor().execute(query, *args, **kwargs)<br />
<br />
pyodbc.ProgrammingError: ('42000', '[42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.36]FUNCTION SERVERPROPERTY does not exist (1305) (SQLExecDirectW)')<br />
<br />
<br />
<br />
Traceback (most recent call last):<br />
<br />
  File &quot;C:\Program Files\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py&quot;, line 66, in run<br />
<br />
    self.func()<br />
<br />
  File &quot;C:\Program Files\MySQL\MySQL Workbench 5.2 CE\modules\migration_source_selection.py&quot;, line 415, in task_connect<br />
<br />
    raise e<br />
<br />
SystemError: ProgrammingError(&quot;('42000', '[42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.36]FUNCTION SERVERPROPERTY does not exist (1305) (SQLExecDirectW)')&quot;): error calling Python module function DbMssqlRE.getServerVersion<br />
<br />
ERROR: Error during Connect to source DBMS: ProgrammingError(&quot;('42000', '[42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.36]FUNCTION SERVERPROPERTY does not exist (1305) (SQLExecDirectW)')&quot;): error calling Python module function DbMssqlRE.getServerVersion<br />
<br />
ERROR: Exception in task 'Connect to source DBMS': SystemError('ProgrammingError(&quot;(\'42000\', \'[42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.36]FUNCTION SERVERPROPERTY does not exist (1305) (SQLExecDirectW)\')&quot;): error calling Python module function DbMssqlRE.getServerVersion',)<br />
<br />
Failed<br />
<br />
Thank for any help.]]></description>
            <dc:creator>PHILIPPE CHAUVIN</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Mon, 04 Mar 2013 23:52:50 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,579069,579069#msg-579069</guid>
            <title>Write query to test the logic (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,579069,579069#msg-579069</link>
            <description><![CDATA[ Primary Source: SIEBEL <br />
Source Table: SBL.dbo.S_ORG_EXT<br />
Source Column:PRTNR_TYPE_CD, OU_TYPE_CD, OU_NM, NAME<br />
Secondary Source: SFDC<br />
Source Table: SFDC.dbo.T_ACCOUNT<br />
Source Column: PARTNER_TYPE__C, ACCOUNT_CSN__C, NAME<br />
<br />
Siebel Logic: (c=child, p=parent)<br />
  ,CAST(CASE<br />
     WHEN c.[OU_TYPE_CD] IS NULL AND c.[PRTNR_TYPE_CD] IS NULL <br />
     THEN 'UNKNOWN'<br />
     WHEN UPPER(c.[OU_TYPE_CD]) = 'INTERNAL'<br />
     THEN 'INTERNAL'<br />
     WHEN UPPER(COALESCE(p.[NAME],c.[NAME])) = 'AUTODESK INC'<br />
     THEN 'INTERNAL'<br />
     WHEN c.[PRTNR_TYPE_CD] IS NOT NULL<br />
     THEN 'PARTNER'<br />
     ELSE 'CUSTOMER'<br />
   END AS NVARCHAR(50)) <br />
AS ACCOUNT_CATEGORY_NM]]></description>
            <dc:creator>Laksmi Patange</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 13 Feb 2013 05:52:55 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,578617,578617#msg-578617</guid>
            <title>Multi-column Primary Key (1 reply)</title>
            <link>http://forums.mysql.com/read.php?60,578617,578617#msg-578617</link>
            <description><![CDATA[ Running under a MySQL 5.0.45 server, I have created a MyISAM Table containing the columns:<br />
<br />
user		:: varchar(8)<br />
datetime	:: datetime<br />
seqno		:: int(11) -- autoincrement<br />
subject		:: varchar(20)<br />
text		:: text<br />
<br />
and have set my Primary Key as multi columns using (user, datetime, seqno).<br />
<br />
I did a few INSERTS and all was looking ok but then I had a new INSERT of data appear out of order on the next SELECT.  A few more INSERTS worked as expected w/ newer entries appearing at the end of SELECTED data but then another entry again jumped ahead of the older entries.<br />
<br />
A current example portion of my data for columns (user, datetime, seqno, subject, text) gets ordered as follows when returning data from a SELECT:<br />
<br />
USER1, 2013-02-06 02:24:17, 19, subject 19, text 19<br />
USER1, 2013-02-06 02:24:55, 22, subject 22, text 22<br />
USER1, 2013-02-06 02:24:30, 20, subject 20, text 20<br />
USER1, 2013-02-06 02:24:42, 21, subject 21, text 21<br />
<br />
Any ideas why Entry #22 would get placed between 19 and 20 in the data?<br />
<br />
Thanks]]></description>
            <dc:creator>Mark Parr</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 20 Feb 2013 09:42:10 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,577810,577810#msg-577810</guid>
            <title>connect to SQL Server from mysql (4 replies)</title>
            <link>http://forums.mysql.com/read.php?60,577810,577810#msg-577810</link>
            <description><![CDATA[ I am a newbie to this. We do not have SSIS or an ETL tool. How can I connect to MSSQL Server, execute a query and retrieve data into MySQL database? Do I have to write a python script? Are there any other options? Can you provide some details on this?]]></description>
            <dc:creator>SAM B</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 24 Apr 2013 13:20:09 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,577594,577594#msg-577594</guid>
            <title>no connection (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,577594,577594#msg-577594</link>
            <description><![CDATA[ l'm using mySQL 5.1, l wasn't having any issues with connecting but now am.<br />
<br />
l ran the wizard a few different ways, the default port is 3306 which l left there.<br />
<br />
Have tried rebooting, etc.]]></description>
            <dc:creator>allison ose</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Sun, 20 Jan 2013 04:48:37 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,577167,577167#msg-577167</guid>
            <title>SQL Server to MySQL (4 replies)</title>
            <link>http://forums.mysql.com/read.php?60,577167,577167#msg-577167</link>
            <description><![CDATA[ Migrating a SQL Server 2008 R2 database to MySQL Server 5.5 using Workbench 5.2 throws create table error for varchar(max) data types.<br />
<br />
The CREATE TABLE script generated for the SQL Server fields of type varchar(MAX) are defined as just varchar with no size like varchar(255).  These should be TEXT or one of its variation and when I edit to TEXT, it works. Is there a setting or configuration somewhere that I can set to persist this correction?]]></description>
            <dc:creator>Robin Oaks</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 11 Jan 2013 20:29:48 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,576309,576309#msg-576309</guid>
            <title>Migration error on script view when changing target (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,576309,576309#msg-576309</link>
            <description><![CDATA[ Hello,<br />
<br />
Thank you for the integration of &quot;Migration&quot;.<br />
<br />
Thank you for the integration of Migration.<br />
In step &quot;Manual Edditing&quot;, it is really convenient to change the target schema name.<br />
But in the case of query views, the migration script automatically adds references to the source, which causes an error.<br />
For example:<br />
<br />
Source on Toga_dev1<br />
CREATE <br />
    ALGORITHM = UNDEFINED <br />
    DEFINER = `root`@`localhost` <br />
    SQL SECURITY DEFINER<br />
VIEW `facture_euro` AS<br />
    select <br />
        `i`.`idimplantation` AS `idimplantation`,<br />
        `m`.`time_by_day_idtime` AS `time_by_day_idtime`,<br />
        `m`.`valeur` AS `facture_value`<br />
    from<br />
        ((((((`mesures` `m`<br />
        join `implantation` `i` ON ((`m`.`implantation_idImplantation` = `i`.`idimplantation`)));<br />
<br />
<br />
Target on Toga_dev8<br />
USE `Toga_dev8`;<br />
<br />
CREATE  OR REPLACE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` <br />
SQL SECURITY DEFINER VIEW `Toga_dev1`.`facture_euro` AS<br />
select `i`.`idimplantation` AS `idimplantation`,<br />
`m`.`time_by_day_idtime` AS `time_by_day_idtime`,<br />
`m`.`valeur` AS `facture_value` <br />
from <br />
((((((`Toga_dev1`.`mesures` `m` <br />
join `Toga_dev1`.`implantation` `i` on((`m`.`implantation_idImplantation` = `i`.`idimplantation`))) ;<br />
<br />
<br />
Is there an option or a solution to address this problem]]></description>
            <dc:creator>Support CM2D</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 19 Dec 2012 13:53:53 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,576307,576307#msg-576307</guid>
            <title>upload client side data to the MySQL server (1 reply)</title>
            <link>http://forums.mysql.com/read.php?60,576307,576307#msg-576307</link>
            <description><![CDATA[ Can someone tell me how do i upload the data created in mysql command line client into the Mysql server,<br />
I mean, i have created some tables using mysql command line client in my system, it is accessible only to me. how do i upload it into the mysql server so that i can access those table contents even from other systems.]]></description>
            <dc:creator>Preethi K</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Thu, 17 Jan 2013 01:35:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,575155,575155#msg-575155</guid>
            <title>Conversion problem with cast function (3 replies)</title>
            <link>http://forums.mysql.com/read.php?60,575155,575155#msg-575155</link>
            <description><![CDATA[ Hi all, i have a little problem with cast function in mysql.<br />
I want convert one database (with procedures) in SQL Server to MySQL.<br />
In SQL Server i can do this: Cast(258 As Binary(4)) and return [0, 0, 1, 2], but in MySQL return [32, 35, 38, 00]. The cast function in MySQL convert the number into char and then convert it to binary(4).<br />
<br />
I only want do the same that i do with SQL Server... <br />
someone know any solution for this issue?<br />
<br />
Table definition:<br />
Create Table If Not Exists TResult(info varbinary(8000));<br />
<br />
Insert sample<br />
Insert into tresult (info) values (cast(258 as binary(4)));]]></description>
            <dc:creator>Alberto Molero</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 05 Dec 2012 07:50:14 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,571245,571245#msg-571245</guid>
            <title>SQL Server to MySQL (5 replies)</title>
            <link>http://forums.mysql.com/read.php?60,571245,571245#msg-571245</link>
            <description><![CDATA[ I have a SQL Server database. I would need to have the data structures and procedures migrated to a MySQL database. Are there some jump start tools for this objective?]]></description>
            <dc:creator>Deepak Vasudevan</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 19 Dec 2012 12:08:59 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,569717,569717#msg-569717</guid>
            <title>Is it possible to develop Window using PHP &amp; SQL (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,569717,569717#msg-569717</link>
            <description><![CDATA[ hello guys , <br />
               i am trying to start building my own operating system , is it possible to develop OS using php and SQL . Thanks in advance<br />
<br />
<a href="http://evolvan.com/php-professional-training"  rel="nofollow">Php Training In Ludhiana</a>]]></description>
            <dc:creator>Deep programmer1</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 28 Sep 2012 04:06:52 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,567873,567873#msg-567873</guid>
            <title>may i set default schema in migration wizard (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,567873,567873#msg-567873</link>
            <description><![CDATA[ may i set default schema in migration wizard  when i want to connect to sql server 2005,thx.<br />
<br />
i haven't privilege to see the sql server shema.but in dbsync,it has defualt schema,so it can work.]]></description>
            <dc:creator>wei hu</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Sat, 08 Sep 2012 12:11:45 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,567520,567520#msg-567520</guid>
            <title>need my sql query pls help (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,567520,567520#msg-567520</link>
            <description><![CDATA[ I have a table PicUpload  and I want to write a query that on a particular date time how many photos uploaded, suppose on 5 September 2012 between 9.00 a.m to 9.10 a.m  suppose 20 photos uploaded i.e between 10 mins how much photo uploaded, for this I want a query , I can choose any interval  time of day suppose it can be 10 mins, 20 mins, 1 mins etc.waiting for the reply.Please look out the url below for your help<br />
<br />
<a href="http://img809.imageshack.us/img809/1648/picupload.jpg"  rel="nofollow">http://img809.imageshack.us/img809/1648/picupload.jpg</a>]]></description>
            <dc:creator>salman mohd</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Thu, 06 Sep 2012 10:39:12 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,567519,567519#msg-567519</guid>
            <title>need my sql query (1 reply)</title>
            <link>http://forums.mysql.com/read.php?60,567519,567519#msg-567519</link>
            <description><![CDATA[ I have a table PicUpload  and I want to write a query that on a particular date time how many photos uploaded, suppose on 5 September 2012 between 9.00 a.m to 9.10 a.m  suppose 20 photos uploaded i.e between 10 mins how much photo uploaded, for this I want a query , I can choose any interval  time of day suppose it can be 10 mins, 20 mins, 1 mins etc.waiting for the reply.Please look out the url below for your help<br />
<br />
<a href="http://img809.imageshack.us/img809/1648/picupload.jpg"  rel="nofollow">http://img809.imageshack.us/img809/1648/picupload.jpg</a>]]></description>
            <dc:creator>salman mohd</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 19 Sep 2012 06:43:39 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,566776,566776#msg-566776</guid>
            <title>How to use MySQL Migration in Workbench (5 replies)</title>
            <link>http://forums.mysql.com/read.php?60,566776,566776#msg-566776</link>
            <description><![CDATA[ Just downloaded the newest version of MySQL Workbench, but don't see the migration option in Workbench.  How do you access it?]]></description>
            <dc:creator>Peter Jin</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 17 Oct 2012 13:46:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,565965,565965#msg-565965</guid>
            <title>Sync MS SQL data to MySQL (2 replies)</title>
            <link>http://forums.mysql.com/read.php?60,565965,565965#msg-565965</link>
            <description><![CDATA[ In my organization we use both MS SQL and MySQL.<br />
Some data will be in MS SQL and some will be in MySQL.<br />
<br />
We wan to sync the required table fields from MySQL to MS SQL and vise versa when every there is an update/insert/delete of record on specified field on MySQL.<br />
And sechudled sync from MySQL to MS SQL.<br />
<br />
how can i fullfill my requirements.]]></description>
            <dc:creator>PBL Narasimha Rao</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 24 Aug 2012 06:17:35 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,565891,565891#msg-565891</guid>
            <title>Once Again 4-part Queries are failing with linked Server (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,565891,565891#msg-565891</link>
            <description><![CDATA[ A recent and complete rebuild of my MSSQLServer and Latest Version of MySQL ODBC is failing to connect to External MySQL Server <br />
 <br />
That is, a query like: <br />
<br />
SELECT * FROM [TRACKER]...[issues]<br />
SELECT * FROM [TRACKER].[bitnami_redmine]..[issues]<br />
worked prior to this migration, but now issues the following error: <br />
<br />
Msg 7313, Level 16, State 1, Line 1 <br />
An invalid schema or catalog was specified for the provider &quot;MSDASQL&quot; for linked server &quot;TRACKER&quot;.<br />
<br />
SELECT * FROM OPENQUERY([TRACKER], 'SELECT * FROM Issues')<br />
Returns Expected Results <br />
<br />
Tried  <br />
SELECT * FROM [TRACKER]..[bitnami_redmine].[issues]<br />
 A four-part name was supplied, but the provider does not expose the necessary interfaces to use a catalog or schema.<br />
 <br />
In forums, I have scene and added &quot;option=3&quot; to the connection string but I do not know what that option refer too.]]></description>
            <dc:creator>Randy Pitkin</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 22 Aug 2012 20:02:47 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,562771,562771#msg-562771</guid>
            <title>mssql to mysql query conversion (4 replies)</title>
            <link>http://forums.mysql.com/read.php?60,562771,562771#msg-562771</link>
            <description><![CDATA[ I am trying to get started in converting some queries from mssql to mysql. <br />
The information I have gathered so far seems that I need to change the &quot;stuff&quot; statements to group_concat. I am unclear on if the cast statements need modified. and I have tried to modify this darn thing to what I believe it should be, but I can't get it to run! Arrrgg! Anyone have some advice for this conversion? There is no query migration tool that I can find, which seems logical given the complexity of such a tool. I would like to add I know nothing of mssql, but I am fair at mysql.<br />
<br />
 Here is one of the queries in question. <br />
<br />
SELECT DISTINCT c.name Cluster, s.name Server. stuff( ( SELECT cast(', ' as varchar(max)) +  sc2.name FROM Server_contact AS sc2 <br />
WHERE sc2.Server_ID=s.Server_ID ORDER BY sc.name <br />
    for xml path('')<br />
    ), 1, 1, '')<br />
AS 'Server Contact', <br />
(SELECT c.name FROM Cluster c WHERE c.Cluster_ID=s.virtual) 'Virtual on',  a.name Application,<br />
<br />
 stuff( ( SELECT cast(', ' as varchar(max)) +  ac2.name FROM app_contact AS ac2 <br />
WHERE ac2.App_ID=ac.App_ID ORDER BY ac.name<br />
    for xml path('')<br />
    ), 1, 1, '')<br />
AS 'Application contact', <br />
    stuff(<br />
    (<br />
    select cast(',' as varchar(max)) + s3.name<br />
    from Server s3<br />
	LEFT JOIN App_affect apaf on apaf.App_ID=a.App_ID<br />
	LEFT JOIN affected aff on aff.aff_ID=apaf.aff_Id<br />
	WHERE aff.Server_ID=s3.Server_ID AND apaf.Server_ID='&quot;.$_REQUEST['server'].&quot;'<br />
    ORDER BY s.Name<br />
    for xml path('')<br />
    ), 1, 1, '')<br />
AS 'App Affected Server', <br />
<br />
    stuff(<br />
    (<br />
    select cast(',' as varchar(max)) + a3.name<br />
    from Application a3<br />
	LEFT JOIN App_affect apaf on apaf.App_ID=a.App_ID<br />
	LEFT JOIN affected aff on aff.aff_ID=apaf.aff_Id<br />
	WHERE aff.App_ID=a3.App_ID AND apaf.Server_ID='&quot;.$_REQUEST['server'].&quot;'<br />
	ORDER BY s.Name<br />
    for xml path('')<br />
    ), 1, 1, '')<br />
AS 'App Affected Application'<br />
<br />
FROM Server s<br />
LEFT JOIN Server_Cluster scl ON s.Server_ID = scl.Server_ID<br />
LEFT JOIN Cluster c ON c.Cluster_ID = scl.Cluster_ID<br />
LEFT JOIN Server_contact sc ON s.Server_ID = sc.Server_ID<br />
LEFT JOIN Server_App sa ON s.Server_ID = sa.Server_ID<br />
LEFT JOIN Application a ON a.App_ID = sa.App_ID<br />
LEFT JOIN App_contact ac ON a.App_ID = ac.App_ID<br />
LEFT JOIN Server_affect saf ON s.Server_ID = saf.Server_ID<br />
LEFT JOIN Affected aff ON aff.aff_ID = saf.aff_ID<br />
WHERE s.Server_ID='&quot;.$_REQUEST['server'].&quot;'<br />
ORDER BY c.name DESC, s.name ASC<br />
&quot;;]]></description>
            <dc:creator>chris Sellers</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Thu, 16 Aug 2012 19:31:58 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,562580,562580#msg-562580</guid>
            <title>Moving from Microsoft SQL SERVER 7.0 to MYSQLSERVER 5.5 (2 replies)</title>
            <link>http://forums.mysql.com/read.php?60,562580,562580#msg-562580</link>
            <description><![CDATA[ Hi,<br />
<br />
I've just moved from Microsoft SQL SERVER 7.0 to MYSQL SERVER 5.5<br />
I've installed MYSQL SERVER 5.5 and MySql Workbench 5.2 CE<br />
<br />
I changed the version due to the new server I've bought to replace my PC working as a server.<br />
<br />
So, the first problem I encountered was that I can't import my old database into this new version of MYSQLSERVER 5.5.<br />
<br />
The old database from Microsoft SQL SERVER 7.0 were consisted of two files: &quot;dataname&quot;.mdf and &quot;dataname&quot;.ldf<br />
<br />
My question is would it be possible for me to import .mdf and .ldf file including its tables' content to this new version of MYSQL server 5.5.<br />
<br />
If applicable, please advice<br />
If not, please tell me the other ways<br />
<br />
Thank you in advance]]></description>
            <dc:creator>Mananchai Rojamornkul</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 17 Oct 2012 10:04:57 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,562088,562088#msg-562088</guid>
            <title>Copy the data from different host and database (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,562088,562088#msg-562088</link>
            <description><![CDATA[ Hi everyone, <br />
<br />
how can i copy the data from db1.table to db2.table with different username and password?<br />
<br />
Example.<br />
   the username/pass of db1.table is username: host1 password: host1<br />
and<br />
  the username/pass of db2.table is username: host2 password: host2<br />
<br />
So how can i make the command here? <br />
<br />
<br />
thanks]]></description>
            <dc:creator>ashin aseneta</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 20 Jul 2012 04:04:43 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,561210,561210#msg-561210</guid>
            <title>during migrating data from msql 2008 server to mysql server i am faced with the error message.-- Any help would be appreciated (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,561210,561210#msg-561210</link>
            <description><![CDATA[ ALTER PROCEDURE [dbo].[proc_ltcmigrate_residents]<br />
AS<br />
BEGIN<br />
<br />
<br />
/*<br />
PersonFriendlyId is ported as NULL.<br />
FacilityId is determined based on the following rules in order<br />
a. If there is a valid facilityid in ltcperson that is taken<br />
b. Check the last bed activity in ltcbedschedule and choose that facility<br />
c. Check the last batch activity and choose that facility in batch<br />
d. default to 1<br />
*/<br />
<br />
Insert lee_mig...ltcperson<br />
(<br />
ltcPersonID<br />
,FirstName<br />
,LastName<br />
,PersonFriendlyID<br />
,ApplicableAdmissionDate<br />
,Archived<br />
,ArchivedDate<br />
,ArchivedByUserID<br />
,ProgressNoteDays<br />
,ltcOrganisationID<br />
,oldPersonID<br />
,CreatedBy <br />
,CreatedDate <br />
)<br />
SELECT <br />
 P.PersonID<br />
,FirstName<br />
,LastName<br />
,PersonFriendlyID  <br />
,ApplicableAdmissionDate<br />
,Archived<br />
,ArchivedDate<br />
,case when ArchivedByUserID=-1 then null else ArchivedByUserID end<br />
,ProgressNoteDays<br />
,COALESCE(case when P.FacilityID&gt;0 then P.FacilityID else null end, LastActiveFacility.FacilityId, (select top 1 FacilityID from ltcbatch b where b.PersonId=P.personid and FacilityID&gt;0 and FacilityID is not null order by BatchID desc), 1)<br />
,OldPersonID<br />
,(select top 1 userid from ltcbatch b where b.PersonId=P.personid and b.UserID&lt;&gt;0 order by BatchID)<br />
,(select top 1 DateCreated from ltcbatch b where b.PersonId=P.PersonID order by BatchID)<br />
FROM ltcPerson P<br />
left join<br />
(<br />
   SELECT DISTINCT v.OrgID FacilityId, LBS.PersonID from ltcBedSchedule LBS inner join <br />
   (Select Max(ID) ID, PersonID from ltcbedschedule where PersonID&gt;0 and BedPK&gt;0 group by PersonID) MLBS on LBS.ID=MLBS.ID<br />
   inner join vwBeds v on v.BedPK=LBS.BedPK<br />
)  LastActiveFacility on LastActiveFacility.PersonID=P.PersonID<br />
where exists(select * from ltcBatch b where P.personid=b.personid)<br />
<br />
<br />
insert lee_mig...ltcbeds<br />
		(<br />
		 BedPK<br />
		,RoomID<br />
		,PersonID<br />
		,BedName<br />
		,Status<br />
		,DateFrom<br />
		,BedGPSX<br />
		,BedGPSY<br />
		)<br />
<br />
		select<br />
<br />
		 BedPK<br />
		,RoomID<br />
		,case when PersonID &lt;=0 then null else PersonID end<br />
		,BedName<br />
		,Status<br />
		,DateFrom<br />
		,BedGPSX<br />
		,BedGPSY<br />
<br />
		from ltcbeds<br />
<br />
<br />
After executing this procedure I get an error<br />
OLE DB provider &quot;MSDASQL&quot; for linked server &quot;lee_mig&quot; returned message &quot;[MySQL][ODBC 5.1 Driver][mysqld-5.5.12]Cannot add or update a child row: a foreign key constraint fails (`ltcdb_prod`.`ltcperson`, CONSTRAINT `fk_ltcperson_ltcuser1` FOREIGN KEY (`ArchivedByUserID`) REFERENCES `ltcuser` (`UserID`) ON DELETE NO ACTION ON UPDATE NO ACTION)&quot;.<br />
Msg 7343, Level 16, State 2, Line 1<br />
The OLE DB provider &quot;MSDASQL&quot; for linked server &quot;lee_mig&quot; could not INSERT INTO table &quot;[lee_mig]...[ltcperson]&quot;. <br />
<br />
<br />
To debug the error I executed a query and found that there are some UserID which doesn’t exist in ltcuser. And the UserID is a primary key in ltcuser.<br />
<br />
<br />
<br />
Please let me know if u guys need some further information.]]></description>
            <dc:creator>chandan vijayvargiya</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Sat, 14 Jul 2012 11:20:00 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,561209,561209#msg-561209</guid>
            <title>I am facing an error while migrating data from sql server 2008 to mysql server (no replies)</title>
            <link>http://forums.mysql.com/read.php?60,561209,561209#msg-561209</link>
            <description><![CDATA[ ALTER PROCEDURE [dbo].[proc_ltcmigrate_residents]<br />
AS<br />
BEGIN<br />
<br />
<br />
/*<br />
PersonFriendlyId is ported as NULL.<br />
FacilityId is determined based on the following rules in order<br />
a. If there is a valid facilityid in ltcperson that is taken<br />
b. Check the last bed activity in ltcbedschedule and choose that facility<br />
c. Check the last batch activity and choose that facility in batch<br />
d. default to 1<br />
*/<br />
<br />
Insert lee_mig...ltcperson<br />
(<br />
ltcPersonID<br />
,FirstName<br />
,LastName<br />
,PersonFriendlyID<br />
,ApplicableAdmissionDate<br />
,Archived<br />
,ArchivedDate<br />
,ArchivedByUserID<br />
,ProgressNoteDays<br />
,ltcOrganisationID<br />
,oldPersonID<br />
,CreatedBy <br />
,CreatedDate <br />
)<br />
SELECT <br />
 P.PersonID<br />
,FirstName<br />
,LastName<br />
,PersonFriendlyID  <br />
,ApplicableAdmissionDate<br />
,Archived<br />
,ArchivedDate<br />
,case when ArchivedByUserID=-1 then null else ArchivedByUserID end<br />
,ProgressNoteDays<br />
,COALESCE(case when P.FacilityID&gt;0 then P.FacilityID else null end, LastActiveFacility.FacilityId, (select top 1 FacilityID from ltcbatch b where b.PersonId=P.personid and FacilityID&gt;0 and FacilityID is not null order by BatchID desc), 1)<br />
,OldPersonID<br />
,(select top 1 userid from ltcbatch b where b.PersonId=P.personid and b.UserID&lt;&gt;0 order by BatchID)<br />
,(select top 1 DateCreated from ltcbatch b where b.PersonId=P.PersonID order by BatchID)<br />
FROM ltcPerson P<br />
left join<br />
(<br />
   SELECT DISTINCT v.OrgID FacilityId, LBS.PersonID from ltcBedSchedule LBS inner join <br />
   (Select Max(ID) ID, PersonID from ltcbedschedule where PersonID&gt;0 and BedPK&gt;0 group by PersonID) MLBS on LBS.ID=MLBS.ID<br />
   inner join vwBeds v on v.BedPK=LBS.BedPK<br />
)  LastActiveFacility on LastActiveFacility.PersonID=P.PersonID<br />
where exists(select * from ltcBatch b where P.personid=b.personid)<br />
<br />
<br />
insert lee_mig...ltcbeds<br />
		(<br />
		 BedPK<br />
		,RoomID<br />
		,PersonID<br />
		,BedName<br />
		,Status<br />
		,DateFrom<br />
		,BedGPSX<br />
		,BedGPSY<br />
		)<br />
<br />
		select<br />
<br />
		 BedPK<br />
		,RoomID<br />
		,case when PersonID &lt;=0 then null else PersonID end<br />
		,BedName<br />
		,Status<br />
		,DateFrom<br />
		,BedGPSX<br />
		,BedGPSY<br />
<br />
		from ltcbeds<br />
<br />
<br />
After executing this procedure I get an error<br />
OLE DB provider &quot;MSDASQL&quot; for linked server &quot;lee_mig&quot; returned message &quot;[MySQL][ODBC 5.1 Driver][mysqld-5.5.12]Cannot add or update a child row: a foreign key constraint fails (`ltcdb_prod`.`ltcperson`, CONSTRAINT `fk_ltcperson_ltcuser1` FOREIGN KEY (`ArchivedByUserID`) REFERENCES `ltcuser` (`UserID`) ON DELETE NO ACTION ON UPDATE NO ACTION)&quot;.<br />
Msg 7343, Level 16, State 2, Line 1<br />
The OLE DB provider &quot;MSDASQL&quot; for linked server &quot;lee_mig&quot; could not INSERT INTO table &quot;[lee_mig]...[ltcperson]&quot;. <br />
<br />
<br />
To debug the error I executed a query and found that there are some UserID which doesn’t exist in ltcuser. And the UserID is a primary key in ltcuser.]]></description>
            <dc:creator>chandan vijayvargiya</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Sat, 14 Jul 2012 11:11:29 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,560436,560436#msg-560436</guid>
            <title>insert data from MySQL into SQL Server (5 replies)</title>
            <link>http://forums.mysql.com/read.php?60,560436,560436#msg-560436</link>
            <description><![CDATA[ Hi,<br />
<br />
i want to make my SQLServer can automatically get data from mysql and insert it into my SQLServer table, anyone know how to do this?<br />
<br />
mysql table : <br />
tbl_downtime (date datetime, downtime varchar, uptime varchar)<br />
                2012/07/09,     09:34:00,       10:00:00<br />
sql server table :<br />
tbl_downtimeMS (date datetime, downtime varchar, uptime varchar)<br />
<br />
i cant change the apllication to get data and insert it into MSSQL, because i dont have the source. thats why i need to make it from the database.<br />
<br />
Thanks]]></description>
            <dc:creator>vincent arc</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Wed, 08 Aug 2012 08:48:30 +0000</pubDate>
        </item>
        <item>
            <guid>http://forums.mysql.com/read.php?60,560340,560340#msg-560340</guid>
            <title>importing data from sql server (5 replies)</title>
            <link>http://forums.mysql.com/read.php?60,560340,560340#msg-560340</link>
            <description><![CDATA[ hi ,<br />
<br />
i want to change my server's database from sql server to mysql. I have tried this by exporting data in .sql format and importing in mysql server. But it gave me error and leave the whole task in middle can please anybody help]]></description>
            <dc:creator>harishanker srivastava</dc:creator>
            <category>Microsoft SQL Server</category>
            <pubDate>Fri, 10 Aug 2012 21:27:23 +0000</pubDate>
        </item>
    </channel>
</rss>
