Problem With Query Timeout

Jan 15, 2008

Hallo,

I have the following Query running on my local SQL Server 2005 Standard Edition on Windows XP, and it needs only 2 sec. to execute. Then I transfered it to our production database, which is an SQL Server 2005 Datacenter Edition on a quad-core Xeon with 4GB Memory and the Query always runs in a Timeout. The version of my local Database is 9.0.3054 and the Production Version is 9.0.3042. 3042 seems to be SP2.

Here the Query:


SELECT i.lid AS userlid, i.lgroupid AS grouplid, i.strgroupname, j.xgssnid

FROM (SELECT kruser.lid, kruser.stremployeeno, krgroupusers.lgroupid, krusergroup.strgroupname

FROM kruser INNER JOIN krgroupusers ON kruser.lid = krgroupusers.luserid

INNER JOIN krusergroup ON krgroupusers.lgroupid = krusergroup.lid

WHERE (NOT (kruser.strusername LIKE 'i_%')) AND

(kruser.stremployeeno <> '') AND

(kruser.stremployeeno IS NOT NULL)

) AS i

LEFT OUTER JOIN

(SELECT TOP (100) PERCENT xgssnid, AppRolle

FROM (SELECT DISTINCT xwebmodul + '_' + xrolle AS AppRolle, xgssnid

FROM xzztmpuserimport

UNION

SELECT DISTINCT 'nav_' + xwebmodul AS AppRolle, xgssnid

FROM xzztmpuserimport AS a

) AS b

ORDER BY xgssnid, AppRolle

) AS j

ON i.stremployeeno = j.xgssnid AND i.strgroupname = j.AppRolle

WHERE (i.lgroupid > 105) AND (i.lid > 100) AND

(NOT (i.strgroupname LIKE 'i_%')) AND

(j.xgssnid IS NULL)



This Query filters all internal Applicationroles of a user which must be deleted for the specific user, because he didn't need them longer. Can it be, that it was a bug in the older Servicepack and it runs on my PC because of the newer one? My problem is also, that I didn't know what ServiecPack brings Version 3042 to 3054.

I also tried splitting the Query in 3 subqueries and using this 3 in a resulting 4th. It's the same!

Has anyone an idea

Thanks for your help
Hans

View 5 Replies


ADVERTISEMENT

Difference Between Remote Login Timeout And Remote Query Timeout?

Mar 28, 2008

I just want to find out what the difference between a remote login and a remote query is. I'd have thought that a remote query inherently requires a remote login.

View 6 Replies View Related

Stored Procedure Query Optimization - Query TimeOut Error

Nov 23, 2004

How to optimize the following Stored procedure running on MSSQL server 2000 sp4 :

CREATE PROCEDURE proc1
@Franchise ObjectId
, @dtmStart DATETIME
, @dtmEnd DATETIME
AS
BEGIN


SET NOCOUNT ON

SELECT p.Product
, c.Currency
, c.Minor
, a.ACDef
, e.Event
, t.Dec
, count(1) "Count"
, sum(Amount) "Total"
FROM tb_Event t
JOIN tb_Prod p
ON ( t.ProdId = p.ProdId )
JOIN tb_ACDef a
ON ( t.ACDefId = a.ACDefId )
JOIN tb_Curr c
ON ( t.CurrId = c.CurrId )
JOIN tb_Event e
ON ( t.EventId = e.EventId )
JOIN tb_Setl s
ON ( s.BUId = t.BUId
and s.SetlD = t.SetlD )
WHERE Fran = @Franchise
AND t.CDate >= @dtmStart
AND t.CDate <= @dtmEnd
AND s.Status = 1
GROUP BY p.Product
, c.Currency
, c.Minor
, a.ACDef
, e.Event
, t.Dec

RETURN 1
END



GO

View 8 Replies View Related

Query Timeout???

Jul 8, 2007

I try to run a sql query locally and iget the results, but when i try remotely from my website, after 10 seconds i get a query timeout. The query timeout is set to 0, i do not know what am i doing wrong?

View 17 Replies View Related

Query Timeout

Aug 17, 2006

I need to figure out if my query is timing out due to row lock contention. The SqlException trapped in my client C# application contains Error Number 1205 but sometimes it contains -2.

