Red Gate forums :: View topic - SQLPrompt cannot retrieve objects - timeout
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 5
SQL Prompt 5 forum

SQLPrompt cannot retrieve objects - timeout

Search in SQL Prompt 5 forum
Post new topic   Reply to topic
Jump to:  
Author Message
ahmannj



Joined: 06 Jan 2006
Posts: 13
Location: Minneapolis, MN. USA

PostPosted: Thu Aug 29, 2013 5:02 pm    Post subject: SQLPrompt cannot retrieve objects - timeout Reply with quote

Each time I open a query window for the first time in a new SSMS session on a certain production database, I get an error from SQL prompt telling me that it couldn't retrieve all the schema information due to a timeout expiring. I believe it has already most of the schema information, but might be hung up on a synonym that could be invalid (the last item in the SQL Prompt status window says something like "processing synonyms"). Dev and Test copies of the DB work just fine, though they are less busy and have fully resolvable synonyms.

Anyway, after I dismiss the error dialog I get no suggestions in for that query window at all. Of all the databases I work with, this is the one that I need the most help from SQL Prompt for - due to the support urgency of the queries I run there.

I'd like to know how I can configure SQL prompt to extend its timeout. In addition, is there a way to configure (or change SQL Prompt) to allow it to use the partially collected schema information to get some level of suggestions despite not having all synonyms, etc. in its cache.

Also, Is there a way I can see what SQL Prompt is trying to look at when it times out (tracing SQL on that server is not a good option for me) - that might give me an ability to isolate the offending object.

BTW, this happens in both SQL Prompt 5 and 6 in both SSMS 2008R2 and 2012.

Thanks
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 190
Location: Red Gate Software

PostPosted: Fri Aug 30, 2013 8:54 am    Post subject: Reply with quote

Unfortunately there's no way to change the timeout or tell it to use a partial cache in the current build. I just had a look at what we log and it looks like that's going to be insufficient for narrowing down exactly where prompt times out.

I'll look into better logging and a configurable timeout today and hopefully have a private build for you later today - I'd be very interested to know which of our queries is timing out and why!
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 190
Location: Red Gate Software

PostPosted: Fri Aug 30, 2013 4:29 pm    Post subject: Reply with quote

I tried sending an email but got a delivery failed notification so I've sent you a PM with the details of the private build.
Back to top
View user's profile Send private message
ahmannj



Joined: 06 Jan 2006
Posts: 13
Location: Minneapolis, MN. USA

PostPosted: Fri Aug 30, 2013 6:05 pm    Post subject: Reply with quote

Thanks - I'll give it a try and let you know. I'll also check my email address.
Back to top
View user's profile Send private message
ahmannj



Joined: 06 Jan 2006
Posts: 13
Location: Minneapolis, MN. USA

PostPosted: Fri Aug 30, 2013 9:46 pm    Post subject: Reply with quote

The problem is being caused by a few synonyms that refer to a linked server that no longer exists. Apparently nobody is using these anymore.

SQL Prompt is timing out waiting for the remote connection attempts to timeout, and wisely gives up first.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group