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
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Error Message: Timeout expired on View
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

siumui
Yak Posting Veteran

54 Posts

Posted - 03/12/2013 :  11:23:20  Show Profile  Reply with Quote
Hello all,

I execute the codes in View (Design) and I got an Error Message below:

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

Please let help. The server is repsonding for I can run other queries. Thank you.

James K
Flowing Fount of Yak Knowledge

3651 Posts

Posted - 03/12/2013 :  12:23:06  Show Profile  Reply with Quote
Are you able to select rows from the table in SQL Server Management Studio?

There can be two types of timeouts - connection timeout and command timeout. Connection timeout happens if the connection to the server cannot be established within a certain amount of time (15 sec default). Command timeout happens when the query takes longer than a certain amount of time (30 sec default).

Depending on what type of timeout it is, investigate the cause, and perhaps increase the timeout if there is a rationale for doing so. You can set the timeouts in most client frameworks (In .Net code Connection and Command objects have those properties)
Go to Top of Page

siumui
Yak Posting Veteran

54 Posts

Posted - 03/12/2013 :  14:38:22  Show Profile  Reply with Quote
Thank you James K.

I viewed the codes in View by choosing right click on the View and choose "Design". I copy the codes from the View and modified it it in a different query window. Then I copied and pasted the modified codes back to codes section in the "Design" window of the View, then click on the red exlamatory button to run the codes. I was told by my boss that I can't run the query in "Design" window of the View. I didn't know that I can't do that. I end up checking the syntax of the modified codes and save the View with the modified codes. I was able to query from the View.
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.06 seconds. Powered By: Snitz Forums 2000