Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6667137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:54:06+00:00 2026-05-26T02:54:06+00:00

Does anyone know where there might be a copy of the MySQL World example

  • 0

Does anyone know where there might be a copy of the MySQL “World” example database online somewhere that is Microsoft SQL compatible? I don’t have a running MySQL server on hand, just the SQL text file that SQL Server 2008 rejects.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:54:06+00:00Added an answer on May 26, 2026 at 2:54 am

    It is now 🙂 http://pastebin.com/6ATaLuNs

    I have been able to load the database into my own SQL Server installation by converting the data types from MySql to SQL Server version, removing MySql-specific code (such as engine specification), and using CHECK constraints in place of the enum‘s. Here’s my rough attempt at converting the table structure script:

    BEGIN TRANSACTION
    
    CREATE TABLE city (
      ID int NOT NULL,
      Name char(35) NOT NULL DEFAULT '',
      CountryCode char(3) NOT NULL DEFAULT '',
      District char(20) NOT NULL DEFAULT '',
      Population int NOT NULL DEFAULT '0',
      PRIMARY KEY (ID)
    )
    
    CREATE TABLE country (
      Code char(3) NOT NULL DEFAULT '',
      Name char(52) NOT NULL DEFAULT '',
      Continent varchar(20) CHECK(Continent in ('Asia','Europe','North America','Africa','Oceania','Antarctica','South America')) NOT NULL DEFAULT 'Asia',
      Region char(26) NOT NULL DEFAULT '',
      SurfaceArea decimal(10,2) NOT NULL DEFAULT '0.00',
      IndepYear smallint DEFAULT NULL,
      Population int NOT NULL DEFAULT '0',
      LifeExpectancy decimal(3,1) DEFAULT NULL,
      GNP decimal(10,2) DEFAULT NULL,
      GNPOld decimal(10,2) DEFAULT NULL,
      LocalName char(45) NOT NULL DEFAULT '',
      GovernmentForm char(45) NOT NULL DEFAULT '',
      HeadOfState char(60) DEFAULT NULL,
      Capital int DEFAULT NULL,
      Code2 char(2) NOT NULL DEFAULT '',
      PRIMARY KEY (Code)
    )
    
    CREATE TABLE countrylanguage (
      CountryCode char(3) NOT NULL DEFAULT '',
      Language char(30) NOT NULL DEFAULT '',
      IsOfficial char(1) CHECK(IsOfficial IN ('T','F')) NOT NULL DEFAULT 'F',
      Percentage decimal(4,1) NOT NULL DEFAULT '0.0',
      PRIMARY KEY (CountryCode,Language)
    )
    
    COMMIT TRANSACTION
    

    You can run the INSERT statements as-is if you make the following changes (you will have to manually pull out the INSERT statements by removing the CREATE TABLE code in the MySql script):

    1. Remove all instances of back-tick (`) (Find-Replace ` with nothing in an editor)
    2. Replace all instances of \' with '' for SQL Server’s quote escaping
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know if there's an add-in that does autocomplete for queries on SQL
Does anyone know there have any other way that (by not using json_encode and
Does anyone know if there is any documentation that describes all the possible exceptions
Does anyone know how to read a x.properties file in Maven. I know there
Does anyone know whether there's a way to mock Entity Data Provider so Unit
Does anyone know if there is a c# Console app, similar to the Python
Does anyone know why there is no respond_to block for generated edit actions? Every
Does anyone know if there is a good equivalent to Java's Set collection in
Does anyone know if there is an API to get the current monitor state
Does anyone know if there is an implementation of javax.jms.QueueConnectionFactory for WebSphere MQ and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.