Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

MySQL to MSSQL Data Conversion

Posted on October 18, 2014October 26, 2015 By David Kittell

Ever have to take a MySQL database and put it in Microsoft SQL?

This is a MySQL dump script that will assist you in this conversion. Only problem that I’ve had with it is that you need to review the exported SQL and make sure your version of Microsoft SQL will accept it.

mysqldump -h localhost -u root -p <Database> --compatible=mssql > MSSQL_Compatible_Data.sql
Originally Posted on October 18, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code MSSQL MySQL

Post navigation

Previous post
Next post

Related Posts

Drop Table If Exists

Posted on March 19, 2013October 26, 2015

IF OBJECT_ID(‘HLM_holdkey’, ‘U’) IS NOT NULL DROP TABLE HLM_holdkey Originally Posted on March 19, 2013Last Updated on October 26, 2015 All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test…

Read More

PowerShell – Azure – Get VM Image List

Posted on April 6, 2016April 7, 2016

When installing a new VM in Azure it’s helpful to know your options Get-AzureVMImage | Select OS, label ( Get-AzureVMImage | where-object { $_.Label -like "Barracuda*" } ) | Fl OS, publishername, Location, logicalsizeinGB, Label, ImageFamily, ImageName ( Get-AzureVMImage | where-object { $_.Label -like "CentOS*" } ) | Fl OS,…

Read More

Run SQL Statement

Posted on August 1, 2013October 26, 2015

protected string sRunSQLStmnt(string sSQL) { string sReturn = ""; //Declare the connection object SqlConnection sqlConn = new SqlConnection(connString); int numberOfRecords = 0; try { //Make the connection sqlConn.Open(); //Declare the Command SqlCommand sqlCommand = new SqlCommand(sSQL + " SELECT @@ROWCOUNT AS DELETED;", sqlConn); //Execute the query numberOfRecords = sqlCommand.ExecuteNonQuery(); }…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • PowerShell - IIS Remove Site
  • SQLite - Auto-Increment / Auto Generate GUID
  • PowerShell - FTP Upload Directory With Sub-Directories
  • Raspberry Pi - Remove Default Apps
  • PowerShell - Change Windows CD/DVD Drive Letter
©2025 David Kittell | WordPress Theme by SuperbThemes