I guess the SqlCommand timeout and the server timeout are the two possibilities. Is there a definitive way to find out that the SqlException was thrown due to one of these two reasons? Because if it's some other reason, I want to excute a different logic.

Thanks,



Madhav

View 4 Replies View Related

Query Timeout Setting

Oct 29, 2007

SQL Server 2005 is timing out when running loooong queries.Is there a global place I can extend the timeout for queries? I do not mean in code but just in general use?Thanks
 
Craig

View 5 Replies View Related

SQL Query Analyzer Timeout

Jan 9, 2002

I was working remotely with few SQL Servers for a while without any problem.
The Servers are configured to use TCP-IP for the connection.

Then suddenly today I can connect to the servers in the Enterprise manager , but
not through the SQL Query Analyzer.

The error I am getting after waiting for a while the login ... Timeout Expired.

I've tried changing the Connection Settings under Options, but it did not help.

Nothing was changed in the Server/Client configuration.

Please advice

View 1 Replies View Related

SQL Query Analyzer Timeout

Jan 8, 2002

I was working remotely with few SQL Servers for a while without any problem.
The Servers are configured to use TCP-IP for the connection.

Then suddenly today I can connect to the servers in the Enterprise manager , but
not through the SQL Query Analyzer.

The error I am getting after waiting for a while the login ... Timeout Expired.

I've tried changing the Connection Settings under Options, but it did not help.

Nothing was changed in the Server/Client configuration.

The Servers affected are SQL 7.0. and SQL 2000

Please advice

View 1 Replies View Related

How To Change Query Timeout?

Feb 9, 2005

Greetings

I have encountered the following problem:

I currently develop an application for my company that actually uses rather long queries, with many records.

I have a particular query (Written using SQL string inside the .NET application rather than Stored proceedures),that needs to run in 2 databases (both SQL Server):

The first one is a test database that we use when in developing time quota to test our data

The second one is the real thing a data base that contains lots of records.

When criteria are placed in the query, it returs few records in both the databases , but if no criteria are placed (So it fetches all the records..) In the test Database works ok, but in the real one it "jams" till 30 seconds pass and I get a time out message...

I tried to change the Query time out time from inside the SQL Server from

Tools/Options/Advanced

but it doesn't seem to work out... it still times out after 30 secs

Any Ideas?

Thanx in advance :D

View 4 Replies View Related

Query Timeout Problems

Jul 23, 2005

Front End: Access 2000 Project (.adp)Back End: SQL Server 2000I have an application that keeps timing out. I have opened theDataLink properties in the front end (File, Connection, Advanced tab)and set the timeout to 999. But the connection still occasionallytimes out.Any ideas? Some of the SQL is pretty horrible (multiple sub-queriesetc.)TIAEdward--The reading group's reading group:http://www.bookgroup.org.uk

View 1 Replies View Related

Strange Query Timeout

Jul 20, 2005

Hi everibody,it's the first time i post on this newsgroup. I'm Stefano from Milano,italy.I'm a beginners with Sql2000. My problem is this.I run a View using enterprise manager and after less then 20 second it goesin error time out. I run this view using a VB application and the errorcomes again .When i run it with Query Analyzer after 50 seconds it give methe right result.i've tried to change the value of querytimeout using sp_configure with thesame bad result.i've tried to change the ado command timeout in visul basic but stilldoesn't work.any suggest ?Thanks in advance

View 4 Replies View Related

SQL Timeout Through ADO But Not From Query Analyser

Jan 12, 2007

I have a strange problem running a stored proc in SQL 2000. The proc returns XML and I'm using ADO to call the proc and return the data as a stream. When I call the proc through ADO, it times out because it is taking 40 seconds to run and my command timeout is set to 30. I can increase this no problem but the strange thing is that when I run the same proc from within query analyser, it completes in under a second.

I put profiler on it tracing the command start and finish events and it's definitely taking 40 seconds between start and finish. The proc is used with various input parameters and the timeout is only occurring for some combinations of inputs, but it always seems to take much longer than it does when run from query analyser.

Can anyone suggest what might be causing the delay, or where I might look to find the problem?

Thanks...

View 13 Replies View Related

