I'm running SQL server 2008 with sp2. The database was created about 10 years ago and all has been fine, until yesterday when it started doing some weird stuff. One of my stored procedures started randomly truncating data. After checking my code and testing, I finally dropped the table, recreated it and it's still doing the same thing. The field is varchar(MAX) and it sometimes truncates after character 30, sometimes 27, sometimes 28 depending on the text sent to it, but each time it truncates at some length.
I then checked the properties of the database and see that the size is 19Mb for the mdf and 1Mb for the ldf. The mdf file is set for autogrowth and the ldf file is set to limited. The properties page says there is 0mb space available. I changed both to autogrowth, increased the db size, saved and rebooted the server. After the reboot the properties page for the db hasn't saved the change for autogrowth on the ldf, and I still get the data truncation.
I also tried shrinking the db in hopes it would resolve the available space issue, and although it reduced the db size by a few Mb it still says 0Mb available.
Not sure if the two things are related or not, but I'd obviously like fix the issue(s).
Any suggestions would be much appreciated.