Re: SP WITH RECOMPILE option
From: Alejandro Mesa (AlejandroMesa_at_discussions.microsoft.com)
Date: 11/02/04
- Next message: Louis Davidson: "Re: Traversing large data table"
- Previous message: Louis Davidson: "Re: Traversing large data table"
- In reply to: Ayad: "Re: SP WITH RECOMPILE option"
- Next in thread: Adam Machanic: "Re: SP WITH RECOMPILE option"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 2 Nov 2004 10:17:07 -0800
Then post the sp code, tables ddl being referenced by the sp. The information
given in your first post is not enough to have an idea of what could be
causing the problem.
AMB
"Ayad" wrote:
> There is no DDL in the SP , it is a Select statement joining a group of
> tables with a sub-query (another Select statement).
>
> Ayad
>
>
> "Alejandro Mesa" <AlejandroMesa@discussions.microsoft.com> wrote in message
> news:36869CBA-72C8-423D-8BFB-E50DD498C795@microsoft.com...
> > How can we know if you did not provide any DDL, sample data, etc.?
> >
> > Please provide DDL and sample data.
> > http://www.aspfaq.com/etiquette.asp?id=5006
> >
> >
> >
> > AMB
> >
> > "Ayad" wrote:
> >
> > > I have a web application with a back end SQL server db. Every time the
> users
> > > login to the web site, they execute a SP.
> > >
> > > The issue is that the user is getting a time-out error message when they
> > > call the SP. If I add the WITH RECOMPILE option to the SP, they don't
> get
> > > the time-out error but on the SQL server it cause a COMPILE x lock on
> the SP
> > > and slow down the application but they get in.
> > >
> > > Why if I remove the WITH RECOMPILE option, the user will get a time-out
> > > error?
> > >
> > > Thanks
> > >
> > > Ayad
> > >
> > >
> > >
>
>
>
- Next message: Louis Davidson: "Re: Traversing large data table"
- Previous message: Louis Davidson: "Re: Traversing large data table"
- In reply to: Ayad: "Re: SP WITH RECOMPILE option"
- Next in thread: Adam Machanic: "Re: SP WITH RECOMPILE option"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|