Datareader Query Timeout

Oct 4, 2005

Hello,

View 16 Replies View Related

Query Timeout Expired

Jan 16, 2006

Using VB, I am running a bulk insert query from csv file into a newly created table. It works fine on small test files; but when I try it on the production data, I get a "query timeout expired" message and processing ends. The text files contain several hundred thousand lines.

How can I resolve this problem. I have several hundred of these csv files and more coming.

Here's the code:

Dim sSQL As String
sSQL = "BULK INSERT " & TableName & " "
sSQL = sSQL & "FROM '" & DataPath & "' WITH "
sSQL = sSQL & "(FIELDTERMINATOR = ',', ROWTERMINATOR = '', FIRSTROW = 2)"

DbConn.Execute sSQL

View 6 Replies View Related

Timeout For Query Inside BEGIN_INIT

Jun 8, 2007

Hi all,
I have a website under development. when trying to load page for the first time, I am getting sometimes a timeout error messege.
My guess is that one of the queries is problematic and takes too long. I need to track the problematic query. one way to do that is using the ASP trace option.
So this is what I did and I got the below error. the error as I can see is inside a BEGIN_INIT function, but I dont have a fnction like this in my code.
Do you have any suggestion how to track? here is the trace code:
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


span.tracecontent b { color:white }
span.tracecontent { background-color:white; color:black;font: 10pt verdana, arial; }
span.tracecontent table { clear:left; font: 10pt verdana, arial; cellspacing:0; cellpadding:0; margin-bottom:25}
span.tracecontent tr.subhead { background-color:#cccccc;}
span.tracecontent th { padding:0,3,0,3 }
span.tracecontent th.alt { background-color:black; color:white; padding:3,3,2,3; }
span.tracecontent td { color: black; padding:0,3,0,3; text-align: left }
span.tracecontent td.err { color: red; }
span.tracecontent tr.alt { background-color:#eeeeee }
span.tracecontent h1 { font: 24pt verdana, arial; margin:0,0,0,0}
span.tracecontent h2 { font: 18pt verdana, arial; margin:0,0,0,0}
span.tracecontent h3 { font: 12pt verdana, arial; margin:0,0,0,0}
span.tracecontent th a { color:darkblue; font: 8pt verdana, arial; }
span.tracecontent a { color:darkblue;text-decoration:none }
span.tracecontent a:hover { color:darkblue;text-decoration:underline; }
span.tracecontent div.outer { width:90%; margin:15,15,15,15}
span.tracecontent table.viewmenu td { background-color:#006699; color:white; padding:0,5,0,5; }
span.tracecontent table.viewmenu td.end { padding:0,0,0,0; }
span.tracecontent table.viewmenu a {color:white; font: 8pt verdana, arial; }
span.tracecontent table.viewmenu a:hover {color:white; font: 8pt verdana, arial; }
span.tracecontent a.tinylink {color:darkblue; background-color:black; font: 8pt verdana, arial;text-decoration:underline;}
span.tracecontent a.link {color:darkblue; text-decoration:underline;}
span.tracecontent div.buffer {padding-top:7; padding-bottom:17;}
span.tracecontent .small { font: 8pt verdana, arial }
span.tracecontent table td { padding-right:20 }
span.tracecontent table td.nopad { padding-right:5 }






Request Details

Session Id:
sesqltrnnbq35g45fxkyqk45
Request Type:
GET

Time of Request:
6/9/2007 12:36:41 AM
Status Code:
500

Request Encoding:
Unicode (UTF-8)
Response Encoding:
Unicode (UTF-8)




Trace Information

Category
Message
From First(s)
From Last(s)

aspx.page
Begin PreInit



aspx.page
End PreInit
4.97502699318581
4.975027

aspx.page
Begin Init
5.03576665047642
0.060740

Unhandled Execution Error
Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.  at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)  at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)  at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)  at System.Data.SqlClient.SqlConnection.Open()  at System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate)  at System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation)  at System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider.GetConnectionHolder()  at System.Web.UI.WebControls.WebParts.SqlPersonalizationProvider.LoadPersonalizationBlobs(WebPartManager webPartManager, String path, String userName, Byte[]& sharedDataBlob, Byte[]& userDataBlob)  at System.Web.UI.WebControls.WebParts.PersonalizationProvider.LoadPersonalizationState(WebPartManager webPartManager, Boolean ignoreCurrentUser)  at System.Web.UI.WebControls.WebParts.WebPartPersonalization.Load()  at System.Web.UI.WebControls.WebParts.WebPartManager.OnInit(EventArgs e)  at System.Web.UI.Control.InitRecursive(Control namingContainer)  at System.Web.UI.Control.InitRecursive(Control namingContainer)  at System.Web.UI.Control.InitRecursive(Control namingContainer)  at System.Web.UI.Control.InitRecursive(Control namingContainer)  at System.Web.UI.Control.InitRecursive(Control namingContainer)  at System.Web.UI.Control.InitRecursive(Control namingContainer)  at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
8.31843797517178
3.282671

