PC Review


Reply
Thread Tools Rate Thread

ado.net unable to connect from Windows 2000 after SQL server Resta

 
 
=?Utf-8?B?QmF6?=
Guest
Posts: n/a
 
      21st Jun 2005

After restarting my SQl Server instance my ASP.net applicaions running on
Windows 2000 are unable to connect to the SQL Server. My asp appplications
are still able to connect

The connection string I am using is
user id=sa;pwd=????;data source=????;persist security info=False;initial
catalog=DBNAme

My clients running on Windows 2003 Server are still able to connect after
the restart.

I have tried the following:

Restarted the 2000 Machine hosting the client with no resolution

Changed the "data source" parameter to use the ip of the database server
rather than the DNS name with no resolution.

Added an entry in the ODBC Data Source Administrator for the server on the
2000 Machine with no resolution


I am able to ping the Database server and access it from Query Analyser from
the 2000 servers.

I was wondering if anyone has come across a similiar problem or if anyone
has any pointers as to what other changes to try??

Thanks,
BArry


 
Reply With Quote
 
 
 
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      22nd Jun 2005
Barry,

By restarting the SQL Server you effectively corrupt the connection pool on
the client machine. In .NET 1.1 you will have to restart the app
server/client machine too, in .NET 2.0 you can clear the connection pool.

The asp applications are able to connect because they donot have a
connection pool underneath like asp.net apps do.

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------

"Baz" <(E-Mail Removed)> wrote in message
news:91C7FC5F-C9DC-45F8-ABDC-(E-Mail Removed)...
>
> After restarting my SQl Server instance my ASP.net applicaions running on
> Windows 2000 are unable to connect to the SQL Server. My asp appplications
> are still able to connect
>
> The connection string I am using is
> user id=sa;pwd=????;data source=????;persist security info=False;initial
> catalog=DBNAme
>
> My clients running on Windows 2003 Server are still able to connect after
> the restart.
>
> I have tried the following:
>
> Restarted the 2000 Machine hosting the client with no resolution
>
> Changed the "data source" parameter to use the ip of the database server
> rather than the DNS name with no resolution.
>
> Added an entry in the ODBC Data Source Administrator for the server on the
> 2000 Machine with no resolution
>
>
> I am able to ping the Database server and access it from Query Analyser
> from
> the 2000 servers.
>
> I was wondering if anyone has come across a similiar problem or if anyone
> has any pointers as to what other changes to try??
>
> Thanks,
> BArry
>
>



 
Reply With Quote
 
=?Utf-8?B?QmF6?=
Guest
Posts: n/a
 
      23rd Jun 2005
Sahil,

I tried restarting the Windoows 2000 Application Server hosting the .Net 1.1
applications and it do not resolve the issue.

It was resolved by restarting the SQL Server again and the .Net 1.1
Applications hosted on windows 2000 could then connect to the database. It is
'strange' that the 1.1 applications hosted on 2003 Server did not lose
connection to the database server.

Are you aware of any issue whereby .Net 1.1 appliactions hosted on Windows
2000 server do not pick up restarts of sql server?

Barry

"Sahil Malik [MVP]" wrote:

> Barry,
>
> By restarting the SQL Server you effectively corrupt the connection pool on
> the client machine. In .NET 1.1 you will have to restart the app
> server/client machine too, in .NET 2.0 you can clear the connection pool.
>
> The asp applications are able to connect because they donot have a
> connection pool underneath like asp.net apps do.
>
> - Sahil Malik [MVP]
> Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
> ----------------------------------------------------------------------------
>
> "Baz" <(E-Mail Removed)> wrote in message
> news:91C7FC5F-C9DC-45F8-ABDC-(E-Mail Removed)...
> >
> > After restarting my SQl Server instance my ASP.net applicaions running on
> > Windows 2000 are unable to connect to the SQL Server. My asp appplications
> > are still able to connect
> >
> > The connection string I am using is
> > user id=sa;pwd=????;data source=????;persist security info=False;initial
> > catalog=DBNAme
> >
> > My clients running on Windows 2003 Server are still able to connect after
> > the restart.
> >
> > I have tried the following:
> >
> > Restarted the 2000 Machine hosting the client with no resolution
> >
> > Changed the "data source" parameter to use the ip of the database server
> > rather than the DNS name with no resolution.
> >
> > Added an entry in the ODBC Data Source Administrator for the server on the
> > 2000 Machine with no resolution
> >
> >
> > I am able to ping the Database server and access it from Query Analyser
> > from
> > the 2000 servers.
> >
> > I was wondering if anyone has come across a similiar problem or if anyone
> > has any pointers as to what other changes to try??
> >
> > Thanks,
> > BArry
> >
> >

