SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

kz
Starting Member

Canada
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

sunitabeck
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

ThomasBurrus
Starting Member

USA
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
<option> ::( BATCHSIZE | TIMELIMIT | FULLTEXTROWLIMIT).

http://www.citymetrocarpetcleaning.com.au/kensington
Go to Top of Page

srimami
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
RECONFIGURE ;
GO
Go to Top of Page

markspend1
Starting Member

Australia
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  
 New 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.08 seconds. Powered By: Snitz Forums 2000