Make sure to have sufficient funds in your name on a Thai bank account. Come in on a visa exempt. At immigration go for a 90 days non o based on marriage. I have done exactly this in Bangkok a few months ago, basically you start all over but you can certainly do it from within Thailand if married to Thai national. After the 90 days you go back to the year visa.