Quantcast
Channel: Questions in topic: "timeout-expired"
Viewing all 37 articles
Browse latest View live

Urgent Help required The semaphore timeout period has expired. [SQLSTATE 08S01]

$
0
0
I am getting the following error for the sqlserver agent (SQL SERVER 2005 SP2). **[298] SQLServer Error: 121, TCP Provider: The semaphore timeout period has expired. [SQLSTATE 08S01] [298] SQLServer Error: 121, Communication link failure [SQLSTATE 08S01] [298] SQLServer Error: 16389, Communication link failure [SQLSTATE 08S01] [298] SQLServer Error: 258, Unable to complete login process due to delay in prelogin response [SQLSTATE 08001]** This set of error I am getting quite frequently.. This is a production Database..And I need provide the Root Cause of this problem as SQL Server Agent goes down with this error. Not sure wheather it's related to the NIC/SAn or some network related problem. Please help. Many thanks in advance. Regards Aniruddha

time calculation in sql 2005

$
0
0
I am very new SQL. In my office i need to calculate the following from the main Server and display it to the client PCs. 1. Display the No. of Block ( 1 to 96) Every hour is divided into 15min blocks, 96 blocks in a day. 2. Display the block time as say 03:00 to 03:15 at say 3:10 hrs 3. Calculate the time left(in mm:sec format ) from the current time Please help. Thanks in advance.

Login timeout error in SQL Server 2008 R2

$
0
0
Hi, I am not able to connect to a SQL instance (SQL 2008 R2) remotely properly. I am able to connect to it locally. Actually, remotely we CAN connect but only when we keep the Connetion timeout settings to something like 1500 secs. The connection is too slow and I cannot run any queries using Management studio. There is NO network issue as I am able to connect to other servers in that network. When I try OSQL/SQLCMD I get the below error: D:\Documents and Settings\>osql /S ,1433 /E [SQL Native Client]TCP Provider: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. [SQL Native Client]Login timeout expired [SQL Native Client]An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. I have tried without PORT number too, same result. SQL browser is working, I have added SSMS,SQLCMD/OSQL to firewall exceptions on the target server. Any idea, what could be the problem???

SQL job failure due to timeout

$
0
0
Hi All, I have some jobs (in the form of .EXE executions) which connect to 2 or sometimes 3 SQL servers (all SQL 2005) However, these jobs seem to fail occasionally (every alternate day) due to errors similar to the one below: **Error messages (at different times):** 1. An error occured at database level : System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 2. An error occured at database level : System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding The job runs some stored procedures. The server on which the databases and instance is located have the below memory allocation: Instance 1 - 750 Instance 2 - 700 Instance 3 - 128 Max RAM on server: 3.75GB The connection is made using connection strings. The job is executed from one server and connects to SQL instances residing on another physical server. Questions: 1. Can the timeout errors be related to low memory allocation ? 2. If not, what may the reason of the error?

Timeout expired for Windows Authentication Only

$
0
0
After rebuilding a server, I am consistently getting "Timeout Expired" messages when trying to connect to SQL Server through SSMS with windows authentication from a machine other than the server itself. I can connect SSMS from another machine if I user SQL Server authentication with a username and password. I can also use SSMS with Windows Authentication on the Server itself either by connecting with RDP or sitting down directly at the server. I looked at [troubleshoot-timeout-expired-the-timeout-period-el][1] on this site, but that didn't quite seem to apply. I also looked at [Troubleshooting: Timeout Expired][2] but those suggestions did not resolve this issue. This does not seem to be a DNS issue since I can connect to the Server through RDP and the shared folders come up over the network (not to mention I can connect to SQL Server with SQL Server authentication). It does not seem to be a problem with my domain account since I can log in with Windows authentication from SSMS on the server. I double checked the firewall settings and even tried (*temporarily!*, on a server with no route to the internet) disabling the firewall. And naturally, I have verified that I have the proper server name. So, any ideas what could cause this? [1]: http://ask.sqlservercentral.com/questions/41373/troubleshoot-timeout-expired-the-timeout-period-el.html [2]: http://msdn.microsoft.com/en-us/library/ms190181.aspx