View 3 Replies View Related

Slow Query; Timeout After 30 Seconds

Aug 17, 2004

Hello there,

I am programming with visual basic and I have a large query wich takes too long for execution. After 30 seconds I get a timeout error.

Is there any way to raise the timeout to 90 seconds or something.

I'm using the following connection string to connect to the database.

Provider=SQLOLEDB.1;Connect Timeout=2;Password=****;Persist Security Info=True;User ID=user;Initial Catalog=test;Data Source=sqlserver

thank you

View 4 Replies View Related

Strang Query Timeout Error

Mar 19, 2008

I have created a stored procedure which searches one or more requests (request is a table) according to the given parameters and returns Rows from Request table. I have used Full Text Search function i.e. Contains() in this Query. I have problem with Full Text search, when user first time executes query with Contains() function it works fine and continues working fine for 10 to 15 times or more executions. But after some searches the system starts saying Timeout Error. The very strange situation is that the application is developed in Visual Basic and if we run stored procedure through Visual Basic it says Time Out but at the same time when we run the same stored procedure with same parameters from SQL Server Management Studio, it runs immediately and takes no time in execution. Also I have tested the Stored procedure without the Contains function and in this case it works fine. It only hangs when we search for more than 10 or 15 times.


Does anyone know what is the problem here?, i am posting here my code too,




Code Snippet
-- =============================================
-- Author: Arsalan Tamiz
-- Create date: 17-Mar-2007
-- Description: Request Search Engine
-- =============================================
ALTER PROCEDURE [RVO].[LookUpRequest]

-- Add the parameters for the stored procedure here
@Account_ID int = NULL,
@Comp_Name varchar(255) = NULL,
@RVO_ID varchar(100) = NULL,
@RVO_CreateDateStart datetime = NULL,
@RVO_CreateDateEnd datetime = NULL,
@RVO_LockStatus int = NULL, -- NULL = All, 0 = Not Locked / Open, 1 = Locked
@RVO_FinalizeStatus int = NULL, -- NULL = All, 0 = Not Finalized, 1 = Finalized
@SEStatus int = NULL, -- NULL = NOT use, 0 = NOT set, 1 = SET to any
@SE_ID varchar(100) = NULL, -- SE ID
@RVO_CommitStatus int = NULL, -- NULL = All, 0 = Not Commit, 1 = Committed
@RVO_Voided int = NULL, -- NULL = All, 0 = Not Voided, 1 = Voided
@Area_IDNotSet bit = NULL,
@NH_IDNotSet bit = NULL,
@LandmarkNotSet bit = NULL,
@ClassNotSet bit = NULL,
@City_ID int = NULL,
@Area_ID int = NULL,
@NH_ID int = NULL,
@Keyword varchar(255) = NULL,
@Brand varchar(255) = NULL,
@CompType_ID int = NULL
AS
BEGIN

-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

DECLARE @kc varchar(255);

If @Keyword IS NULL

SET @kc = @Keyword;
Else

SET @kc = Gen.GetContainsCriteriaGen(@Keyword);


SELECT *
FROM RVO.tbl_RequestRVO
WHERE

