Online sql formatter

I’m still curious as to why SSMS wasn’t bundled with some sort of SQL formatter.

Until they do, there’s quite a few paid and free options for adding formatting tools - for the moment, I’ll just make do with this one…

http://www.dpriver.com/pp/sqlformat.htm

Online SQL formatter and also has a nice feature of dumping the html you might need if your adding this to a blog.

RESTORE cannot process database ” because it is in use by this session. It is recommended that the master database be used when performing this operation

If you get this, try restoring using the master (like it says).

use master
restore database DatabaseName FROM DISK = ‘c:\Path\To\My\Bak.bak’

Boosh.

Sql Server Restore failed ‘The operating system returned the error (error not found)’ while attempting restore

Had this error today trying to restore an existing db from .bak.  Looks like something to do with file / user permissions.

Seems the workaround is to run the service under ‘local system account’ (making this change will require a restart of the service).

  1. Go to services
  2. Find your sql service e.g. Sql Server (SQL EXPRESS)
  3. Right-click and select properties
  4. Select ‘Log on’ tab
  5. Under ‘Log on as’ make sure ‘Local System Account’ is selected.
  6. Restart Sql Server service

Following

  • funniest10k
  • the-absolute-funniest-posts
  • yagottabelieve
  • poptech
  • mikelernerphotography
  • theclearlydope
  • evangotlib
  • tastefullyoffensive
  • toptumbles
  • poplipps
  • purple-lightsaber
  • nonprofit-design
  • infoneer-pulse
  • gregbabula
  • cavalier
  • sirmitchell
  • merlin
  • mashable
  • hellonewyork
  • kimjongillookingatthings
  • john
  • teaim
  • amyvernon
  • manxmidge
  • rosskempfolds
  • attentionindustry
  • mikehudack
  • tuneage
  • despicablealexis
  • badassjs
  • minimalistco
  • nivbed
  • redshooter
  • plus5mace
  • wantful
  • officialbeastieboys
  • fuzzythinking
  • adobegripes
  • deviantart
  • wondertonic
  • londonelek
  • pixel2html
  • bigpinots
  • hoveringartdirectors