Sqlserver 2008 Backup restoration failing

$
0
0
I do Sqlserver 2008 database backup to the the C drive of my Central Server. On daily basis the system admin team do a full system backup of this server to Network Driver. I Then Copy the sqlserver database from the network drive to the C driver of Another Server and do the restoration. The Current Database size of the my Database is 118GB. When i trying to Restore, i browse to the location of database on the C Drive and Select the full backup file, it fails to read. i check the window task Manager it says DBXYZ is not responding. I but when i try to select the log it works. I suspect the problem has to do with the size of the database.(My sqslerver is an Enterprise edition. Please help.Tell me how you resolve yours.

connection timeouts in sql server 2000

$
0
0
Hello all, Happy new year!!! we are having few sql2000 instances. Recently we are facing the connection timeouts and all the applications connecting to SQL Server are getting hanged. After the server restart, everything seems normal.. only thing i got from the cient team is ... [165] ODBC Error: 0, Timeout expired [SQLSTATE HYT00] [165] ODBC Error: 0, Timeout expired [SQLSTATE HYT00] [382] Logon to server '(local)' failed (JobManager) [298] SQLServer Error: 11, General network error. Check your network documentation. [SQLSTATE 08001] what might be the cause ?? may I please How to dig into this issue ?

Performance issue after restart

$
0
0
Hi, I have got a very confusing problem. I have a stored procedure which is internally calling a number of child sps. some among them are called in a loop too. The issue i am getting is that the sp takes more than 3 minutes to complete which is not allowable for the application, which gets time out error. I found that if i run the sp for query analyser, for the first time it gives 3 minutes, but if we run it again, the time take will get reduced to 10 seconds only. For my wonder i found that the sp takes 3 minutes for every restart of my server (or restart of sql service). I am totally clueless. Can anybody help me on what could be the root cause of the issue. Statistics or Indexes are not rebuild during restart as per my knowledge. I have found many times that performance is increasing after restart. But this is for the first time i come across such a condition. Please put some lights on this issue. Thanks in avance.. Paps

query timeout expired problem

$
0
0
TIA for your help. I am using an OleDbTransaction in `ASP.net`, Page Language="vb", the database is SQL Server 2008 R2 Express. I get a "query timeout expired", and the transaction is rolled back, then the webpage user has to try again, and usually it succeeds. Is it a race condition that is causing this? Inside the transaction there are Inserts on 12+ tables, Updates on 3+ tables, and 7+ Selects. The Selects are generally used to get the IDENTITY ID of the Insert that just happened. The query timeout always happens on one specific Insert in the middle of the transaction. The table is one of our busiest. The time taken up until that Insert is generally 1/100th of a second. Does an insert inside of an OleDbTransaction place a lock on the last page of the table? So that another user trying to insert will get the timeout? It is possible that two different users are getting the same PublicID (see below code) and trying to use it. There is a UNIQUE index on tblContracts.PublicID. Is it something to do with my insert being too slow because of my indexes being wrong for that table? More detail. The series of events looks something like Sub ConvertAppCall(ByRef udtErrorReport As ErrorReport) Dim conDB As OleDbConnection Dim traDB As OleDbTransaction Dim cmdDB As OleDbCommand Dim prmDB As OleDbParameter Dim drdDB As OleDbDataReader conDB = New OleDbConnection(ConfigurationSettings.AppSettings("MDB")) conDB.Open() traDB = conDB.BeginTransaction() Try ...inserts/selects... then the statements with a ** are inside a utilities file, having passed the OleDbConnection and OleDbTransaction **SELECT TOP 1 PublicId FROM tblContracts ORDER BY PublicId DESC **then use OleDbDataReader to read the PublicID and add 1 to it, then **UPDATE [tblLasts] SET LastPublicId = " & lngPublicId then back on the main page, immediately do this INSERT INTO [tblContracts] (using the lngPublicID) cmdDB = New OleDbCommand(strSQL, conDB) prmDB = New OleDbParameter prmDB.ParameterName = "ContractNotes" prmDB.Value = IIf(txtContractNotes.Text.Length > 0, txtContractNotes.Text, System.DBNull.Value) prmDB.DbType = System.Data.DbType.[String] cmdDB.Parameters.Add(prmDB) cmdDB.Transaction = traDB cmdDB.ExecuteNonQuery and if any query timeout happens, it happens here

How to find out Stored procedures, function and triggers which are timing out?

$
0
0
I want to find in my production which are the Stored procedures, functions or triggers are getting timed out?

Server 2008 Cannot connect to named instance

$
0
0
Running Windows Server 2007 SP1 64 bit on a VM (VMWARE) .. Connecting to a named instance either remotely or locally has gotton progressively more difficult until now it cannot be connected to at all always giving Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. (.Net SqlClient Data Provider) This instance hosts a number of mirrors which still work and will reconnect after a restart or server reboot SQLCMD is the same will not connect , the only thing that seems different now is that the instance is using all available memory at least 20gb which drops back after a restart In summary cannot connect to named instance SQL2-1(slash)CISMSSSERVER (in this case) via SSMS or SQLCMD has gotton progressively worse over the last 6 weeks not sudden change , the default instance thats runs on the same server is fine . Points to a resource problem but a reboot should resolve that ,which it doesnt. o) Not Firewall related (switched off) o) Various timeout values have been tried o) Connecting using SSMS or SQLCMD gives same result o) using port 63253 o) Number of databases on instance 275 Anyone got any ideas ? I am flummoxed

