please give me a script that wil transfer a flat file from an MSSQL Database to an oracle database
↧
Transfering a file form a MSSQL database to a oracle database (2 replies)
↧
money type (no replies)
Hi,
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'
Do I need to change the field? Or is there a workaround?
Julien
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'
Do I need to change the field? Or is there a workaround?
Julien
↧
↧
Josh Yudell Need Help – Related Data migration (no replies)
Samsung SSD Data migration
Hello Friends
In recent times I bought a Samsung 840 SSD 120 Gig
Along with the device a software incl. Data migration followed.
Now I wonder, if it is safe to migrate my Operating System with this program and can I still be using my old HDD as an optional storage device?
To Know More About Data migration visit – Josh Yudell
Or visit here - http://www.tomshardware.com/s/data+migrating+storage+forum/
Hello Friends
In recent times I bought a Samsung 840 SSD 120 Gig
Along with the device a software incl. Data migration followed.
Now I wonder, if it is safe to migrate my Operating System with this program and can I still be using my old HDD as an optional storage device?
To Know More About Data migration visit – Josh Yudell
Or visit here - http://www.tomshardware.com/s/data+migrating+storage+forum/
↧
Move Data from MySQL to SQL Server via SSIS (no replies)
-------------------------------------------------------------
How to connect and load data from MySQL to SQL Server
-------------------------------------------------------------
1 - Download the 32 bit ODBC driver.
go to the MySQL website and download: “mysql-connector-odbc-5.2.4-ansi-win32.msi”
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”
2 - Create a User DSN
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
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.
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)
4 – Change the Source ADO.NET properties.
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.
5 - Run the package and should run and load normally.
How to connect and load data from MySQL to SQL Server
-------------------------------------------------------------
1 - Download the 32 bit ODBC driver.
go to the MySQL website and download: “mysql-connector-odbc-5.2.4-ansi-win32.msi”
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”
2 - Create a User DSN
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
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.
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)
4 – Change the Source ADO.NET properties.
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.
5 - Run the package and should run and load normally.
↧
convert MSSQL job to MySQL (no replies)
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:
DELETE FROM ESSyslogMain WHERE recorddate < getdate()- 30
backup log syslog with truncate_only
DBCC SHRINKFILE(syslog_log, 1)
How can I accomplish this in MySQL?
DELETE FROM ESSyslogMain WHERE recorddate < curdate()- 30
seems to take care of the first line, but I'm stuck after that.
Can anyone tell me the code "conversion" 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.
TIA
Craig
DELETE FROM ESSyslogMain WHERE recorddate < getdate()- 30
backup log syslog with truncate_only
DBCC SHRINKFILE(syslog_log, 1)
How can I accomplish this in MySQL?
DELETE FROM ESSyslogMain WHERE recorddate < curdate()- 30
seems to take care of the first line, but I'm stuck after that.
Can anyone tell me the code "conversion" 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.
TIA
Craig
↧
↧
Disalow persistent connexion on MySQL 5.1 running under WINDOWS with ASP (no replies)
Hi,
how can i disable /disolow / limit persistent connexions on MySQL 5.1 running under windows with IIS 7.0 (ASP) ?
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...
screen copy here http://www.autourdunet.fr/images/mysql.jpg
how can i disable /disolow / limit persistent connexions on MySQL 5.1 running under windows with IIS 7.0 (ASP) ?
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...
screen copy here http://www.autourdunet.fr/images/mysql.jpg
↧
Help! (no replies)
Hi!
Well, I have a root password, but I forgot it, how can I get it back?
Well, I have a root password, but I forgot it, how can I get it back?
↧
migrate from SQL Server 2005 to MySql 5.1.39 (3 replies)
Hi, i have to migrate a database from MS Sql Server 2005 to Mysql 5.1.39.
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 ].
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 ].
If I use this second definition I have an error in the copy data phase:
ERROR: `ALFRESCO_TEST`.`alf_qname`:Type mismatch fetching field 1 (should be string, was MYSQL_TYPE_LONGLONG)
Why ? Is it possible make this target definition ?
Thanks for the help
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 ].
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 ].
If I use this second definition I have an error in the copy data phase:
ERROR: `ALFRESCO_TEST`.`alf_qname`:Type mismatch fetching field 1 (should be string, was MYSQL_TYPE_LONGLONG)
Why ? Is it possible make this target definition ?
Thanks for the help
↧
Install Appserv with Ms sql server in one system (no replies)
Is it possible to install "Appserv" (Containing PHP, MySQL, phpmyadmin, apache web server) into a system that already has IIS, MS Sql server 2008, ASP.NET and visual studio 2010 installed?
↧
↧
importing data from sql server (5 replies)
hi ,
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
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
↧
Transfer the data from the remote MySQL Database to SQL Server Database (1 reply)
I have 2 environments:
(A) Client environment: An application that reads and writes real-time data into MySQL Database sitting on Linux environment at client site, and
(B) In house environment: MySQL Database sitting on Linux environment at our company site.
There are multiple (A)s, since we have mutiple clients. But we have only one (B) that is used as the central or master database to synchronize with all the client databases.
Here are our needs:
(1). (A) and (B) databases are supposed to be in synch all the time.
(2). Any new data or data change in any client environment needs to be transfered to (B) at real time.
(A) and (B) are connected via internet, and they are not within the same LAN.
Currently (2) is implemented this way: Any new data or data change in a client environment is written to an XML file,
which is then compressed and transmitted through JMS to where (B) is located. Then a Java program picks up these files,
uncompress and parse them and translated to the corresponding SQL action that is executed on MySQL Databse in (B).
I am looking for a better and faster way to synch the real time data - 2 way synch - between a remote MySQL database and my local SQL Server Database.
For example, one of the options is to replace (B) with SQL Server 2008 or 2012 sitting on Windows environment, and then use SSIS to transfer the data.
What would be the best way to accomplish this?
Thank you very much for your input, suggestion, recommendation, or pointer.
(A) Client environment: An application that reads and writes real-time data into MySQL Database sitting on Linux environment at client site, and
(B) In house environment: MySQL Database sitting on Linux environment at our company site.
There are multiple (A)s, since we have mutiple clients. But we have only one (B) that is used as the central or master database to synchronize with all the client databases.
Here are our needs:
(1). (A) and (B) databases are supposed to be in synch all the time.
(2). Any new data or data change in any client environment needs to be transfered to (B) at real time.
(A) and (B) are connected via internet, and they are not within the same LAN.
Currently (2) is implemented this way: Any new data or data change in a client environment is written to an XML file,
which is then compressed and transmitted through JMS to where (B) is located. Then a Java program picks up these files,
uncompress and parse them and translated to the corresponding SQL action that is executed on MySQL Databse in (B).
I am looking for a better and faster way to synch the real time data - 2 way synch - between a remote MySQL database and my local SQL Server Database.
For example, one of the options is to replace (B) with SQL Server 2008 or 2012 sitting on Windows environment, and then use SSIS to transfer the data.
What would be the best way to accomplish this?
Thank you very much for your input, suggestion, recommendation, or pointer.
↧
Migrating images from MS SQL to Mysql (1 reply)
Hi... I need to migrate image data in MS SQL 2008 R2 to MySQL 5.5.
I'm able to dump images in .csv file thru bcp command but when loading it into MYSQL, image is showing but distorted.
Any idea what can be the issue? Collation/charset issue ?
bcp command used: bcp tablename out filename.
Also I made sure the 4bytes added by bcp to image data is not happening by not giving -n in bcp command.
Please help
I'm able to dump images in .csv file thru bcp command but when loading it into MYSQL, image is showing but distorted.
Any idea what can be the issue? Collation/charset issue ?
bcp command used: bcp tablename out filename.
Also I made sure the 4bytes added by bcp to image data is not happening by not giving -n in bcp command.
Please help
↧
Dot in database name causing incorrect mapping (1 reply)
Hello all, thanks in advance for reading.
When I try to convert from sql to mysql, workbench is splitting the database name.
The database name is Lorem.Ipsum.
I've tried [Lorem.Ipsum] and 'Lorem.Ipsum' as well as other silly things.
Has anyone found a workaround for this?
When I try to convert from sql to mysql, workbench is splitting the database name.
The database name is Lorem.Ipsum.
I've tried [Lorem.Ipsum] and 'Lorem.Ipsum' as well as other silly things.
Has anyone found a workaround for this?
↧
↧
Convert SQL server stored procs to Mysql (no replies)
Hi Experts,
We are planning to migrate sql server database in 2008 to Mysql 5.6
we have got more than 1000 stored procedures. I understand that Mysql migration workbench does not convert stored procedures.
Is there any other way where i can get rudimentary transformation done so that i can start from that step, rather than re-writing the whole code again from scratch?
Also, can anybody point me the links or docs, where i can learn the differences?
please let me know my options.
I appreciate everybody's help.
Thanks
Sai
We are planning to migrate sql server database in 2008 to Mysql 5.6
we have got more than 1000 stored procedures. I understand that Mysql migration workbench does not convert stored procedures.
Is there any other way where i can get rudimentary transformation done so that i can start from that step, rather than re-writing the whole code again from scratch?
Also, can anybody point me the links or docs, where i can learn the differences?
please let me know my options.
I appreciate everybody's help.
Thanks
Sai
↧
IsNumeric() function in MySQL with convenient test script (no replies)
As far as I know, MySQL does not have a built in function for determining if a string is a valid number or not.
I found the following solution for this, but the topic was closed. I wanted to add a test SQL statement and re-post this in case it's helpful to anyone else.
If the SQL Statement returns FAIL for any of the rows, this tells you immediately that the function has an issue (or that the expected value is incorrect). I actually often keep the test with the function as documentation of what the function does.
If someone has a better solution, this SQL Statement can be used to test alternatives to this function.
Here is the function:
===========================
create function isnumeric(val varchar(1024))
returns tinyint(1) deterministic
return val regexp '^(-|\\+)?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+|[0-9]+)$';
Here is the TEST, with arbitrary values to test:
===========================
select val, expected, isnumeric(val) as actual, case when ifnull(expected,-1)=ifnull(isnumeric(val),-1) then '' else 'FAIL' end as Results from (
select '10' as val, true as expected union all
select '', false union all
select ' ', false union all
select ' ', false union all
select ' 1', false union all #Note: trim the string before to this function for this to pass.
select ' 1 ', false union all #Note: trim the string before to this function for this to pass.
select NULL, NULL union all
select '.', false union all # Note: this is the reason for a much longer regular expression
select '01', true union all
select '01.34', true union all
select '1.34', true union all
select '3.141592654', true union all
select '3.141592654141592654141592654141592654141592654141592654141592654141592654141592654141592654141592654141592654', true union all
select '+21.56', true union all
select '++21.56', false union all
select '-21.56', true union all
select '--21.56', false union all
select '21.56-', false union all
select '.00001', true union all
select '-.00001', true union all
select '+.00001', true union all
select '+.000a01', false union all
select '.00001b', false union all
select '10.1.' as val, false union all
select '10.1.2' as val, false union all
select '10.1.2.' as val, false union all
select '10.1.2.3' as val, false union all
select '001', true union all
select 'a001', false union all
select 'a', false union all
select 'ab001', false union all
select 'a1', false union all
select 'b1', false union all
select '001a', false union all
select 'david', false
) t1
I found the following solution for this, but the topic was closed. I wanted to add a test SQL statement and re-post this in case it's helpful to anyone else.
If the SQL Statement returns FAIL for any of the rows, this tells you immediately that the function has an issue (or that the expected value is incorrect). I actually often keep the test with the function as documentation of what the function does.
If someone has a better solution, this SQL Statement can be used to test alternatives to this function.
Here is the function:
===========================
create function isnumeric(val varchar(1024))
returns tinyint(1) deterministic
return val regexp '^(-|\\+)?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+|[0-9]+)$';
Here is the TEST, with arbitrary values to test:
===========================
select val, expected, isnumeric(val) as actual, case when ifnull(expected,-1)=ifnull(isnumeric(val),-1) then '' else 'FAIL' end as Results from (
select '10' as val, true as expected union all
select '', false union all
select ' ', false union all
select ' ', false union all
select ' 1', false union all #Note: trim the string before to this function for this to pass.
select ' 1 ', false union all #Note: trim the string before to this function for this to pass.
select NULL, NULL union all
select '.', false union all # Note: this is the reason for a much longer regular expression
select '01', true union all
select '01.34', true union all
select '1.34', true union all
select '3.141592654', true union all
select '3.141592654141592654141592654141592654141592654141592654141592654141592654141592654141592654141592654141592654', true union all
select '+21.56', true union all
select '++21.56', false union all
select '-21.56', true union all
select '--21.56', false union all
select '21.56-', false union all
select '.00001', true union all
select '-.00001', true union all
select '+.00001', true union all
select '+.000a01', false union all
select '.00001b', false union all
select '10.1.' as val, false union all
select '10.1.2' as val, false union all
select '10.1.2.' as val, false union all
select '10.1.2.3' as val, false union all
select '001', true union all
select 'a001', false union all
select 'a', false union all
select 'ab001', false union all
select 'a1', false union all
select 'b1', false union all
select '001a', false union all
select 'david', false
) t1
↧
converting constraint from ms sql to mysql (no replies)
I am trying to convert a constraint script from ms sql format to mysql and face problem.
The script is:
alter table region add constraint pkregion PRIMARY KEY CLUSTERED (region_cd) on 'default';
the error is:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on 'default'' at line 1
How would I can smoothly convert this constraint to mysql format?
I did use online utility but gives me same output.
http://burrist.com/mstomy.php
The script is:
alter table region add constraint pkregion PRIMARY KEY CLUSTERED (region_cd) on 'default';
the error is:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on 'default'' at line 1
How would I can smoothly convert this constraint to mysql format?
I did use online utility but gives me same output.
http://burrist.com/mstomy.php
↧
Sql Server to MySql Database Migration (3 replies)
I have the same column defined on multiple tables in a SQL Server schema which is not being mapped correctly by the migration tool.
There are too many tables (700+) to manually map these columns individually.
I have tried using the option "Edit Type Mappings for Generic Migration" but this does not do what I require.
Is there a way to map a column data type for all occurences in the schema?
Regards,
Ian
There are too many tables (700+) to manually map these columns individually.
I have tried using the option "Edit Type Mappings for Generic Migration" but this does not do what I require.
Is there a way to map a column data type for all occurences in the schema?
Regards,
Ian
↧
↧
Migrating written queries (no replies)
Hello Everyone.
We are considering migration from SQL server to Mysql. We have a few terabytes of databases, about 1500 tables in each. The migration of the schemata and data went pretty smooth, but we have a major problem migrating our website code. It's written mostly in asp and VB6, and consists of hundreds of thousands of pages with tenths of thousands of SQL queries, many of those are MS-SQL specific containing expressions like "SELECT TOP, isnull(), convert(), FOR XML", and so on.
It is not practical to manually rewrite all the code. some of it is ancient and is not properly maintained. So I have came out with a few ideas:
1. Messing with the server or the connector code to reparse all statements in real time
2. Scripting automatic rewrite of all our code to mysql compatible syntax
3. Using third-party software to convert all our code (Ispier comes to mind)
Do anyone have any experience with migrating projects of this magnitude? can someone suggest a solution? Is it even practical?
Thanks
David
We are considering migration from SQL server to Mysql. We have a few terabytes of databases, about 1500 tables in each. The migration of the schemata and data went pretty smooth, but we have a major problem migrating our website code. It's written mostly in asp and VB6, and consists of hundreds of thousands of pages with tenths of thousands of SQL queries, many of those are MS-SQL specific containing expressions like "SELECT TOP, isnull(), convert(), FOR XML", and so on.
It is not practical to manually rewrite all the code. some of it is ancient and is not properly maintained. So I have came out with a few ideas:
1. Messing with the server or the connector code to reparse all statements in real time
2. Scripting automatic rewrite of all our code to mysql compatible syntax
3. Using third-party software to convert all our code (Ispier comes to mind)
Do anyone have any experience with migrating projects of this magnitude? can someone suggest a solution? Is it even practical?
Thanks
David
↧
Connected MySQL to SQL Server (no replies)
I have a server with database MySQL.
And i have other server with database SQL Server 2012.
So, i have 2 server/computer.
I want connected database MySQL to SQL Server / from SQL Server to MySQL with different server.
Can i do it?
Thanks..
And i have other server with database SQL Server 2012.
So, i have 2 server/computer.
I want connected database MySQL to SQL Server / from SQL Server to MySQL with different server.
Can i do it?
Thanks..
↧
mysql table update from sql table (no replies)
How to use mysql update table from sql table
↧