You can do this in Visual Studio. There is a plugin for php. The other way is to write code for mysql, then using an editor or some automated script to replace all instances of mysql with mssql in your files.
Pretty simple really. I've done it when I had to convert back and forth.