Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / April 2006

Tip: Looking for answers? Try searching our database.

Open Connection for long time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MountainKid - 21 Apr 2006 03:45 GMT
I use ADO.NET to develop my project.
(use SqlClient.SqlDataConnection object to conection SQL 2000)

It is stranger that Connection.Open() method spect 12 seconds to execute in
one of our servers, but it is faster in another server, not more than 1
second.
Both two servers have almost identical hardware.

Although I can use connection pooling to avoid re-create connection.
But I want to know why it is happen.

Does anyone can tell me what items I need to measure or tune?
Thanks a lot for your reply.
William (Bill) Vaughn - 21 Apr 2006 18:31 GMT
Hummm... as I understand your question, you have discovered that it takes 12
seconds to open a connection to SQL Server 2000--but just on one server.

I would use the SQL Server Enterprise Manager to see what the server is
doing--it might be very busy. Okay, that might seem obvious, but there could
also be other issues. Are you referencing the server (machine name) by DNS
name or by IP address? We have seen situations where the DNS registration is
incorrect and the system takes some time to get the name resolved. Try
switching to IP/TCP Port addressing to see if this fixes the problem. Yes,
pooling the connection will help reduce subsequent connection time.

hth
Signature

____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

>I use ADO.NET to develop my project.
> (use SqlClient.SqlDataConnection object to conection SQL 2000)
[quoted text clipped - 10 lines]
> Does anyone can tell me what items I need to measure or tune?
> Thanks a lot for your reply.
Otis Mukinfus - 22 Apr 2006 02:32 GMT
>I use ADO.NET to develop my project.
>(use SqlClient.SqlDataConnection object to conection SQL 2000)
[quoted text clipped - 9 lines]
>Does anyone can tell me what items I need to measure or tune?
>Thanks a lot for your reply.

If the code is the same on both servers there has to be a difference in the
servers, unless you deployed your debug executables tot one of the servers.

Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.