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 189827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:12:18+00:00 2026-05-11T16:12:18+00:00

I have a completed web app in PHP 5 + MySQL. I have not

  • 0

I have a completed web app in PHP 5 + MySQL. I have not yet started its conversion, but it will migrate to ASP.NET MVC + MS SQL 2008. I’m not sure how to progress for the easiest transition:

  1. Edit the PHP DAL for SQL Server. Migrate to the new db immediately
  2. Leave the live code alone. Create ASP.NET MVC with a MySQL DAL to use for now. Migrate to new db later
  3. Leave the live code alone. Write the new version entirely. Transition db and code at the same time

Is there some common wisdom for which path is best to take?


Edit: addressing Dave’s question:

How are you accessing the database? If you have really good separation
between your code and database and are using stored procedures it would
probably affect the answers given.

None of the ASP.NET MVC stuff has been written at all. There will have to be some changes to make the current PHP data layer work with MS SQL. I’m currently taking advantage of some PHP+MySQL stuff that doesn’t exist with PHP+MSSQL. Nothing major but it will take some amount of retooling. My data layer is sufficiently separate that I hope it won’t be too invasive.

Also what’s your release plan? Will you be forced to release incrementally
or do you plan on just “flipping the switch” one day?

Flipping the switch — it’s just a hobby site for my family. But I’m not opposed to leaving 1 db and both code sets live for a while until I feel confident that the new one is fine.


Edit 2:

Looks like my options are limited more than I thought. You can only use PHP’s native MSSQL functions for SQL 2000 and before. For 2005+ you need to install MS provided drivers. I’m on el cheapo shared hosting so I can’t really ask them to install drivers for me. Looks like I unfortunately have my answer 🙁

  • 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-11T16:12:19+00:00Added an answer on May 11, 2026 at 4:12 pm

    The purists will suggest starting with TDD so you can have a gauge of when the migration is fairly complete by having all unit tests pass.

    However, I would suggest that you start with the app from scratch in ASP.NET MVC as it’s very different from a non-MVC PHP application. I’d map the data layer first and build some models then work my way up controllers and the view. The data models should be fairly easy to migrate if you use the visual studio surface designer.

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

Sidebar

Ask A Question

Stats

  • Questions 106k
  • Answers 106k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Take a look at Axel-Tobias Schreiner's ebook Object-Oriented Programming with… May 11, 2026 at 8:55 pm
  • Editorial Team
    Editorial Team added an answer As far as I know, there is no "standard" way… May 11, 2026 at 8:55 pm
  • Editorial Team
    Editorial Team added an answer You have OS meta-information (size and timestamps). Other meta-information includes… May 11, 2026 at 8:55 pm

Related Questions

I have a php / mysql / jquery web app that makes 13 ajax
What I am asking, is what is the best way (i.e. the way that
I have been using PHP for years. Lately I've come across numerous forum posts
Suppose I have the following (rather common) model Client invokes web service request ->
Im building a web application which is a process management app. Several different employee

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.