MsSQL & MySQL generating