ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 14th, 2003, 01:27 PM
haida haida is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 haida User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ASP - user connections to SQL Server 7.0

Hi,

I have created a page that retrieves more than 500 entries from the database and displays 25 entries on the page at a time. I have 3 recordsets with 3 open connections to the database to retrieve the data. At the end of the page, I close all the 3 connections and set the recordsets to 'Nothing' (e.g. Set rsName = Nothing). However, when I browse the page, this is the error that I get:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed. The maximum simultaneous user count of 5 licenses for this 'Standard Edition' server has been exceeded. Additional licenses should be obtained and installed or you should upgrade to a full version.

Does the license number has anything to do with the recordsets that I have in the code? I don't know how to solve the problem because in my understanding, the license number only has to do with the client connection to the SQL server.

I really hope that someone can help me with this problem as soon as possible. Thanks in advance.

Reply With Quote
  #2  
Old October 14th, 2003, 04:28 PM
don_sparko's Avatar
don_sparko don_sparko is offline
Digitally Challenged
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 280 don_sparko User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 14 sec
Reputation Power: 6
maybe try closing them after they have obtained the recordset. and wait to set your record set to 'nothing'
__________________
My brain cells are like a storm trooper's armor: useless

Reply With Quote
  #3  
Old October 14th, 2003, 08:05 PM
haida haida is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 haida User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I use a loop to display all the records retrieved from the database. So I should wait for the loop to finish before I can close the connections, shouldn't I? Can you please take a look at the file attached with this and give your comments? Thanks a lot.
Attached Files
File Type: asp admallusers_temp.asp (17.1 KB, 248 views)

Reply With Quote
  #4  
Old October 16th, 2003, 03:53 PM
Utopia's Avatar
Utopia Utopia is offline
superficial
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Peterborough, England
Posts: 188 Utopia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 8 sec
Reputation Power: 7
Sounds more like a problem with your installation than an ASP or database error.

Even with 100 recordset objects you're still only using one connection.

How are you connecting out of interest? DSN or Hardcoded connection string?

Reply With Quote
  #5  
Old October 16th, 2003, 08:16 PM
haida haida is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 3 haida User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your reply. I'm using hardcoded connection string. I'm using a service of a web hosting company to host our database. They have no experience in using MS SQL 7 before and they are just doing a favor by hosting our application. Do you have any idea how I can help them solve this installation problem?

Thanks again.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > ASP - user connections to SQL Server 7.0


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway