Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 SQL Query
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 11/21/2012 :  13:06:14  Show Profile  Reply with Quote
Hi SQL Team,

I was hoping you can help me understand why a query times out.

If I have a select statement with less column, I retreive same number of records as when I have more columns but the problem is when I have more columns the query timesout.

Is there a time limit to control building a query?

Thank you

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 11/21/2012 :  13:28:39  Show Profile  Reply with Quote
Where are you running the query from? How long does it run before it times out? If it is a .net client, there is a default connection timeout and a default command timeout, 15 seconds and 30 seconds, respectively, I think. You can increase those in your .net code.

Go to Top of Page

Starting Member

1 Posts

Posted - 01/29/2013 :  08:28:39  Show Profile  Reply with Quote
Can you please help me with the options to set the Time limit using SQL queries and me with the errors in following query
Go to Top of Page

Posting Yak Master

160 Posts

Posted - 02/08/2013 :  18:42:38  Show Profile  Reply with Quote
If you are running query from remote, disable the option of timeout using the following query.

EXEC sp_configure 'remote query timeout', 0 ;
Go to Top of Page

Starting Member

5 Posts

Posted - 02/18/2013 :  12:19:34  Show Profile  Reply with Quote
Hey Guys my name is Mark.I think that SQL is a special-purpose programming language designed for handling in database control systems.The most common function in SQL is the query,which is conducted with the selected declaration.Queries allow the user to explain desired information.Thanks a lot!!

Edited by - markspend1 on 01/09/2014 02:08:30
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000