Sunday, October 2, 2011

The query has been canceled because the estimated cost of this query (302),Contact your Administrator

SET QUERY_GOVERNOR_COST_LIMIT value

Add This Line in Store Procedure


Using SET QUERY_GOVERNOR_COST_LIMIT applies to the current connection only and lasts the duration of the current connection. Use the query governor cost limitoption of sp_configure to change the server-wide query governor cost limit value. For more information about configuring this option, see sp_configure and Setting Server Configuration Options.

Sunday, September 18, 2011

Truncate Log FIle in SQl Server

dbcc shrinkfile(accord_log,2)
backup log accord with truncate_only
dbcc shrinkfile(accord_log,2)