how to Delete HUGE amount of data with out timing out

$
0
0
I have a table with a 44 Million records. With a PK of location. I am trying to delete a single location that has 1.5 million records. Delete from myBigTable where location = '01234' I have tried with and with out a Tran and still times out. what is the best approach on deleting HUGE amounts of data. Break it out some how ie Get count delete top 100000, next 100000 ect

Connection timeout period elapsed

$
0
0
Hi Guys How do I resolve this issue? Additional information: Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=3448; handshake=41; the TCP/IPV6 and IPV4 are both enabled and all TCP/IP are active and enabled

I´ve got the following query that send me a timeout...

$
0
0

I've got the following query that send a Timeout, inside the *.execution plan xmla appears..."StatementOptmEarlyAbortReason="TimeOut"

Can help me to build this query to avoid timeouts.
Thanks and regards.

SELECT t1.[VndID] , t1.[VndID] AS VndCntID , t1.[OprtnddID] , t1.[TpOrdm] , t1.[NmOrdm] , t1.[Prrdd] , t1.[Estd] , t1.[SprvsrID] , t1.[DtCrc] , t1.[DtMdfcc] , t1.[CrdPor] , t1.[MdfidPor] , t1.[MrdID] , t1.[TpOrgmID] , t1.[MrdFctrcID] , t1.[Pmnt_Tp] , t1.[Pmnt_Dc_Tp] , t1.[NmrFctur] , t1.[NmrRcbmnt] , t1.[Pmnt_Type_Chr] , t1.[VndOcsnl] , t1.[SblID] , t1.[PrVnd] , t1.[SstdVndDscrc] , t1.[TpoOrdmVndDscrc] , t1.[CntCltID] , t1.[NmClt] , t1.[OprtnddVndDscrc] , t1.[CmpnhID] , t1.[CmpnhNm] , t1.[AgntID] , t1.[CmrclNm] , t1.[AgntNm] , t1.[CdgAgntPT] , t1.[CntNif] , t1.[CntBI] , t1.[CntPssprt] , t1.[prvndext] , t2.Andr , t2.Aprtmnt , t2.CdgLcldd , t2.CdgLclddPT , t2.CdgPstl , t2.CdgR , t2.DsgncMrd , t2.Edfc , t2.Lcldd , t2.LclddPstl , t2.Mrd , t2.MrdCmplt , t2.MrdCmplt2 , t2.NumPolicia , t2.Ps , t2.Rgo --INTO #temp1 FROM dbo.123_OrdrFrmScriptWrln AS t4 WITH(NOLOCK) INNER JOIN dbo.ItVnd AS t5 (NOLOCK) ON t5.ItmID = t4.Item_ItmID INNER JOIN PrdAssc AS t7 WITH(NOLOCK) ON t5.PrdID = t7.PrdCmpstID INNER JOIN dbo.ItVnd AS t6 (NOLOCK) ON t6.PrdID = t7.PrdCmpnntID INNER JOIN dbo.Prd AS t8. WITH(NOLOCK) ON t11PrdID = t7.PrdCmpnntID INNER JOIN dbo.VwVns AS vv WITH(NOLOCK) ON t11OprtnddID = t1.OprtnddID INNER JOIN 456_Ordr AS t9 WITH(NOLOCK) ON t4.Order_Id=t9.Id INNER JOIN VWMrd AS vm WITH(NOLOCK) ON t2.MrdID = t1.MrdID WHERE NOT EXISTS ( SELECT 1 FROM EstdVWlnWrlss AS t10 (NOLOCK) WHERE t10.EstdVWln = t6.EstdID AND t10.EstVW = t9.stid ) AND t4.del = 0 AND t9.del = 0; --option(reCmpile) --00:03:47 --sem reCmpile --00:02:21 00:01:44 --select * from #temp1 --00:01:45

