Advertisement

02.11.2008 at 05:42PM PST, ID: 23154966
[x]
Attachment Details

Time out expired.

Asked by emi_sastra in Microsoft Visual Basic.Net

Tags: Microsoft, Visual Basic, Visual Basic 2005

Hi,

I use timer to get server date.
It generate message :

Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.

What is wrong with my code?

Thank you.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
Public Shared Function Get_Server_Date() As DateTime
 
        Dim conApp As System.Data.SqlClient.SqlConnection
        conApp = New SqlClient.SqlConnection(strConnectionSetup)
        conApp.Open()
 
        Try
 
            Dim strCommand As String = "SELECT GETDATE() FROM TMUSER"
 
            Dim cmdSqlCommand As SqlCommand = New SqlCommand(strCommand, conApp)
 
            Get_Server_Date = cmdSqlCommand.ExecuteScalar
 
        Catch ex As Exception
 
        End Try
 
    End Function
[+][-]02.11.2008 at 05:47PM PST, ID: 20872000

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 05:53PM PST, ID: 20872015

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 06:03PM PST, ID: 20872064

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: Microsoft, Visual Basic, Visual Basic 2005
Sign Up Now!
Solution Provided By: sanjeevnarayan
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.11.2008 at 07:41PM PST, ID: 20872384

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 08:57PM PST, ID: 20872588

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 09:29PM PST, ID: 20872692

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 09:47PM PST, ID: 20872741

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.11.2008 at 11:10PM PST, ID: 20872939

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 04:29PM PST, ID: 20889864

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.13.2008 at 05:06PM PST, ID: 20890043

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628