SSMS Timout problems - sql-server-2008

I have weird behaviour in SSMS 2017.
I am trying to run some stored procedure in SSMS and I get next message every time trying to run it:
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
First, by default timeout was set to 1 second, then I tried with 10 seconds and last I have tried with 0 seconds. Even tho it says 0 seconds is avoiding timeout, it still have timeout.
The most weird thing is that when I run this stored procedure within the application, everything is working fine. I am confused and I don't know what to do.
I am working with SSMS 2017 with DB from SQL Server 2008.

Related

Mysql Installed in EC2 T3.Large: Error Code: 2013. Lost connection to MySQL server during query

I got the
Error Code: 2013. Lost connection to MySQL server during query error.
I have 80 million records in a table.
When I execute few basic queries i don't get any errors. When I execute aggregate query I am getting a connection to MySQL server during query error after 2 hours.
In my case even if the query takes more than 10 hours also that's fine, but I need that particular query to be executed.
I know this is a duplicate question. I have made most of the suggested changes reading stack overflow link, even though the query is not executing.
The current settings I have modified is:
SET GLOBAL max_allowed_packet=67108864;
SET GLOBAL innodb_buffer_pool_size=6026531840;
SET GLOBAL interactive_timeout=36000;
SET GLOBAL connect_timeout=36000;
I executing the query using MYSQL Workbench and also tried with python script.

Timeout expired. SSIS

I am getting this error randomly:
Timeout expired.
"Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed before completion of the operation or the server is not responding."
Sometimes the package just runs fine without any errors. I am confident there is no syntax or database error in the SQL script I wrote. I also changed the connection timeout to 30 but I still get this error.
Any suggestion would be highly appreciated.
I have series of data flow task, and I have one script task as well. I get this error in the script task when I try to run a select query, Select query run fine if I run it on SQL server management studio. I take data from one server and insert it into a database on the different server. I hope that makes sense.
Also, when i debug the script it hangs right on that query but when I run this in SSMS it gives result in like 30 seconds. Could it be possible that there is some network issue connecting to SQL server through is?

mysql initial connection suddenly taking too long

I am using mysql 5.5.16 on windows 2008 R2 virtual server, and remotely connecting to it using C# and locally connecting to it using PHP. Its been working fine for past 5 month but suddenly today I started getting this error in C# code:
Timeout expired: The timeout period elapsed prior to completion of the operation or the server is not responding.
Also if I use HeidiSQL, its also talking more than a minute to connect, however, once connected, the queries are running without any delay. I have tried adding skip_name_resolve in the server's my.ini file but no use.

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding

while runnig the ssis package i'm calling sp in the ADO.net source,but getting this error
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.I have set the command timeout to 0(infinite time),but still getting the error.The sp is working fine in sql server and taking approx 31 seconds for executing it,but in ssis its throwing error..please help me on this.Thanks in advance.
Check out this bug report - there is a sp in the SSISDB database in SQL Server 2012 causing packages to time out before they start running. I had error message "Failed to execute IS server package because of error 0x80131904" and "Description: The operation failed because the execution timed out" when calling multiple (more than 10) packages from my scheduling tool via DTExec. Please vote for the issue on the connect site so that MS can release an official fix.
Today, I was experiencing the same error while using the ADO Net Source, my sp works fine on the SSMS, but fails in the package, while In the package, it errors our with a long laundry list of errors, but basically it is timing out.
Solution is Right click on the ADO Net Source - Show Advanced Editor - Component Properties - Custom Properties - CommandTimeout - Increase the time here
I had the same problem in SSAS.
The way I sorted this out was extending the client and server time out settings.
you can see more details in the link below:
routine to backup ssas databases fails with: The XML for Analysis request timed out before it was completed

SSRS connection errors

I'm getting the error below occasionally in SQL Server 2008 R2 Reporting Services. I have around 25 subscriptions that run close to midnight every night and a couple times they've all failed with this error. I'm not sure if it's a red herring but I killed most of the connections (90% of the connections to this server are from SSRS, and most of those are to ReportServer db) last night around 10:00 and no errors occurred for several hours. This is a relatively new installation but I didn't tweak anything when I migrated from the old server so I don't know why this is happening. I might be able to work around it by increasing the max pool size and killing unused connections but I'd rather not do that.
ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceOpenException: , Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceOpenException: Cannot create a connection to data source 'MyDB'. ---> 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.
It seems like the problem is that connections are not being reused, but only by SSRS, not by other apps hitting the server. Why would that be?
There are a couple of things to consider especially since you have data-driven subscriptions.
Try to stagger the time they are scheduled to run at so that they aren't all competing for resources at the same time.
Adjust the timeout on the query for the data-driven subscriptions (this is probably your main issue). The report and the subscription each have their own separate timeouts set.