(@CompType_ID IS NULL OR CompType_ID = @CompType_ID) AND
(

@kc IS NULL OR

Contains(RVO_Keywords, @kc)
) AND
(

@Brand IS NULL OR

Exists(

SELECT * FROM RVO.tbl_RequestRVOBrand


WHERE Brand_Name LIKE @Brand + '%' AND Request_ID = RVO.tbl_RequestRVO.Request_ID
)
) AND
(

(
@City_ID IS NULL AND
@Area_ID IS NULL AND
@NH_ID IS NULL AND
@Area_IDNotSet IS NULL AND
@NH_IDNotSet IS NULL
) OR
Exists(


SELECT * FROM RVO.tbl_RequestRVOAddress


WHERE (


@Area_IDNotSet IS NULL OR
(@Area_IDNotSet = 1 AND Area_ID IS NULL)
) AND

(

@NH_IDNotSet IS NULL OR
(@NH_IDNotSet = 1 AND NH_ID IS NULL)
) AND
(@City_ID IS NULL OR City_ID = @City_ID) AND
(@Area_ID IS NULL OR Area_ID = @Area_ID) AND
(@NH_ID IS NULL OR NH_ID = @NH_ID) AND
Request_ID = RVO.tbl_RequestRVO.Request_ID AND
Address_Voided = 0
)
) AND
(

@LandmarkNotSet IS NULL
OR
NOT Exists (


SELECT TOP 1 *
FROM RVO.tbl_RequestRVOAddressLandmark

INNER JOIN RVO.tbl_RequestRVOAddress ON RVO.tbl_RequestRVOAddressLandmark.RequestAddress_ID = RVO.tbl_RequestRVOAddress.RequestAddress_ID
WHERE Request_ID = RVO.tbl_RequestRVO.Request_ID AND

Address_Voided = 0
)
) AND
(

@ClassNotSet IS NULL
OR
NOT Exists (


SELECT TOP 1 *
FROM RVO.tbl_RequestRVOClass
WHERE Request_ID = RVO.tbl_RequestRVO.Request_ID
)
) AND
(Account_ID = @Account_ID OR @Account_ID IS NULL) AND
(@Comp_Name IS NULL OR RVO_CompName LIKE @Comp_Name) AND
(@RVO_ID IS NULL OR RVO_ID = @RVO_ID) AND
(RVO_CreateDate >= @RVO_CreateDateStart OR @RVO_CreateDateStart IS NULL) AND
(RVO_CreateDate <= @RVO_CreateDateEnd OR @RVO_CreateDateEnd IS NULL) AND
(

@RVO_LockStatus IS NULL OR
(RVO_LockDate IS NULL AND @RVO_LockStatus = 0) OR
(RVO_LockDate IS NOT NULL AND @RVO_LockStatus = 1)
) AND
(

@RVO_FinalizeStatus IS NULL OR
(MO_FinalizeDate IS NULL AND @RVO_FinalizeStatus = 0) OR
(MO_FinalizeDate IS NOT NULL AND @RVO_FinalizeStatus = 1)
) AND
(

@RVO_CommitStatus IS NULL OR
(Comp_ID IS NULL AND @RVO_CommitStatus = 0) OR
(Comp_ID IS NOT NULL AND @RVO_CommitStatus = 1)
) AND
(

( -- if SE = SET Then SE_ID must NOT be NULL

@SEStatus = 1 AND
(

(SE_ID IS NOT NULL AND @SE_ID IS NULL) OR
(SE_ID = @SE_ID)
)
) OR
(@SEStatus = 0 AND SE_ID IS NULL) OR
@SEStatus IS NULL
) AND
(RVO_Voided = @RVO_Voided OR @RVO_Voided IS NULL)
ORDER BY

Account_ID, RVO_CreateDate;



END

View 6 Replies View Related

Report Builder Query Timeout?

Dec 29, 2005

Is their a way when creating a Report Builder model to set a query timeout?  Similar to what can be done when creating a Reporting DataSet in VS.NET during report development.
 
My ultimate goal is to be able to limit ad-hoc report users running Report Builder from waisting resources on my SQL instance.  This has nothing to do with a report being published to a report server and setting a reports execution time limit.

View 6 Replies View Related

DataReader ODBC Query Timeout

Oct 25, 2006

Hello !

I get in my SSIS Package a Query Timeout in the Datareader!

I Use the ADO.Net OBC Connection with the Connection String:

