Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL Server 2005 (MSDE) delay after starting services

 
   Database Forums (Home) -> Connect RSS
Next:  HTTPEndPoint  
Author Message
Shane32

External


Since: Feb 17, 2006
Posts: 2



(Msg. 1) Posted: Wed Mar 01, 2006 6:22 am
Post subject: SQL Server 2005 (MSDE) delay after starting services
Archived from groups: microsoft>public>sqlserver>connect (more info?)

After starting the SQL Server Desktop Edition 2005 service, I can't
connect to it for a matter of up to 10 seconds (I get an authentication

failure). This is causing a problem in my dependent services, because
they then fail even though SQL Server is running. Is there a way to
configure SQL Server to wait until it is completely running before
returning control to the OS (which then starts the dependent services)?

Or, should I configure my program to use SQL authentication instead of
Windows authentication?

Right now I have both SQL Server and my program's services to run under

the Local Computer account. Also, I've never had this problem when
using my application with SQL Server 2000 (the MSDE version).

Has anyone had experience with this issue?

I've seen KB # 910892, but I've already configured my program to be
dependent on SQL Server. It fails even though SQL is already running
(for the first 10 seconds or so after SQL starts up).

Thanks in advance,

Shane

 >> Stay informed about: SQL Server 2005 (MSDE) delay after starting services 
Back to top
Login to vote
Roger WolterMSFT

External


Since: Sep 03, 2003
Posts: 93



(Msg. 2) Posted: Wed Mar 01, 2006 7:59 pm
Post subject: Re: SQL Server 2005 (MSDE) delay after starting services [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chance are what you're seeing is the database your application connects to
is recovering for a few seconds after the SQL Server service starts. This
is normal. The amount of time this takes depends on the log, how the
database was shutdown, the recovery model of the database, etc. In the
services I have written, I generally looked for an error when attaching to
the database and retried the open every couple seconds until it succeeds.
There's really no way to make the service manager wait for the database to
recover before it starts your service because each database in the SQL
Server service will take a different amount of time to recover.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Shane32" wrote in message

> After starting the SQL Server Desktop Edition 2005 service, I can't
> connect to it for a matter of up to 10 seconds (I get an authentication
>
> failure). This is causing a problem in my dependent services, because
> they then fail even though SQL Server is running. Is there a way to
> configure SQL Server to wait until it is completely running before
> returning control to the OS (which then starts the dependent services)?
>
> Or, should I configure my program to use SQL authentication instead of
> Windows authentication?
>
> Right now I have both SQL Server and my program's services to run under
>
> the Local Computer account. Also, I've never had this problem when
> using my application with SQL Server 2000 (the MSDE version).
>
> Has anyone had experience with this issue?
>
> I've seen KB # 910892, but I've already configured my program to be
> dependent on SQL Server. It fails even though SQL is already running
> (for the first 10 seconds or so after SQL starts up).
>
> Thanks in advance,
>
> Shane
>

 >> Stay informed about: SQL Server 2005 (MSDE) delay after starting services 
Back to top
Login to vote
Display posts from previous:   
   Database Forums (Home) -> Connect All times are: Pacific Time (US & Canada)
Page 1 of 1

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



[ Contact us | Terms of Service/Privacy Policy ]