Startup delay in SQL Query analyser
BertDeHaes
Posts: 5
When the SQL Prompt is activated, it takes up to 5 minutes before SQL Query analyser pops op and show sthe login window. When I deactiate SQL Prompt, it pops up in less then a second. Is this a known problem ? I mostly deactivate SQL Prompt because of this delay ...
Comments
That's interesting. I assume you mean it's 5 minutes before the Window appears? If you leave it running do you get any kind of error? Could you also let me know what OS version you're using, what's happening with your CPU during this time (i.e. how much is being used and what processes are using it), the type and speed of your CPU and how much physical memory you have in your machine please?
Thanks,
Bart
Principal Consultant
bartread.com Ltd
Without SQL Prompt, the login windows pops up in less then a second, and isql uses 6004kB of memory before login. ( 9184 kB after connection ).
The machine uses only 500Mb of the 4Gb of memory when I did this test ...
Hmmm... that's also very interesting. Is there anything else using a significant amount of CPU during this time? I'm thinking perhaps your AV software might not like our method of injecting code into QA, although even if that were the case 5 minutes seems excessive, particularly on a machine with that spec. Is there any significant disk access occurring in this period? If not I'm at a loss but we'll certainly investigate.
Last thing: have you tried starting up SQL Server Management Studio, and if so do you see a similar delay when you start that up?
Thanks,
Bart
Principal Consultant
bartread.com Ltd
I did not yet install SQL Server Management Studio on this machine. I'am still using SQL 2000 server & tools.
I manage 8 servers, but most of them are not reachable when I launch isqlw. ( they are only reachable when I connect to the VPN of my clients )
I have a Virtual PC with SQL 2005 server & tools. I will try to install SQL Prompt on the virtual PC and do the same tests.
Thanks,
Bert
I realise I'm saying this is a lot but that really IS interesting, because it sounds like perhaps SQL Prompt is trying to connect to one of those databases... and hence what you're seeing is the result of waiting for a network timeout to occur. This is very odd because until you try to connect to something neither should SQL Prompt, and in any case even if it is waiting for a timeout it shouldn't hang the app initialisation, but this is what I'm guessing is happening from what you've said.
Just out of interest, what would happen if you connected to the VPN first, before you started Query Analyzer?
At any rate we'll take a look into it. Hopefully it will be fixed in the first patch release.
Thanks,
Bart
Principal Consultant
bartread.com Ltd
I cleared the SQL prompt cache, and now the delay has gone ...
Hope this can be fixed in the next patch release,
Thanks,
Bert
Thanks,
Bart
Principal Consultant
bartread.com Ltd