Dsn=xxx;uid=xxx;connection timeout=0;command timeout=0;query timeout=0

Is there any Option to set the Query Timeout ?



Thanks !



Pseudo

View 5 Replies View Related

SQL Server 2000 Timeout On SELECT Query

Mar 29, 2007

 The SQL statement below works without the WHERE statement but as soon as i try to use the where it stops working, I think it has something to do with the HAVING statement in the vwMultiAE2 view but I am not sure.It did the same thing when I had it in one view. Anyone know what is going on here?SELECT Ch, Reg, FMM, AE, Acc, Totals FROM vwMultiAE2 WHERE (g1ID = @g1 or @g1 = 'All') AND (g2ID = @g2 or @g2 = 'All') AND (g3ID = @g3 or @g3 = 'All') AND (AEID = @g4 or @g4 = 'All')
 
vwMultiAE2 >
 SELECT TOP 100 PERCENT
Ch,
Reg,
FMM,
AE,
Acc,
Totals,
g1ID,
g2ID,
g3ID,
AEID
FROM
vwMultAE
WHERE
Account_ID IN (SELECT Account_ID FROM vwMultAE GROUP BY g2ID, Account_ID HAVING ( COUNT(Account_ID) > 1 ))
ORDER BY
g2ID, Account_ID 
 
 
 

View 5 Replies View Related

Error Executing Non Query: Timeout Expired

May 23, 2007

I was having some errors from the webpage accessing the OLlinks table in the database.
Error executing non query: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
StackTrace:   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()   at System.Data.SqlClient.SqlDataReader.get_MetaData()   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)   at System.Data.SqlClient.SqlCommand.ExecuteReader()   at admin_admOLEditLinks.selectData(String strID) in e:wwwroothomeadminadmOLEditLinks.aspx.cs:line 101DateTime:5/23/2007 1:14:10 PMSource:http://www.myDomain.comiAdmin/admOLEditLinks.aspx?ID=3ErrorMessage:Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
I kept getting the above error so then I try to access the table directly inside of MS SQL Server Management Studio and then I recieved the following error:
SQL Execution Error.
Executed SQL statement: SELECT lnkID, linkFromID, linkToID FROM OLlinks
Error Source: .Net SqlClient Data Provider
Error Message: Timeout expired. The timeout period elapsed prior to completion of the opration or the server is not responding.
 
Open any other table works fine except this table only. Any help is much appreciated.

View 7 Replies View Related

Sql Query Timeout, Expensive Cast Operation?

Jul 23, 2005

I need some tips to boost the performance on the following query.The problem is that it times out once in a while, and then again runsnormally in most cases.The clue is to compare a textual value stored as an image data type, but Idon't know if the cast operation could be done in another way.Any tips?SELECT DISTINCT pk_product FROM tbl_product PJOIN tbl_product_content PC ON P.pk_product = PC.fk_productJOIN tbl_content C ON PC.fk_content = C.pk_contentJOIN tbl_content_rel REL ON C.pk_content = REL.fk_contentJOIN tbl_filegroup FG ON REL.fk_filegroup = FG.pk_filegroupJOIN tbl_filegroup_file FF ON fg.pk_filegroup = FF.fk_filegroupJOIN tbl_file F ON ff.fk_file = F.pk_fileWHEREP.fk_product_type = 45 ANDCAST(CAST(f.data AS VARBINARY) AS NVARCHAR(20)) = '1234'/ted

View 1 Replies View Related

Table Query Timeout Problem Very Specific

Aug 26, 2006

