views:

1528

answers:

2

I am trying to convert my wordpress site which is based on MYSQl to a MS SQL because my we have our main database through MS SQL and we are creating database driven wordpress sites. I have been able to automate all of our wordpress installation + setup through database sripts through MYSQL but all of our variables + inputs are in MS SQL.

Would it be easier to create a new database in MYSQL and migrate all of my data over from MS SQL or is there a way to have wordpress use MS SQL. I am wondering if anyone has been able to do this or has any hints. Thanks

EDIT/UPDATE: I have accomplished this by using a linked server. Here is a website if anyone else is reading this and wants to run the wordpress database by using Microsoft SQL Server Management Studio:

http://www.ideaexcursion.com/2009/02/25/howto-setup-sql-server-linked-server-to-mysql/

+2  A: 

You can't. Even when migrating the data over Wordpress would still use MySQL specific API calls and MySQL specific SQL statements, you'd first have to refactor the whole codebase in order to make it compatible.

johannes
Because of this is there a way to then have wordpress use MS SQL?
bvandrunen
A: 

There is no feasible way to do this. MS SQL support is an open request in WordPress's bug tracking system.

Here is a blog entry from a guy who tried it. It didn't end well.

For completeness's sake, there seems to be an approach that is in alpha Stadium (Not suitable for everyday use!) that may one day become a workable workaround. wordpress-mssql

Pekka
I am having been looking for a plugin and I am not finding anything. Any plugins that you know of?
bvandrunen
@bvandrunen No. It's probably fair to say that there is, at this point, no way to run Wordpress with MS SQL in a stable manner for a number of reasons that even a magic plugin couldn't solve. Stop wasting your time, and start looking at mySQL.
Pekka