Here is my situation: restored a known good backup (works fine on other machines) that originated on Sql Server 2012 onto a local 2012 install. Created DB as part of the restore. No errors reported.
I am accessing it through a Node.js app, using the Node-SqlServer driver (if that makes a difference). The first time that the app tries to access the db after restore, the db goes into Suspect mode.
I tried deleting the Db restoring from scratch. Same thing.
I was able to "fix" the db by running these commands. After that, the db runs fine (app can access and query the db witout issue). However, this seems like a less than ideal scenario.
Any ideas about what could be causing this and how I might be able to prevent it?
Computer is a laptop with a single SSD. I ran chkdsk and returned a clean bill of health. Note: this has happened with more than one db restore, specifically to this machine. So the circumstantial evidence points to the machine as being at fault here.
CHECKDB. This time it shows errors. See here for output. Name of the db is 'Sinner2'. – Yaakov Ellis Nov 28 '13 at 08:21