>
>
>

 
Reply With Quote
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      23rd Jun 2005
Hmm .. Barry I am a bit surprised that restarting the application server did
not fix the issue. The problem is due to connection pooling, by restarting
the SQL Server you effectively corrupt the pool.

That is the only thing that comes close to this situation that I can think
of.

- Sahil Malik [MVP]
Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
----------------------------------------------------------------------------

"Baz" <(E-Mail Removed)> wrote in message
news:4B06B480-8448-4CBF-A659-(E-Mail Removed)...
> Sahil,
>
> I tried restarting the Windoows 2000 Application Server hosting the .Net
> 1.1
> applications and it do not resolve the issue.
>
> It was resolved by restarting the SQL Server again and the .Net 1.1
> Applications hosted on windows 2000 could then connect to the database. It
> is
> 'strange' that the 1.1 applications hosted on 2003 Server did not lose
> connection to the database server.
>
> Are you aware of any issue whereby .Net 1.1 appliactions hosted on Windows
> 2000 server do not pick up restarts of sql server?
>
> Barry
>
> "Sahil Malik [MVP]" wrote:
>
>> Barry,
>>
>> By restarting the SQL Server you effectively corrupt the connection pool
>> on
>> the client machine. In .NET 1.1 you will have to restart the app
>> server/client machine too, in .NET 2.0 you can clear the connection pool.
>>
>> The asp applications are able to connect because they donot have a
>> connection pool underneath like asp.net apps do.
>>
>> - Sahil Malik [MVP]
>> Upcoming ADO.NET 2.0 book - http://tinyurl.com/9bync
>> ----------------------------------------------------------------------------
>>
>> "Baz" <(E-Mail Removed)> wrote in message
>> news:91C7FC5F-C9DC-45F8-ABDC-(E-Mail Removed)...
>> >
>> > After restarting my SQl Server instance my ASP.net applicaions running
>> > on
>> > Windows 2000 are unable to connect to the SQL Server. My asp
>> > appplications
>> > are still able to connect
>> >
>> > The connection string I am using is
>> > user id=sa;pwd=????;data source=????;persist security
>> > info=False;initial
>> > catalog=DBNAme
>> >
>> > My clients running on Windows 2003 Server are still able to connect
>> > after
>> > the restart.
>> >
>> > I have tried the following:
>> >
>> > Restarted the 2000 Machine hosting the client with no resolution
>> >
>> > Changed the "data source" parameter to use the ip of the database
>> > server
>> > rather than the DNS name with no resolution.
>> >
>> > Added an entry in the ODBC Data Source Administrator for the server on
>> > the
>> > 2000 Machine with no resolution
>> >
>> >
>> > I am able to ping the Database server and access it from Query Analyser
>> > from
>> > the 2000 servers.
>> >
>> > I was wondering if anyone has come across a similiar problem or if
>> > anyone
>> > has any pointers as to what other changes to try??
>> >
>> > Thanks,
>> > BArry
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect to windows 2000 server terminal session =?Utf-8?B?bnNn?= Windows XP General 1 1st Feb 2005 06:18 PM
Outlook 2000- Unable to Connect to Server Microsoft Outlook 1 29th Jun 2004 03:42 AM
unable to connect to Exchange 2000 server Rob Microsoft Outlook 3 1st Jun 2004 10:14 PM
Unable to connect to Windows 2000 Server Keith@medicalofficesoluions Windows XP Work Remotely 4 16th Feb 2004 05:16 PM
Unable to connect to Windows 2000 Terminal Server. Pradeep Deviprasad Microsoft Windows 2000 Terminal Server Applications 3 9th Dec 2003 10:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:35 AM.