Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

sp_recompile
I have a stored procedure that is currently using a poor execution plan.
SP_recompile marks the plan for recompile, but is not changing the plan afte
r
execution.  Dropping and re-creating the stored procedure does modify the
plan to use a much more effiecient plan.  Any thoughts?


Report this thread to moderator Post Follow-up to this message
Old Post
Brandon
03-30-06 01:23 AM


Re: sp_recompile
does it make any difference if you do:
exec <your_sp> with recompile



--
-oj



"Brandon" <Brandon@discussions.microsoft.com> wrote in message
news:F51DCB0A-5CD5-4CEB-9649- 117E6A4E2C1D@microso
ft.com...
>I have a stored procedure that is currently using a poor execution plan.
> SP_recompile marks the plan for recompile, but is not changing the plan
> after
> execution.  Dropping and re-creating the stored procedure does modify the
> plan to use a much more effiecient plan.  Any thoughts?
>



Report this thread to moderator Post Follow-up to this message
Old Post
oj
03-30-06 01:23 AM


Re: sp_recompile
No.  In addition, I have tried to clear the proc cache for the given
database:  DBCC FLUSHPROCINDB (<my_db> ).

"oj" wrote:

> does it make any difference if you do:
> exec <your_sp> with recompile
>
>
>
> --
> -oj
>
>
>
> "Brandon" <Brandon@discussions.microsoft.com> wrote in message
> news:F51DCB0A-5CD5-4CEB-9649- 117E6A4E2C1D@microso
ft.com... 
>
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Brandon
03-30-06 04:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 07:26 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006