PC Review


Reply
Thread Tools Rate Thread

Connection timeout when using SQL Server User Instance

 
 
Axh
Guest
Posts: n/a
 
      26th Nov 2007
Is there a limitation on the number of (sequential) opened connection for SQL
Server User Instances? The following method will run to about the 240th
iteration then will receive a timeout exception (SqlException. "Timeout
expired. The timeout period elapsed prior to completion of the operation or
the server is not responding."). If User Instance=false then the method will
execute to completion. Note that connection pooling is off just for
demonstation; the real application does use connection pooling, but periodic
events require the connection pool to be cleared (and new connections
opened). This is a desktop application and a user instance is required.

static void Main(string[] args)
{
string connectionString = "Server=.\\SQLExpress; User Instance=true;
Trusted_Connection=Yes; Pooling=false; Connection Timeout=20";
Console.WriteLine(connectionString);
for (int i = 1; i < 1001; i++)
{
using(SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
}
Console.WriteLine(i.ToString());
}
}

Thanks in advance.
 
Reply With Quote
 
 
 
 
WenYuan Wang [MSFT]
Guest
Posts: n/a
 
      27th Nov 2007
Hello axh,

I reproduced this issue on my SQL Express, but I haven't heard this
limitation before.
I will perform more research on this issue, and reply here as soon as
possible.
If you have any more concerns on it, please feel free to post here.

Thanks for your understanding!
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
WenYuan Wang [MSFT]
Guest
Posts: n/a
 
      29th Nov 2007
Hello Axh,
Thanks for your waiting.

This seems like a product issue. We haven't User Instance Connection
Limitation in SQL 2005 Express so far. I have logged this issue in our DB
for product team to investigate. This will benefit our product quality
improvement. Thanks.

But I'm afraid this issue may not be fixed very soon.
For urgent issues, we can contact Microsoft CSS directly.
If the problem is confirmed to be a product bug, the case charge will be
free.
You can check http://support.microsoft.com for regional support phone
numbers.

You can also post the issue to our Connect feedback portal. Our developer
will evaluate them seriously and communicate with you directly on the issue
there.
http://connect.microsoft.com/VisualStudio/
Improving the quality of our products and services is a never ending
process for Microsoft .

Thanks again for your posting. If you have any more concern, please feel
free to update here again. We are glad to assist you.

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      10th Dec 2007
Hi Axh,

How are you doing?

It seems the problem here is limited to a product issue and I do think it
will be quite frustrating to suffer such a problem. Wen-Yuan has ever
discussed with us on this. Currently, though we can not help directly
address it, if you would, we'll be glad to continue help you on this if you
have any other related questions on this or need to dig further to search
for alternatives.

Thanks for posting in MSDN newsgroup!

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>From: v-(E-Mail Removed) (WenYuan Wang [MSFT])
>Organization: Microsoft
>Date: Thu, 29 Nov 2007 03:49:11 GMT
>Subject: RE: Connection timeout when using SQL Server User Instance


>
>Hello Axh,
>Thanks for your waiting.
>
>This seems like a product issue. We haven't User Instance Connection
>Limitation in SQL 2005 Express so far. I have logged this issue in our DB
>for product team to investigate. This will benefit our product quality
>improvement. Thanks.
>
>But I'm afraid this issue may not be fixed very soon.
>For urgent issues, we can contact Microsoft CSS directly.
>If the problem is confirmed to be a product bug, the case charge will be
>free.
>You can check http://support.microsoft.com for regional support phone
>numbers.
>
>You can also post the issue to our Connect feedback portal. Our developer
>will evaluate them seriously and communicate with you directly on the

issue
>there.
>http://connect.microsoft.com/VisualStudio/
>Improving the quality of our products and services is a never ending
>process for Microsoft .
>
>Thanks again for your posting. If you have any more concern, please feel
>free to update here again. We are glad to assist you.
>
>Have a great day,
>Best regards,
>
>Wen Yuan
>Microsoft Online Community Support
>==================================================
>This posting is provided "AS IS" with no warranties, and confers no rights.
>
>


 
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
Failed to generate a user instance of SQL Server due to a failure instarting the process for the user instance. The connection will be closed Homer Microsoft ASP .NET 1 13th Jun 2011 08:43 AM
Failed to generate a user instance of SQL Server. Only an integratedconnection can generate a user instance. Harlan Messinger Microsoft ASP .NET 2 28th Mar 2010 07:51 PM
Failed to generate a user instance of SQL Server due to a failure instarting the process for the user instance. The connection will be closed Homer Microsoft ASP .NET 2 26th May 2009 01:36 AM
Timeout on connection to SQL server reidarT Microsoft VB .NET 1 18th Sep 2006 04:47 PM
Timeout from access to SQL server connection lava Microsoft Access 1 24th Sep 2004 07:56 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:45 AM.