Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Erland Sommarskog Newsgroups: comp.databases.ms-sqlserver Subject: Re: strange behavior with SP Date: Fri, 06 May 2011 23:52:01 +0200 Organization: Erland Sommarskog Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Injection-Info: mx03.eternal-september.org; posting-host="DD6dU+BfJNjsjSP4/K/V7w"; logging-data="12241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/YdEFVkOie0X7Q7fiMuXoy" User-Agent: Xnews/2006.08.24 Mime-proxy/2.1.c.0 (Win32) Cancel-Lock: sha1:UJrCblwXpj4dt+PvyWvPIfEQDds= Xref: x330-a1.tempe.blueboxinc.net comp.databases.ms-sqlserver:298 Wishmaster ("sysadmin.rock[SINESTO]"@gmail.com) writes: > what i'm trying to say is there not any result set on my website and no > error message as well. But if i run the stored procedure from Mgnt > Studio takes arround 3 minutes to produce a result set. > I'm going to check your suggestions. Three minutes is a tad long for a search from a web page. Since the default timeout in most client API is 30 seconds, I suspect that you get a timeout. I have an article on my web site that discusses various strategies for these kind of searches, including the one you are using. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx