Possibly fix for sql server problems