slow ASP-SQL database connection

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default slow ASP-SQL database connection

    My ASP pages have very slow connections with SQL Server database, although
    eventually it will reach the page and get the results. The SQL Server
    database and IIS are in the same machine, I have no idea why it will cause
    the problem.

    I just put this connection string as SSI:

    strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
    Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"

    Anyone has any ideas? Please advise. thanks!
    John


    John Davis Guest

  2. Similar Questions and Discussions

    1. rtmpt connection very slow with FP 9,0,115,0
      Connecting with rtmpt (http tunneling) to FMS 3 vod service takes 10-15 secs on Flash Player 9,0,115,0. I used Flex Builder 2.01 to compile the...
    2. Slow non-local connection to fms
      Hi, I have the following problem: when connecting to my FMS application from the web - it takes about 2 minutes to make the connection (I see it...
    3. One NFS connection fine, one NFS connection slow
      Ok, this is all a bit odd. I will draw an ascii picture and hope it survives in Google: sun server | .------mandrake...
    4. Slow connection of XP machines on NT network
      I have been hitting my head against the wall on this problem. We purchased new XP Professional machines to connect to our NT network and the...
    5. 'apt-get upgrade' Over Slow Connection
      'apt-get upgrade' is fine if you've got a fast Internet connection. However, what do folks do when they still have *slow* Internet connections...
  3. #2

    Default slow ASP-SQL database connection

    My ASP pages have very slow connections with SQL Server database, although
    eventually it will reach the page and get the results. The SQL Server
    database and IIS are in the same machine, I have no idea why it will cause
    the problem.

    I just put this connection string as SSI:

    strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
    Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"

    Anyone has any ideas? Please advise. thanks!
    John


    John Davis Guest

  4. #3

    Default Re: slow ASP-SQL database connection

    How are you determining that it's the connection that is slow?

    John Davis wrote:
    > My ASP pages have very slow connections with SQL Server database,
    > although eventually it will reach the page and get the results. The
    > SQL Server database and IIS are in the same machine, I have no idea
    > why it will cause the problem.
    >
    > I just put this connection string as SSI:
    >
    > strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    > Security Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"
    >
    > Anyone has any ideas? Please advise. thanks!
    > John

    Bob Barrows Guest

  5. #4

    Default Re: slow ASP-SQL database connection

    How are you determining that it's the connection that is slow?

    John Davis wrote:
    > My ASP pages have very slow connections with SQL Server database,
    > although eventually it will reach the page and get the results. The
    > SQL Server database and IIS are in the same machine, I have no idea
    > why it will cause the problem.
    >
    > I just put this connection string as SSI:
    >
    > strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    > Security Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"
    >
    > Anyone has any ideas? Please advise. thanks!
    > John

    Bob Barrows Guest

  6. #5

    Default Re: slow ASP-SQL database connection

    I just migrated the database and web pages from one machine to another
    machine. The speed of the original web pages are faster than the current
    one.

    I wonder if anything to do on IIS or SQL Server settings??

    "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    news:OKDKMOJfDHA.2332@TK2MSFTNGP12.phx.gbl...
    > How are you determining that it's the connection that is slow?
    >
    > John Davis wrote:
    > > My ASP pages have very slow connections with SQL Server database,
    > > although eventually it will reach the page and get the results. The
    > > SQL Server database and IIS are in the same machine, I have no idea
    > > why it will cause the problem.
    > >
    > > I just put this connection string as SSI:
    > >
    > > strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    > > Security Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"
    > >
    > > Anyone has any ideas? Please advise. thanks!
    > > John
    >
    >

    John Davis Guest

  7. #6

    Default Re: slow ASP-SQL database connection

    I just migrated the database and web pages from one machine to another
    machine. The speed of the original web pages are faster than the current
    one.

    I wonder if anything to do on IIS or SQL Server settings??

    "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    news:OKDKMOJfDHA.2332@TK2MSFTNGP12.phx.gbl...
    > How are you determining that it's the connection that is slow?
    >
    > John Davis wrote:
    > > My ASP pages have very slow connections with SQL Server database,
    > > although eventually it will reach the page and get the results. The
    > > SQL Server database and IIS are in the same machine, I have no idea
    > > why it will cause the problem.
    > >
    > > I just put this connection string as SSI:
    > >
    > > strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    > > Security Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"
    > >
    > > Anyone has any ideas? Please advise. thanks!
    > > John
    >
    >

    John Davis Guest

  8. #7

    Default Re: slow ASP-SQL database connection

    I just migrated the database and web pages from one machine to another
    machine. The speed of the original web pages are faster than the current
    one.

    I wonder if anything to do on IIS or SQL Server settings??

    "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    news:OKDKMOJfDHA.2332@TK2MSFTNGP12.phx.gbl...
    > How are you determining that it's the connection that is slow?
    >
    > John Davis wrote:
    > > My ASP pages have very slow connections with SQL Server database,
    > > although eventually it will reach the page and get the results. The
    > > SQL Server database and IIS are in the same machine, I have no idea
    > > why it will cause the problem.
    > >
    > > I just put this connection string as SSI:
    > >
    > > strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    > > Security Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"
    > >
    > > Anyone has any ideas? Please advise. thanks!
    > > John
    >
    >

    John Davis Guest

  9. #8

    Default Re: slow ASP-SQL database connection

    I just migrated the database and web pages from one machine to another
    machine. The speed of the original web pages are faster than the current
    one.

    I wonder if anything to do on IIS or SQL Server settings??

    "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    news:OKDKMOJfDHA.2332@TK2MSFTNGP12.phx.gbl...
    > How are you determining that it's the connection that is slow?
    >
    > John Davis wrote:
    > > My ASP pages have very slow connections with SQL Server database,
    > > although eventually it will reach the page and get the results. The
    > > SQL Server database and IIS are in the same machine, I have no idea
    > > why it will cause the problem.
    > >
    > > I just put this connection string as SSI:
    > >
    > > strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    > > Security Info=False;Initial Catalog=MYDATABASE;Data Source=MYCOMPUTER"
    > >
    > > Anyone has any ideas? Please advise. thanks!
    > > John
    >
    >

    John Davis Guest

  10. #9

    Default Re: slow ASP-SQL database connection

    This question cannot be answered until you verify where the slowdown is
    occurring. This will require some debugging to be done with your pages. Use
    Response.write's to report on your code timing:

    <%
    dim t
    t= now()
    ....
    response.write datediff("s",t,now()) & "<BR>"
    ....
    response.write datediff("s",t,now()) & "<BR>"
    ....

    Bob Barrows

    John Davis wrote:
    > I just migrated the database and web pages from one machine to another
    > machine. The speed of the original web pages are faster than the
    > current one.
    >
    > I wonder if anything to do on IIS or SQL Server settings??
    >
    > "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    > news:OKDKMOJfDHA.2332@TK2MSFTNGP12.phx.gbl...
    >> How are you determining that it's the connection that is slow?
    >>
    >> John Davis wrote:
    >>> My ASP pages have very slow connections with SQL Server database,
    >>> although eventually it will reach the page and get the results. The
    >>> SQL Server database and IIS are in the same machine, I have no idea
    >>> why it will cause the problem.
    >>>
    >>> I just put this connection string as SSI:
    >>>
    >>> strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    >>> Security Info=False;Initial Catalog=MYDATABASE;Data
    >>> Source=MYCOMPUTER"
    >>>
    >>> Anyone has any ideas? Please advise. thanks!
    >>> John


    Bob Barrows Guest

  11. #10

    Default Re: slow ASP-SQL database connection

    This question cannot be answered until you verify where the slowdown is
    occurring. This will require some debugging to be done with your pages. Use
    Response.write's to report on your code timing:

    <%
    dim t
    t= now()
    ....
    response.write datediff("s",t,now()) & "<BR>"
    ....
    response.write datediff("s",t,now()) & "<BR>"
    ....

    Bob Barrows

    John Davis wrote:
    > I just migrated the database and web pages from one machine to another
    > machine. The speed of the original web pages are faster than the
    > current one.
    >
    > I wonder if anything to do on IIS or SQL Server settings??
    >
    > "Bob Barrows" <reb_01501@yahoo.com> wrote in message
    > news:OKDKMOJfDHA.2332@TK2MSFTNGP12.phx.gbl...
    >> How are you determining that it's the connection that is slow?
    >>
    >> John Davis wrote:
    >>> My ASP pages have very slow connections with SQL Server database,
    >>> although eventually it will reach the page and get the results. The
    >>> SQL Server database and IIS are in the same machine, I have no idea
    >>> why it will cause the problem.
    >>>
    >>> I just put this connection string as SSI:
    >>>
    >>> strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist
    >>> Security Info=False;Initial Catalog=MYDATABASE;Data
    >>> Source=MYCOMPUTER"
    >>>
    >>> Anyone has any ideas? Please advise. thanks!
    >>> John


    Bob Barrows Guest

  12. #11

    Default Re: slow ASP-SQL database connection

    You might want to check that all fields used as criteria or for sorting
    are indexed in the database.

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139