Reset SQL Server execution plan

For clarity………. Executing sp_recompile will “mark” the given stored procedure for recompilation, which will occur the next time it is executed. Using the WITH RECOMPILE option will result in a new execution plan being generated each time the given stored procedure is executed. To clear the entire procedure cache execute DBCC FREEPROCCACHE

Where is database .bak file saved from SQL Server Management Studio?

Should be in Program Files>Microsoft SQL Server>MSSQL 1.0>MSSQL>BACKUP> In my case it is C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup If you use the gui or T-SQL you can specify where you want it T-SQL example BACKUP DATABASE [YourDB] TO DISK = N’SomePath\YourDB.bak’ WITH NOFORMAT, NOINIT, NAME = N’YourDB Full Database Backup’, SKIP, NOREWIND, NOUNLOAD, STATS = 10 … Read more