MSSQL Server 2000 SP3 in both houston and memphisI have a database in houston, lets call it RED. Specific tables fromdatabase RED are copied to database BLUE. Database BLUE is then backedup, ftp'd to memphis and restored. In memphis there is a single tablein this database that will not open in enterprise manager when youchoose to open all rows you get a generic ODBC timeout error no numbersjust simply "TIMEOUT".If I log into the servers in houston and open the table from databaseRED or BLUE there is no issue. I can however return up to 66,199 rowswithout an error. If i choose a number higher than this i get thetimeout error. I discovered I could run a querySelect Distinct * from f0911and it would display all my data. I am able to export the data fromthe table using this query to a csv file and reimport the data into atable and it works just fine.I built another sql 2000 server SP4 and there is no issue with thetable in the database when it is restored there. I have also triedrestoring as a different database name on the production (sql 2000 sp3)server to no avail.I can't figure out why this single table is not functioning properly inthe one instance of sql 2000.If anyone has any ideas please share them, I'm running out myself. I'mobviously very new at sql database administration and would appreciateany advice.Also, i don't believe the issue has to do with timeout countdowns.Everywhere i could change them (Enterprise manager and SQL Serveritself) they are set to unlimited if possible. I also don't see howthe problem could be related to the service pack of the sql server,seeing as although it works on the sp4 server in my possession it stillworks just fine on the sp3 server in houston.Thanks,Michael Smith

View 1 Replies View Related

Group By Query Casues TimeOut Error

Oct 22, 2006

I have a table with 6 million rows.I'm trying to perform a group by query that incudes a row count of thePK column:SELECT COUNT(DataID) AS Cnt, Column1NameFROM dbo.TableNameWHERE (Column2Name = N'p')GROUP BY Column1NameI have the query timeout set to 0 in Enterprise Manger. However, if Irun this query, either in Enterprise Manager or in Query Analyzer, Iget the following error message:[Microsoft][ODBC SQL Server Driver]Timeout expiredA little baffled as to why and how to run this query.Any help is appreciated.lq

View 2 Replies View Related

Reporting Services Timeout But Query Keep Running?

Apr 2, 2008

The Gobal value for the reporting timeout is 10 minutes (600).

I Have a report which takes around (1hr to run).. The report correctly timesout (page cannot be display)
but the query kept on running..until it completed.

Is there any way to stop this from happening (Report and Query timeout after 10 minutes)

I have look on the internet and in my rsreportserver.config ..
<Add Key="SQLCommandTimeoutSeconds" Value="60"/>
<Add Key="MaxActiveReqForOneUser" Value="20"/>
<Add Key="DatabaseQueryTimeout" Value="120"/>

.. This information seems to be ingnored

View 2 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Obtaining A Connection From The Pool

Jan 13, 2008

 
Server Error in '/' Application.


Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.Source Error:



An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:



[InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.]
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +1188873
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +413
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
LogDo.Log_Db_Save(String sjm, String k_sql, String bz) +438
LogDo.Log_Save(Exception e, String sql) +124
DataCaoZuo.Manage_ResultTB_Caozuo(String comstr) +145
Cls_UserManage.GetAllUserList() +18
Index.Page_Load(Object sender, EventArgs e) +83
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

View 1 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Obtaining A Connection From The Pool.

Feb 5, 2004

Ok bear with me here :). I have a server that is getting about 1000000 hits per day with about 10,000 unique vistors. For the past 2 months I have been revamping my code trying to deal with the increase in traffic. I have 2 boxes, one for the website, and one for the SQL. They are connected through a secure backlink so that I dont have to worry about encrypting the data. So the problem started when I updated the MDAC components a few weeks ago. I started getting these freaking timeout errors, they are up to about 1000 errors per hour. I have been monitoring the connection pooling using the system monitor for about a week and have noticed that I am not maxing out the pooling but I am still dropping connections. I went into the web.config and turned my max connections to 1000. Unfortunately this didn't even put a dent in the problem. It doesn't matter if I have 12 or 212 open connections it still drops them. I am at my wits end with trying to debug this problem. I am wondering if anyone else has had similiar problems recently. Also on a side note I have checked all my connections to make sure that I am closing them. Not only do I close my datareaders but I also set them to nothing. In addition to closing and reseting my datareaders I am also disposing and reseting my connection objects as well as closing them. Any help would be greatly appreciated.

Thanks,
Daniel Christoffersen

View 3 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding.

Dec 28, 2006

Hey,
From time to time i get this error "Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding." so I tried to change the connection string by adding thie following "Connect Timeout=200; pooling='true'; Max Pool Size=200" but still it is giving the same error! so why is this happening ? and what can I do!
btw the timeout expired happens when a stored procedure is executed at the Fill method !
Thank you in advance
Hiba

View 2 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding.

Mar 1, 2007