Select with a particular value goes in timeout

$
0
0

Hi, I've a strange situation, this is not the first time I saw that. In such a situation it seems that sql server not execute a SELECT statement in time going in a timeout.

The strange thing is that same query with different value, not sintax, and same client works like a charm. Is it possible for the underscore character ? but other client have the same special char in their name and it works !!

See below:


--This one go in timeout

SELECT DisplayOrderInfo FROM dbo.ORDERS_IN RIGHT JOIN

(SELECT TOP(1) OrderRowInsertedGuid FROM PACKAGE_RECORD WHERE DeviceName = 'B2O_GLME_MASTER_L3' ORDER BY VerificationDate desc) t1

ON dbo.ORDERS_IN.InsertedGuid = t1.OrderRowInsertedGuid

WHERE dbo.ORDERS_IN.State = 2 and Suspended = 0


--This one work like a charm, the only difference is the DeviceName

SELECT DisplayOrderInfo FROM dbo.ORDERS_IN RIGHT JOIN

(SELECT TOP(1) OrderRowInsertedGuid FROM PACKAGE_RECORD WHERE DeviceName = 'B2O_GLME-MASTER_L3' ORDER BY VerificationDate desc) t1

ON dbo.ORDERS_IN.InsertedGuid = t1.OrderRowInsertedGuid

WHERE dbo.ORDERS_IN.State = 2 and Suspended = 0


there are two other client with different name and with 1 million record in join that react in a nanosecond, I've tried to delete completly the records on the right join part but no difference select still go in timeout, In the end I've changed the name of the device to work


This is the versione of Sql Server, but in the past I've seen a similar situation on other sql server

--select @@VERSION

Microsoft SQL Server 2017 (RTM-CU18) (KB4527377) - 14.0.3257.3 (X64) Nov 16 2019 01:14:50 Copyright (C) 2017 Microsoft Corporation Standard Edition (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: ) (Hypervisor)


SQL Server long running and timedout

$
0
0

Hi All,

We are on SQL Server 2017

App set to run PROC up to 5min. So if it exceed 5mins it is going to timed out.


The PROC got timedout, when I see the history of that query in sp_whoisactive which we store history in our log table): the reads, writes are 0. There are no waits and no blockings. The status in in RUNNABLE. CPU shows 0 in sp_whoisactive. Couldn't find the reason why it ran that much time.


Any inputs ?

SQL Server long running and timedout

$
0
0

Hi All,

We are on SQL Server 2017

App set to run PROC up to 5min. So if it exceed 5mins it is going to timed out.


The PROC got timedout, when I see the history of that query in sp_whoisactive which we store history in our log table): the reads, writes are 0. There are no waits and no blockings. The status in in RUNNABLE. CPU shows 0 in sp_whoisactive. Couldn't find the reason why it ran that much time.


Any inputs ?

Viewing all 37 articles
Browse latest View live