Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Classic ASP connection problem

Classic ASP connection problem

Scheduled Pinned Locked Moved ASP.NET
databasehelpsql-serversysadmin
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Paddy Boyd
    wrote on last edited by
    #1

    I have run into a slight problem in some VB6 code called from 'classic' asp page. The VB6 code does a bit of processing and then proceeds to insert a series of rows into a DB table within a loop, e.g. do 'call generic insert function to DB, connection opened and closed 'increment counter loop And this has been working fine for many years. One client has found a problem - I debug in here and when the counter gets to around 3950 rows (changes each time), i get the following error when performing the insert: DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. Anybody any ideas as to why this would be happening?

    P 1 Reply Last reply
    0
    • P Paddy Boyd

      I have run into a slight problem in some VB6 code called from 'classic' asp page. The VB6 code does a bit of processing and then proceeds to insert a series of rows into a DB table within a loop, e.g. do 'call generic insert function to DB, connection opened and closed 'increment counter loop And this has been working fine for many years. One client has found a problem - I debug in here and when the counter gets to around 3950 rows (changes each time), i get the following error when performing the insert: DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. Anybody any ideas as to why this would be happening?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Take a look at the event log on the server where SQL Server sits to see if any events have been raised (such as the database shutting down).

      the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
      Deja View - the feeling that you've seen this post before.

      P 1 Reply Last reply
      0
      • P Pete OHanlon

        Take a look at the event log on the server where SQL Server sits to see if any events have been raised (such as the database shutting down).

        the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
        Deja View - the feeling that you've seen this post before.

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        It's a development machine i'm testing it on, with a local sql server - nothing of note in the event logs.

        P 1 Reply Last reply
        0
        • P Paddy Boyd

          It's a development machine i'm testing it on, with a local sql server - nothing of note in the event logs.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          In that case - connect Query Analyser to this instance and take a look at all of the messages that it fires when the connection *closes". Just a thought there - you are closing the connection between saves aren't you?

          the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
          Deja View - the feeling that you've seen this post before.

          P 2 Replies Last reply
          0
          • P Pete OHanlon

            In that case - connect Query Analyser to this instance and take a look at all of the messages that it fires when the connection *closes". Just a thought there - you are closing the connection between saves aren't you?

            the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
            Deja View - the feeling that you've seen this post before.

            P Offline
            P Offline
            Paddy Boyd
            wrote on last edited by
            #5

            I'll give that a go. And yes, they should all be closed...

            1 Reply Last reply
            0
            • P Pete OHanlon

              In that case - connect Query Analyser to this instance and take a look at all of the messages that it fires when the connection *closes". Just a thought there - you are closing the connection between saves aren't you?

              the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
              Deja View - the feeling that you've seen this post before.

              P Offline
              P Offline
              Paddy Boyd
              wrote on last edited by
              #6

              Ok. Just got back to this now. We are using a single connection object that is opened at the start and then closed after performing all the inserts... My trace just shows many Audit Logon messages rather than connection open messages.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups