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

  • SEARCH
  • Home
  • 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 6686629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:11:37+00:00 2026-05-26T05:11:37+00:00

I am trying to import data from a mySQL database into Microsoft SQL because

  • 0

I am trying to import data from a mySQL database into Microsoft SQL because our company uses a mySQL website and MS-SQL Accounting/ERP system.

Anyways… Some of the fields in mySQL are “serialized”. I am trying to determine how using sure SQL code I could unserialize and read the data into MS SQL. Is this possible, how?

One of the fields looks like this:

a: 9: {
    s: 15: "product_options";
    a: 2: {
        i: 719;
        s: 4: "2979";
        i: 718;
        s: 4: "2975";
    }
    s: 18: "unlimited_download";
    s: 1: "N";
    s: 7: "product";
    s: 37: "Champion Tagless Ringer Tee - T-Shirt";
    s: 10: "company_id";
    i: 0;
    s: 6: "is_edp";
    s: 1: "N";
    s: 12: "edp_shipping";
    s: 1: "N";
    s: 10: "base_price";
    d: 9.9900000000000002131628207280300557613372802734375;
    s: 12: "stored_price";
    s: 1: "N";
    s: 21: "product_options_value";
    a: 2: {
        i: 0;
        a: 13: {
            s: 9: "option_id";
            s: 3: "719";
            s: 11: "option_type";
            s: 1: "S";
            s: 9: "inventory";
            s: 1: "Y";
            s: 11: "option_name";
            s: 5: "Color";
            s: 11: "option_text";
            s: 0: "";
            s: 11: "description";
            s: 0: "";
            s: 10: "inner_hint";
            s: 0: "";
            s: 17: "incorrect_message";
            s: 0: "";
            s: 8: "modifier";
            s: 5: "0.000";
            s: 13: "modifier_type";
            s: 1: "A";
            s: 8: "position";
            s: 2: "30";
            s: 12: "variant_name";
            s: 13: "White/Scarlet";
            s: 5: "value";
            s: 4: "2979";
        }
        i: 1;
        a: 13: {
            s: 9: "option_id";
            s: 3: "718";
            s: 11: "option_type";
            s: 1: "S";
            s: 9: "inventory";
            s: 1: "Y";
            s: 11: "option_name";
            s: 13: "Clothing Size";
            s: 11: "option_text";
            s: 0: "";
            s: 11: "description";
            s: 0: "";
            s: 10: "inner_hint";
            s: 0: "";
            s: 17: "incorrect_message";
            s: 0: "";
            s: 8: "modifier";
            s: 5: "0.000";
            s: 13: "modifier_type";
            s: 1: "A";
            s: 8: "position";
            s: 2: "20";
            s: 12: "variant_name";
            s: 6: "Medium";
            s: 5: "value";
            s: 4: "2975";
        }
    }
}

Thank you in advance for any assistance anyone can provide on this.

  • 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-26T05:11:38+00:00Added an answer on May 26, 2026 at 5:11 am

    I know this but what to use in just Microsoft SQL code is there a serial and unserialize?

    I’m fairly sure there is no direct equivalent to PHP’s unserialize() in MS SQL.

    You would have to build it yourself – it would be far better to try let PHP handle it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import data from a Progress database into a MS SQL 2005
I am trying to import data from a FoxPro database into Sql Server however
I’m trying to import fixed width data from text file into SQL Server Express
So I'm trying to import some sales data into my MySQL database. The data
I am trying to import data from a database that uses primary key /
I am working with SSIS and trying to import data from MySql to SQL
I'm trying to load data from a CSV file into a MySQL database, and
I am trying to import data from a utf-8 encoded flat file into SQL
I have the following error when trying to import .sql file into MYSQL from
I am trying to import details from an access database into my sql application

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.