performance - SQL Server Stored Procedures Execution difference -
i have sql server 2016. there 2 absolutely same stored procedures different names, execute differently. first completes in 17 minutes, other in 18 second. first created before index on 1 of elements created, recompiled , cleared plans plan cache. result not change.
what problem can , how reconfigure execution plan?
to improve performance of stored procedure must executed script lower. can recreate execution plan.
exec sp_recompile n'procedurename'; go dbcc freeproccache no_infomsgs; go exec sp_updatestats; go
Comments
Post a Comment