Hi All,
I am facing a problem in SQL Server 2005 and the .NET Environment. I have an SP, which will return me the result within fraction of second when i execute it in SQL Server Management studio. But randomly (Frequently), its giving timeout when i execute it from .NET Envirnment.
If i execute it at that same time in Management studio, i am not getting the error. But getting the Timeout when i execute it in the Server Explorere of VS 2005 or in the Application which uses it.
Can any one figure out the solution.

View 9 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding.

May 19, 2007

Hi Team Iam working in a asp.net web application. In my system i have installed the xp as os and the in my network is of 2003 server. All files and database are there. But when me accessing the files from my laptop it shows the error as follows Timeout expired.  The timeout period elapsed prior to completion of the
operation or the server is not responding.Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code. Exception Details:
System.Data.SqlClient.SqlException: Timeout expired.  The timeout period
elapsed prior to completion of the operation or the server is not
responding.Source Error:



Line 19: con = New SqlConnection(constring)Line 20: If con.State = ConnectionState.Open Then con.Close()Line 21: con.Open()Line 22: cmdobj = New SqlCommand(query, con) Source File:
Y:Inetpubwwwrootsreeskybuilderssreeskybuildersdbmain.vb    Line:
21 If me accessing that same from that mechine there were no errors and i can go thru that program successfully. So please help me to do access the db from anywhere in my network Thanks Rajesh.C.S 

View 5 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding.

Jul 15, 2007

Hi!
 I am having a problem with my windows app in VB.net. I am just trying to do a very simple select command to retrieve some data. I am using a hosting server with a VPN.
When i click on the button it keeps giving me the error above. When I use server management express to do the same query it works fine and relatively fast.
So I have tried setting the CommandTimeout to 120 but when it stops, the debugger shows that the value of the COmmandTimeout is 30, although it stops after about 15 secs.
I am really lost and would need some help please! Find my code underneath.
 Private Sub RetrieveButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RetrieveButton.Click
'Create a connection string to connect to the database. Associate it to a connection object.Dim connString As String = "Data Source=192.168.24.75;Initial Catalog=edenoverseasproperty;" & _
"Integrated Security=SSPI;User ID=edenoverseasproperty;Password=blossomcar"
'Dim connString As String = "Data Source=JPCHENOTSQLEXPRESS;Initial Catalog=EdenOverseasProperty;" & _
' "Integrated Security=SSPI;User ID=sa;"Dim sqlConn As New SqlConnection(connString)
'Create a new command and associate the connection object to it.Dim cmd As New SqlCommand()
cmd.CommandTimeout = 120
cmd = sqlConn.CreateCommand()
'Define the command type and the source
cmd.CommandType = CommandType.Text
cmd.CommandText = "SELECT * FROM Clients"
'Create a data adapter and a datasetDim da As New SqlDataAdapter()Dim ds As New DataSet()
da.SelectCommand = cmd
da.Fill(ds, "Clients")
'Bind the data to the datagrid
EdenDataGridView.DataSource = ds
EdenDataGridView.DataMember = "Clients"
End Sub
 
Jean-Philippe

View 2 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding

Feb 1, 2008

HI,
 
I am getting this error on web server. My Appication is working fine on my Local Network where DB server and web server are on different machine. But getting TimeOut on web server. I tested the query on Query Analyzer it takes hardly 3 sec (Max) to execute. There is only Select query and total number of records are around 2100 which is not a big data.
I have used Connect Timeout = 180  in connection string which is also not effective. 
please tell me how can I handle this exception.

View 1 Replies View Related

Timeout Expired. The Timeout Period Elapsed Prior To Completion Of The Operation Or The Server Is Not Responding.

Mar 7, 2008

We've been having timeout problems.
In our development environment we have IIS and SQL Server 2005 both running on the same box. We use VWD or our dev server's IIS to run the apps.
What happens is the database stops responding to our web applications and we continue to get the timeout error. I can still execute queries from Management Studio but all of the web apps all timeout.
Then, the only was we can get the database to start responding again is if we restart the SQL Server service.
Any ideas as to why the database would stop responding to all of the web apps but not Management Studio? It tends to happen a couple times a day when we are developing. Only the other developer and myself use the DEV environment.
 

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved