Quantcast
Channel: MySQL Forums - Microsoft SQL Server
Viewing all 686 articles
Browse latest View live

Migration of SQL Server 2008 R2 to MySQL (1 reply)

$
0
0
I am attempting to migrate a sql server database to MySQL using the Migration tool.

During the reverse engineer step I am getting the following error stating
'NoneType' object has no attribute 'upper'

If I understand correctly - there is a datatype that is somehow not defined in MySQL we use in SQL Server that has an upper function.

But I don't understand how to move past this (unless something else is wrong).

Here is trace log....

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\db_mssql_grt.py", line 327, in reverseEngineer
reverseEngineerUserDatatypes(connection, catalog)
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\db_mssql_grt.py", line 478, in reverseEngineerUserDatatypes
if simple_type.name == base_type.upper():
AttributeError: 'NoneType' object has no attribute 'upper'

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration.py", line 356, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: AttributeError("'NoneType' object has no attribute 'upper'"): error calling Python module function DbMssqlRE.reverseEngineer
ERROR: Reverse engineer selected schemas: AttributeError("'NoneType' object has no attribute 'upper'"): error calling Python module function DbMssqlRE.reverseEngineer
Failed

Migrate Wizard Problem - Migrate from MS SQL to MySQL (1 reply)

$
0
0
Hello everyone,

I have the following problem and although I can not select anything in the Migration Wizard, everything seems disabled.

I wanted to import data from a MS SQL table in a MySQL table
So update the data.

ODBC drivers are installed,
to the MySQL database I am connected.

As I said I can select in the migration options nothing
regardless of whether the source DB nor anything else.

Thank you in advance for advice and tips

Best Regards
-Steve-

PS: I am using MySQL Workbench 6.2 CE (run as admin)

Migrate from MS SQL Server to MySQL (no replies)

mysql database read sqlserver database (1 reply)

$
0
0
i want select data sqlserver from mysql storeprocedure..but a don't know can help me thanks

Update table from sqlserver to mysql (4 replies)

$
0
0
Hi everyone! Hope you're finding very well.

I've got the following issue:

I've got a DB on SQL Server with a Table (Lets call it Table1).
This DB is for a development in ASP, and I can't toch anything of the source code.

Then I've got other DB, but this time on MySQL. This DB has a copy of the "Table1" wich is updated every week.

Is there any program or script to get the update automatic? I mean, to update "Table1" from MySQL with the "Taable1" from SQL Server.

Hope you could understand me, English is not my native language.

Kind regards.

Workbench 6.3 and SQL Server 2000 Migration (1 reply)

$
0
0
I'm looking into migrating a very old SQL Server 2000 database instance to MySQL. I've been trying to do the migration with Workbench 6.3 but it seems as though it has dropped the compatibility with SQL Server 2000 and only supports 2005 based on the fact it tries to fetch the schemas list using sys.databases.

Workbench 5.2 seems to work ok but has the timestamp warnings "bug".

Is there a way to get WB 6.3 to work with SQL Server 2000?

Thanks!

MySQL Migration Wizard results in 'Found record bigger than max_allowed_packet' (3 replies)

$
0
0
I am trying to migrate a database from MSSQL 2014 to MySQL 5.7 using Workbench 6.3 (CE) on a Windows machine. I have already set the value of max_allowed_packet to 1G in my.ini file. However, I'm still getting the error while trying to migrate the data. The table for which I am getting this error has only one record, and even the field, which I suspect is causing the issue, doesn't have that big of a value
'<results><result documentId="1" queryCode="AZ100" queryValue="I"/></results>'.

The field has nvarchar(max) as its data type in MSSQL which gets converted to LONGTEXT by MySQL wizard. Also, in the migration log it indicates that it has detected the new max_allowed_packet value
'copytable]: Detected max_allowed_packet=1073741824'.


Thanks,
Pratik

Migrate from SQL Server 2000 using Workbench (4 replies)

$
0
0
Hi, I am trying to migrate from SQL Server 2000 to MySQL 5.7 using Workbench 6.3.7. I, like many others according to a search online, are getting a failure at "Retrieve schema list from source".
---------------------------------------
MESSAGE LOG EXTRACT:
Connect to source DBMS done
Check target DBMS connection...
- Connecting to target...
Connecting to Mysql@localhost:3306...
Connecting to Mysql@localhost:3306...
Connected
Check target DBMS connection done
Retrieve schema list from source....
- Checking connection...
- Fetching catalog names...
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_mssql_grt.py", line 192, in getCatalogNames
return [ row[0] for row in execute_query(connection, query) ]
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_mssql_grt.py", line 62, in execute_query
return get_connection(connection_object).cursor().execute(query, *args, **kwargs)
pyodbc.ProgrammingError: ('42S02', "[42S02] [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'sys.databases'. (208) (SQLExecDirectW)")

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration_source_selection.py", line 457, in task_fetch_schemata
self.main.plan.migrationSource.doFetchSchemaNames(only_these_catalogs)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 250, in doFetchSchemaNames
catalog_names = self.getCatalogNames()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 214, in getCatalogNames
return self._rev_eng_module.getCatalogNames(self.connection)
SystemError: ProgrammingError("('42S02', "[42S02] [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'sys.databases'. (208) (SQLExecDirectW)")"): error calling Python module function DbMssqlRE.getCatalogNames
ERROR: Retrieve schema list from source: ProgrammingError("('42S02', "[42S02] [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'sys.databases'. (208) (SQLExecDirectW)")"): error calling Python module function DbMssqlRE.getCatalogNames
Failed.
-------------------------------------------
I have looked at possible solutions but I can't follow them.

This is what i have in the file db_mssql_grt.py...
---------------------------------
def getCatalogNames(connection):
"""Returns a list of the available catalogs.

[NOTE] From MSDN: [A catalog] is equivalent to a databases in SQL Server.
"""
query_pre_90 = 'SELECT name FROM sys.databases'
query_post_90 = 'exec sys.sp_databases'

serverVersion = connected_server_version(connection)

query = query_pre_90 if serverVersion.majorNumber < 9 else query_post_90

return [ row[0] for row in execute_query(connection, query) ]

--------------
Any ideas?

Paul.

SQLServer --> MySql migration (no replies)

$
0
0
I'm trying to do a migration from SQLServer to MySQL and during the stepped process I got this log with errors.
I'm not a tech guy so I'm not able to understand which could be problem.
What is the issue and how to fix it ?
Bye


Starting...
Connect to source DBMS...
- Connecting...
Connecting to Mssql@EOS TRACK GARE...
Opening ODBC connection to DSN=EOS TRACK GARE;DATABASE=;UID=sa;PWD=XXXX...
Connected to Mssql@EOS TRACK GARE, 10.50.2500.0
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering dbo from EOSTrack2
- Reverse engineering catalog information
- Reverse engineering User Data Types...
- Preparing...
- Gathered stats for dbo
Reverse engineering 23 tables from dbo
- Retrieving table dbo.ClientiVetaaaa...
- Retrieving table dbo.Parametri...
- Retrieving table dbo.Gare...
- Retrieving table dbo.ClientiVet...
- Retrieving table dbo.Gare-AltriDoc...
- Retrieving table dbo.Gare-Persone...
- Retrieving table dbo.Gare-Articoli...
- Retrieving table dbo.ClientiVet-Articoli...
- Retrieving table dbo.CatMerceol...
- Retrieving table dbo.Anagrafica...
- Retrieving table dbo.AnagrFiliali...
- Retrieving table dbo.Aziende...
- Retrieving table dbo.Autorizzazioni...
- Retrieving table dbo.sec_users...
- Retrieving table dbo.sec_apps...
- Retrieving table dbo.sec_groups...
- Retrieving table dbo.sec_users_groups...
- Retrieving table dbo.sec_groups_apps...
- Retrieving table dbo.Zone...
- Retrieving table dbo.Tipo_Gare...
- Retrieving table dbo.Stato_Gara...
- Retrieving table dbo.Uffici...
- Retrieving table dbo.Articoli...
- First pass of table reverse engineering for schema dbo completed!
Reverse engineering 0 views from dbo
- Reverse engineering of views for schema dbo completed!
Reverse engineering 0 routines from dbo
- Finished reverse engineering of procedures for the dbo schema.
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_mssql_grt.py", line 420, in reverseEngineer
reverseEngineerFunctions(connection, schema)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_mssql_grt.py", line 1045, in reverseEngineerFunctions
execute_query(connection, 'USE %s' % quoteIdentifier(schema.owner.name)) # catalog
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_mssql_grt.py", line 62, in execute_query
return get_connection(connection_object).cursor().execute(query, *args, **kwargs)
pyodbc.Error: ('01000', '[01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()). (65534) (SQLExecDirectW); [08S01] [Microsoft][ODBC SQL Server Driver][DBNETLIB]Errore di rete generico. Controllare la documentazione della rete. (11)')

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 369, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: Error("('01000', '[01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()). (65534) (SQLExecDirectW); [08S01] [Microsoft][ODBC SQL Server Driver][DBNETLIB]Errore di rete generico. Controllare la documentazione della rete. (11)')"): error calling Python module function DbMssqlRE.reverseEngineer
ERROR: Reverse engineer selected schemas: Error("('01000', '[01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionRead (recv()). (65534) (SQLExecDirectW); [08S01] [Microsoft][ODBC SQL Server Driver][DBNETLIB]Errore di rete generico. Controllare la documentazione della rete. (11)')"): error calling Python module function DbMssqlRE.reverseEngineer
Failed

Migrating from MS SQL Server (10 replies)

$
0
0
I just started with SQL server to look at a database .bak file we had at work.

I am running SQL Server Management Studio 2016 ver 13.0.16000.28.

I imported successfully and can even run queries successfully to see the data using Windows Authentication.

I am looking to print the results of the queries on a webpage. I started using Visual Studio, but I have successfully built websites, displaying data from queries, using HTML, MySQL and PHP so I thought why not migrate to MySQL.

Using Workbench I get an error that the login was not successful. With this error:

"Could not connect to Source DBMS, [2800][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Login failed for user 'ENVERSOLAR\dlojko',(18456)(SQLDriverConnect); [2800][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Login failed for user 'ENVERSOLAR\dlojko'(18456)

ODBC connection string: DRIVER={ODBC Driver 13 for SQL Server};SERVER=IT-Manager;DATA...\dlojko;PWD{<your password>};"

So I tried other users to no avail and even tried "Driver 11" and it did not work. I don't understand why it is not seeing my password. I leave the password blank and Test Connection, then it demands that I click the box "Save the Password in vault" before it proceeds and throws the error. I have even gone as far as not testing the connection and just moving forward with the wizard and then it throws the same error in the end.

Any help would be appreciated, thanks!

Database Migration from Microsoft SQL Server using MySQL Workbench (1 reply)

$
0
0
while doing database migration it only migrate tables not store procedure , views and trigger why? i want to migrate the complete database.
please help me


Thanks

Manish Kumar

Microsoft SQL MSSQL to MySQL Data migration using MySQL workbench 6.3 (no replies)

Migrating written queries (no replies)

$
0
0
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

Connected MySQL to SQL Server (no replies)

$
0
0
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..

mysql table update from sql table (no replies)

$
0
0
How to use mysql update table from sql table

"Invalid date literal detected" when reading decimal (no replies)

$
0
0
Hi everyone, I'm attempting a migration from MSSQL to MySQL and keep coming across a "Invalid date literal detected" error when reading certain decimal columns. I'm running the following (all up-to-date as of posting):

Windows 7
MSSQL 2008 R2
MySQL 5.6.21 Community
Workbench 6.2.3

I've attempted to re-run the migration a number of times with the same rows/tables causing the same issues. For instance with the following 'Times' table:

INSERT INTO `GenshenHR2`.`Times` (`TimesID`, `TimesheetID`, `StaffID`, `StoreID`, `JobID`, `Hours`, `Holiday`, `Overtime`, `Unpaid`) VALUES (1,1,1,1,1,'97.0','.0','.0','.0'),(2,1,2,1,2,'152','.0','.0','.0'),(3,1,3,1,3,'152','.0','.0','.0'),(4,1,4,1,4,'152','.0','.0','.0'),(5,6,5,6,6,'.0','.0','.0','.0'),(6,6,8,6,9,'.0','.0','.0','.0'),(7,6,9,6,10,'80.0','8.0','8.0','.0'),(8,6,10,6,11,'.0','.0','.0','.0'),(9,6,11,6,12,'.0','.0','.0','.0'),(10,6,12,6,13,'.0','.0','.0','.0'),(11,6,13,6,14,'.0','.0','.0','.0'),(12,6,14,6,15,'.0','.0','.0','.0'),(13,6,15,6,16,'.0','.0','.0','.0'),(14,6,16,6,17,'.0','.0','.0','.0'),(15,6,17,6,18,'.0','.0','.0','.0'),(16,6,18,6,19,'.0','.0','.0','.0'),(17,6,19,6,20,'.0','.0','.0','.0'),(18,6,20,6,21,'.0','.0','.0','.0'),(19,6,21,6,22,'.0','.0','.0','.0'),(20,6,22,6,23,'.0','.0','.0','.0'),(21,6,23,6,24,'.0','.0','.0','.0'),(22,6,24,6,25,'.0','.0','.0','.0'),(23,6,25,6,26,'.0','.0','.0','.0'),(24,6,26,6,27,'.0','.0','.0','.0'),(25,6,27,6,28,'.0','.0','.0','.0'),(26,6,28,6,29,'.0','.0','.0','.0'),(27,6,29,6,30,'.0','.0','.0','.0'),(28,2,30,2,31,'177','8.0','.0','.0'),(29,2,31,2,32,'179','4.0','.0','.0'),(30,2,32,2,33,'179','8.0','.0','.0'),(31,2,33,2,34,'177','4.0','.0','.0'),(32,2,34,2,35,'177','.0','.0','.0'),(33,2,35,2,36,'24.0','.0','.0','.0'),(34,2,36,2,37,'177\0\0','.0','.0','.0'),(35,2,37,2,38,'64.5','.0','.0','.0'),(36,2,38,2,39,'114\0\0','.0','57.5','.0'),(37,4,39,4,40,'.0','.0','.0','.0'),(38,4,40,4,41,'.0','.0','.0','.0'),(39,4,41,4,42,'.0','.0','.0','.0'),(40,4,42,4,43,'.0','.0','.0','.0'),(41,4,43,4,44,'.0','.0','.0','.0'),(42,4,44,4,45,'.0','.0','.0','.0'),(43,4,45,4,46,'.0','.0','.0','.0'),(44,4,46,4,47,'.0','.0','.0','.0'),(45,4,47,4,48,'.0','.0','.0','.0'),(46,4,48,4,49,'.0','.0','.0','.0'),(47,4,49,4,50,'.0','.0','.0','.0'),(48,4,50,4,51,'.0','.0','.0','.0'),(49,4,51,4,52,'.0','.0','.0','.0'),(50,4,52,4,53,'.0','.0','.0','.0'),(51,4,53,4,54,'.0','.0','.0','.0'),(52,4,54,4,55,'.0','.0','.0','.0'),(53,4,55,4,56,'.0','.0','.0','.0'),(54,4,56,4,59,'.0','.0','.0','.0'),(55,4,57,4,60,'.0','.ERROR:`GenshenHR2`.`Times`:Inserting Data: Incorrect decimal value: '177' for column 'Hours' at row 34

For some reason it is interpreting the data in the 6th column 'Hours' with slashes (177\0\0) on rows 34 & 36 instead of the correct decimal format (177.5)

In MSSQL the column is: [Hours] NUMERIC(4,1) NULL DEFAULT 0
Its corresponding line in the Migration is: `Hours` DECIMAL(4,1) NULL DEFAULT 0

Ironically the following 3 columns (Holiday, Overtime & Unpaid) are all the same datatype, and looking at the log extract appear to insert without issue (see row 36 / 57.5).

Does anyone know why this might be happening?

Insert data in MSSQL from MySQL? (no replies)

$
0
0
So I'm currently inserting data into a MySQL table from a form on my Linux-based website. When a customer submits an inquiry through our web form, a new row is added to the specified table in MySQL. This works great.

On the other hand, our company has front-end MS Access application linked to data in our MSSQL database, and the hurdle I'm facing is getting the MySQL data (populated via the web form submissions) into the MSSQL database. We are not able to support the mssql or sqlsrv commands from web/PHP side of things due to a Linux-based web server. I've researched a lot and haven't found a way to connect the web server with the SQL Server.

I initially visualized a trigger since we want this action to take place on the MSSQL database as soon as a new row is inserted into the MySQL database, and only then. I was able to create a Linked Server in SQL Server Management Studio and query the MySQL data but I'm trying to issue an INSERT command from MySQL to MSSQL. I've seen documentation referencing the use of a trigger to perform the update but only from MSSQL to MySQL -- not the other way around.

Any thoughts on this? Thanks in advance!

connecting MSSQL database using MYSQL workbench (no replies)

$
0
0
Hi Experts,

I am using MYSQL Workbench.
MySQL Workbench Community (GPL) for Windows version 6.1.4 revision 11773 build 1454

One of my database is on MSSQL server 2005.

I want to connect to database on this server using MYSQL Workbench.
But while connecting I am getting below error
"Lost connection to MySQL server at 'waiting for initial communication packet', system error: 10060"

any suggestions, how I can achieve this.

Regards
rathore

Query Translator (2 replies)

$
0
0
Is there a software that will actively translate queries made by my software that is written for MSSQL to queries that MySQL would understand?

Migration of SQL Server 2008 R2 to MySQL (1 reply)

$
0
0
I am attempting to migrate a sql server database to MySQL using the Migration tool.

During the reverse engineer step I am getting the following error stating
'NoneType' object has no attribute 'upper'

If I understand correctly - there is a datatype that is somehow not defined in MySQL we use in SQL Server that has an upper function.

But I don't understand how to move past this (unless something else is wrong).

Here is trace log....

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\db_mssql_grt.py", line 327, in reverseEngineer
reverseEngineerUserDatatypes(connection, catalog)
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\db_mssql_grt.py", line 478, in reverseEngineerUserDatatypes
if simple_type.name == base_type.upper():
AttributeError: 'NoneType' object has no attribute 'upper'

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration.py", line 356, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: AttributeError("'NoneType' object has no attribute 'upper'"): error calling Python module function DbMssqlRE.reverseEngineer
ERROR: Reverse engineer selected schemas: AttributeError("'NoneType' object has no attribute 'upper'"): error calling Python module function DbMssqlRE.reverseEngineer
Failed
Viewing all 686 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>