Question

Error 80040e4d

Asked by: Raydot

This question has been asked in a couple of different ways, but I think I'll need to ask in my own way.

I'm trying to connect to a SQL server and can't figure out why I'm having problems.  The Web server is Windows 2003 Enterprise, SQL server is 2000, running on the same box.  I'm trying to work on importing data in to a Flash application.  The VB code I'm using for a basic test is:

<%@Language=VBScript%>
<HTML>
<HEAD>
<TITLE>Home Page</TITLE>
</HEAD>
<BODY>
<P>This line from HTML</P>
<HR>
<P>Next line from ASP will work<BR>
if ASP extensions installed correctly:<BR>
<%
  Response.Write "<B>From ASP</B>"
%>
<HR>
<P>Next line from ADO will work if a DSN named test_ds has been set<BR>
for the database named 'test_application'.</P>
<%
      cst = "Provider=SQLOLEDB;" & _
        "Data Source=JUMBO;" & _
        "Initial Catalog=test_application;" & _
        "Integrated Security=SSPI;" &_
      "User Id=Administrator;" &_
      "Password=password"
 
    set conn = CreateObject("ADODB.Connection")
    conn.open cst
        
 
      
      oRS.open cst
  oRS.MoveFirst
  Response.Write "<B>" & oRS("PeopleNameLast") & "</B>"
%>
<HR>
Finished test page</P>


</BODY>
</HTML>

When I run this I get the following error:

Microsoft OLE DB Provider for SQL Server error '80040e4d'
Login failed for user 'JUMBO\IUSR_JUMBO'.
/test_adob.asp, line 26

It's come up a few times in variations on that same theme.  

Any idea what I'm doing wrong?  I have the suspicion that something is incorrect in either the way I've set up the ODBC, or in how I'm handling the authentication.  I've tried a bunch of different user names and passwords.  

Which brings me to a related question, as part of the whole: I don't want to authenticate against "administrator," but I don't see where/how Windows 2003 handles creating new users, or what the relationship is between users registered with the system and access to the SQL db.

Any light you could shed would be much appreciated.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-02-03 at 09:22:41ID21722865
Tags

error

,

80040e4d

,

sql

Topic

MS SQL Server

Participating Experts
6
Points
500
Comments
52

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. set Commandobject.ActiveConnection=conn (type mism…
    I am in deep deep trouble...Would appreciate your help greatly A little background : I am using ASP and its components in our web-project. The entire website is ready and all set to upload to the webserver. For basic testing purposes, I uploaded 1 section (we have more than ...
  2. CreateObject remote
    Hi, how come I cant use Server.CreateObject("some.object", "somemachine") like this? I can call CreateObject (without going through the server object) instead, and this works. Why is this? Thanks in advance!
  3. AN ADO ERROR IN VISUALBASIC
    I got a connection string with ADO. It works fine on my machin and when i made an executable of my programme and run the executable on other machine it gives me typemismatch error. I put messaboxes everwhere in my connection and found it is doing at an initialization of recor...
  4. ADO/ODBC Error
    With VB6.0, I set up an ADO Connection to an Access 2000 DB using the following: mADOCmd.ActiveConnection = "DSN=NewTask;Uid=;Pwd=" 'uses odbc data source The DSN contains the path the the database, however, for some reason, when I try to execute the sql I get thi...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: flavoPosted on 2006-02-03 at 09:24:02ID: 15865486

Hi Raydot,
You are using Windows Authentication with a username and pw.

Have a look here for connection string help:
http://www.connectionstrings.com/
Dave :-)

 

by: RaydotPosted on 2006-02-03 at 09:49:14ID: 15865725

Thanks, this is good, but I think part of my problem is that I don't know how I should be setting this up.  There are so many options, but I'm not sure which one is the one I should use.  

 

by: RacimoPosted on 2006-02-04 at 07:14:09ID: 15872227

Make sure to attribute to your ASP account a privilege to access the DB server.  For instance, create an AD domain account for your ASP service to run on and then create a login in SQL that points to that domain account.  If your ASP service runs on a local machine account then make sure that account has sufficient privileges to access the db server...In your case 'JUMBO\IUSR_JUMBO' seems not to be referenced in the logins accepted by SQL Server...Hope this helps...

 

by: RaydotPosted on 2006-02-04 at 17:17:09ID: 15874451

How do I "create an AD domain account?"

 

by: RacimoPosted on 2006-02-05 at 01:10:04ID: 15875576

First you need to double check if you have some domain..AD stands for Active Directory...You may want to ask your system administrator to create one for you...

 

by: RaydotPosted on 2006-02-07 at 09:08:33ID: 15894318

I am the system administrator!  This is all running on a single machine.  My goal is to get this all working between SQL and Flash, if I do it locally then I have to figure it'll work in the upload.

 

by: RaydotPosted on 2006-02-07 at 09:12:02ID: 15894349

Bumping points, figuring this is getting harder...

 

by: RaydotPosted on 2006-02-13 at 08:44:14ID: 15942703

Anyone?

 

by: flavoPosted on 2006-02-13 at 08:53:38ID: 15942777

Try posting a 20 point LINKING Q in the appropriate Windows TA.  This seems to now be a Windows Q, we have solved the SQL Server bit.

 

by: RaydotPosted on 2006-02-13 at 11:03:15ID: 15943941

RE: "We have solved the SQL Server bit," with all due respect, I don't think that's been done at all!  You pointed me to a 3rd party site without any indication of which string would be useful or any answers regarding the remainder of the question.  

If I need to be more specific about anything, I surely will.

 

by: ericpetePosted on 2006-02-19 at 19:47:43ID: 15997663

You might want to take a look at http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19064

To quote from the page:
"These errors are generated if SQL Server does not accept the logon account and/or password being submitted. One possible reason could be that a corresponding SQL Server account has not been setup for the Windows NT account used to access the database. An example of an account used to access the SQL Server database could be the IUSR_computername account used by Internet Information Services (IIS) for anonymous access to ASP pages."

In that respect, one of the connection strings listed at the site noted by flavo should work. I haven't done one in a long time, but the one your using should be pretty close.

His suggestion of posting a pointer question in the Windows Server 2003 or IIS topic areas is a good one too. I'd also think about creating one in ASP as well.

Regards,

ep

 

by: rdivilbissPosted on 2006-02-19 at 21:31:11ID: 15997937

Other than blind links and one suggestion re: SQL, I do not think you have been given the best information.

While it is true in your case that the SQL server is on the same box with the web server that is unusual. Normally the SQL box would be behind the IIS box, and may not be part of the AD. In either case, you need an account on the SQL server which has permissions for the database your web application will be using.

So first thing first...either you need a SQL account or a windows domain account for your web application. (Racimo alluded to this without providing details on what to do.)

Normally, your web application runs as a local machine account (JUMBO\IUSR_JUMBO) which has less permissions than the default guest account. So even if the SQL Server is running on the same machine, you probably can not give the BUILTIN\IUSR_JUMBO access to SQL Server.

If you can not assign a machine local account to SQL Server, then you will need a domain account or a SQL account.

If you decide to use a domain account... e.g. DOMAIN\IUSR_JUMBO, then after creating the account in AD, you will need to change IIS to run as that user and also give it permission for the SQL Server database.  (A lot of work). Furthermore, I think it stinks, to let your web application run on a domain account. It just screams hack me. Of course someone will argue otherwise. I'll keep all my web applications running on low privilage machine accounts, thank you very much.

So, if you keep the local machine account, then you will need to create an SQL account for your web application. If you installed SQL Server without selecting mixed authentication, you may need to run through the setup again.  It is much easier and keeps your web application isolated.

Since the example you gave is classic ASP, as far as I'm concerned there is only one applicable connection string.

Dim connectionString
connectionString = "Provider=SQLOLEDB;Server=serverName;Database=databaseName;User ID=UserID;Password=password"

Where User ID and password are the SQL user and password.

You should only use OLEDB connections from a web page.  OLEDB connections offer better performance and stability than ODBC. Refer to these Microsoft Knowledge Base articles:  KB Q10191,  KB Q10023.  Also the ODBC driver is slower than a dog and was just written so MS could claim ODBC support.


This code will verify you can connect ... change the connection string and query to have real information:

Dim conn, rs, query, connectionString
connectionString = "Provider=SQLOLEDB;Server=serverName;Database=databaseName;User
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connectionString
query = "SELECT * FROM someTable;"
Set rs = conn.Execute(query)
if NOT (rs.BOF AND rs.EOF) then
      while NOT (rs.eof)
              response.write rs(0) & "<br>"
        wend
end if
rs.close
set rs=nothing
conn.close
Set conn=nothing


      

 

by: rdivilbissPosted on 2006-02-19 at 21:33:46ID: 15997945

>I am the system administrator!  This is all running on a single machine.  My goal is to get this all working between SQL and Flash, if I do it locally then I have to figure it'll work in the upload.

If this is going live on the Internet, you will definately want to separate things and if you go with a host, you will be separated and have a SQL login, not an integrated windows login. The ISP wouldn't run the risk of putting the SQL server on a IIS machine, not let you web app run in a domain account.

 

by: rdivilbissPosted on 2006-02-19 at 22:10:24ID: 15998059

Okay, just to make a liar out of myself, I was able to assign the local machine account to a local SQL server on one of my development servers.

In enterprise manager running from the server I was able to browse and select the local IIS user.

Which let me do this: "Provider=SQLOLEDB;Server=serverName;Database=examples;Integrated Security=SSPI;"

Also simple, and no domain account.

http://www.rodsdot.com/ee/IUSR_on_local_SQL_server.asp

 

by: alimuPosted on 2006-02-20 at 00:51:24ID: 15998487

just to clarify why you're having the problem,
this part of the connection string you are using: Integrated Security=SSPI
says to the web server "use the credentials of the currently logged on user".
You DON'T need to specify a userid and password in the connection string for this connection type.

At the moment, what is being passed across is the IUSR account for that server, this is the anonymous account.
This means, that you have Anonymous authentication turned on for this site in IIS.
To get this connection going, you need to do one of two things,
1, grant the iusr account access to your database.
or
2. go into your IIS properties, turn OFF anonymous authentication and turn on Integrated Windows NT Authentication in the Security tab.

For an internet based system, where the database is most commonly located on a separate system, you need to use BASIC authentication, not integrated.  Windows can't double-hop integrated authentication.  The downsides of basic authentication are that it transfers the credentials in cleartext and it requires the user to enter their logon id and password once per session.

If you don't want to go down this path, get rid of the Integrated Security=SSPI section of your connection string, setup a sql userid and password and pass that along in the connection string.

hope this clarifies.

 

by: RaydotPosted on 2006-02-20 at 10:39:03ID: 16002272

Now THAT'S an answer, thank you very much.  I'll try all of this out and get back.

Just to clarify, this will not all be on the same machine when it's launched, it's just on the same machine now, for development.

 

by: RaydotPosted on 2006-02-20 at 11:05:49ID: 16002551

...and said machine is not connected to the Internet, just running IIS locally.  

 

by: ericpetePosted on 2006-02-20 at 11:36:32ID: 16002808

"... ...and said machine is not connected to the Internet, just running IIS locally..."

That MIGHT matter. Just remember that when you set up the DSN for your database (when you move to production), it wants to be a system DSN, not a user one. I've run into situations where a db is set up using a user DSN and everything works fine, but when the stuff is moved to production, it produces the error (or a similar one) you're getting -- which is why it's a good idea to get in the habit of using nothing but system DSNs.

ep

 

by: rdivilbissPosted on 2006-02-20 at 14:30:37ID: 16004070

Don't use a DSN.  It is slower.

 

by: alimuPosted on 2006-02-20 at 15:50:15ID: 16004575

I'm with rdivilbiss on that one - bypass the DSN completely, if nothing else it just gives you another point of failure that isn't necessary anyway.

The differences between local and remote access are basically that the site becomes much less forgiving about authentication when it's on separate machines.  Wouldn't hurt to setup a mini network (i.e. one other computer) and try hitting your site just so you have an idea how it's going to respond in a server-client scenario though.  Any problems with the way authentication is setup will show straight away.  Tools like Virtual PC or Virtual Server are great for cheap testing on a single machine.

Don't forget that your IIS logs are your friend :)  Turn on logging for your site, including userid logging so you can see what's coming through with problematic requests.  Default location for these will be c:\windows\system32\logfiles\w3svc* directory.
200 is success, 500 is bad and will usually show ADO errors with the status code, 401 is an auth issue, 404 is a missing page.  

Let us know how you go.

 

by: ericpetePosted on 2006-02-20 at 16:08:23ID: 16004688

<disclaimer>

Note that I didn't suggest using a DSN... just that if you are going to use one, make sure you set it up correctly.

</disclaimer>

 

by: alimuPosted on 2006-02-20 at 16:14:40ID: 16004715

:)

 

by: rdivilbissPosted on 2006-02-20 at 19:09:03ID: 16005608

Sure, sure ...

 

by: ericpetePosted on 2006-02-28 at 09:28:16ID: 16067307

Raydot,

Any update?

ep

 

by: RaydotPosted on 2006-02-28 at 17:07:56ID: 16071413

Aw...I've just been so busy, and the client has put the project on hold for a week or two, but I haven't forgotten.  I'll be getting back...

 

by: nihannetPosted on 2006-03-03 at 13:36:46ID: 16098728

IUSR?????   DSN?   You guys must be crazy.  

In a production environment, you should NEVER allow IUSR access to SQL Server.  This is the whole reason for using a login and password.  DSN's are archaic, and slow.  They also create more overhead on the server.

Raydot had the right idea to begin with, I don't see why anyone would chastise him for his current topology.

I develop against a local SQL Server as well.  I also ensure that my connection string is dynamic, so that no matter where my file is, it will execute the correct connection string.  If you want to use only one connection string, it's trivial to just create the same SQL login on the development server, so that once files are moved over, you shouldn't see a difference.  I could go into lengthy detail on all the possible solutions, but with all the solutions already posted, there is no reason confusing someone, who basically almost had it right the first time

 

by: RaydotPosted on 2006-03-04 at 18:27:52ID: 16106167

For the record I don't feel chastised.

"Ensure my connection string is dynamic..." do tell?

 

by: nihannetPosted on 2006-03-04 at 22:43:48ID: 16106649

Use something like this:

Dim oConn, ConnString
Dim serverIP as string = request.serverVariables("LOCAL_ADDR")
If serverIP = "Your Dev Machine IP address" Then
ConnString = "Local SQL Connection String"
Else
If serverIP = "Your Host IP" Then
ConnString = "Your Host IP ConnectionString"
End If

set oCconn = CreateObject("ADODB.Connection")
oConn.open ConnString

 

by: RaydotPosted on 2006-03-05 at 13:45:30ID: 16109556

Oh, right, yes...gotcha.

Well I'm probably going to get back to all of this in the next day or two...so...

 

by: alimuPosted on 2006-03-05 at 16:20:47ID: 16110274

nihannet,
While you may have valid comments yourself, I think perhaps you should read through the entire thread before criticising comments made by others.
Speaking for my own comment, I was explaining why, at the present time, the IUSR account (anonymous account) is the one that is being passed instead of integrated credentials.  
I wasn't saying it SHOULD be used, I was saying it WAS being used and what exactly it was in the IIS configuration that was causing this to happen and how to correct it.

 

by: RaydotPosted on 2006-03-20 at 19:30:44ID: 16243577

Can't we all just get along?  I haven't forgotten you guys, back soon...

 

by: nihannetPosted on 2006-03-20 at 20:21:18ID: 16243793

Thanks alimu.  Sorry I didn't read your post thoroughly enough.  You're right about why it was causing the problem.   I read many posts on this site, and sometimes, people just get caught in the crossfire.  I've seen some fairly bad advice posted on this site by some people.  Usually it's all about "points" which personally....I have no clue as to what they're for, and could really care less.  It's the content that matters, and as long as you steer someone in the right direction, you're ok in my book.

 

by: RaydotPosted on 2006-03-23 at 11:30:42ID: 16273262

I only half looked at this stuff before...Rod, you're the man for posting those screen shots!  I'm going through all of this now, will get back in a minute...

 

by: RaydotPosted on 2006-03-23 at 11:50:36ID: 16273515

OK rdivilbiss, I went with what you wrote because it has such pretty pictures.  When it comes to:

connStr = "Provider=SQLOLEDB;Server=server;Database=table;Integrated Security=SSPI;"

What should I enter for "server?"  The SQL server?  What's that called, to IIS? "local"?

 

by: RaydotPosted on 2006-03-23 at 12:00:34ID: 16273614

As for the "other" subject...I've been a member of this site for 9 years, and this very type of misunderstanding has been more or less my constant complaint since I joined.  (You'll notice my taking issue along these same lines somewhat earlier in this very thread!)  It's tough, people have only so much time, and on the Internet are only so motivated to care.  I don't mean any of you specifically, it's just an interesting problem in developing an online community.

What to do, what to do...

 

by: RaydotPosted on 2006-03-23 at 17:05:57ID: 16276542

localhost, is it localhost?  That seems to be working but I get this error running the SQL query rdivilbiss gave me.  The page takes 10 seconds to load and then:

Response object error 'ASP 0251 : 80004005;

Response Buffer Limit Exceeded

/test_adob.asp, line 0

Execution of the ASP page caused the Response Buffer to exceed its configured limit.

There are maybe 10 items in the table.  

I guess I don't know if it's working or not!

 

by: ericpetePosted on 2006-03-24 at 10:19:12ID: 16282712

Raydot,

Server=server means the name of the SQL server. Assuming it's located within the same network that is hosting your IIS server, it will probably be a single word. Also, instead of Database=table, it should probably be database=database_name. So your connection string would look like:

connStr = "Provider=SQLOLEDB;Server=server_name;Database=database=database_name;Integrated Security=SSPI;"

See http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21238783.html for more details.

The Response Buffer Limit Exceeded error usually refers to the file size; there's a configuration item in ISS that lets you change it.

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21682822.html has a fix -- but you might want to ask this part in the ASP TA.

ep

 

by: RaydotPosted on 2006-03-24 at 11:57:42ID: 16283613

Thanks Ericpete. Maybe I haven't been clear enough.  I basically used this script, provided above.  The marked areas are the ones that don't seem to be executing.  I started without that part, and then just added them in at the end to see if I could test that I was properly connected, and that didn't work.

Dim conn, rs, query, connectionString
connectionString = "Provider=SQLOLEDB;Server=serverName;Database=databaseName;User
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open connectionString
query = "SELECT * FROM someTable;"
Set rs = conn.Execute(query)

'THIS DOES NOT WORK FROM HERE***
if NOT (rs.BOF AND rs.EOF) then
     while NOT (rs.eof)
              response.write rs(0) & "<br>"
        wend
end if
'TO HERE ***

rs.close
set rs=nothing
conn.close
Set conn=nothing

There are literally 11 lines in the tables, 6 items per line, so I can't beleive that's outside of MSSQL's operational limit.

 

by: ericpetePosted on 2006-03-24 at 12:07:07ID: 16283713

No, but if the code is creating a loop, it never reaches the EOF, so it keeps repeating the same info so it THINKS it's a big file. But I'm not an ASP Expert, so I can't really tell if that's what's going on.

 

by: flavoPosted on 2006-03-26 at 12:33:01ID: 16295464

    while NOT (rs.eof)
              response.write rs(0) & "<br>"
              rs.movenext '// You aren't moving records, so naturally, it's never going to get to the end
        wend

Dave

 

by: rdivilbissPosted on 2006-03-26 at 12:41:18ID: 16295509

'THIS DOES NOT WORK FROM HERE***
if NOT (rs.BOF AND rs.EOF) then
     while NOT (rs.eof)
              response.write rs(0) & "<br>"
        wend
end if
'TO HERE ***

We are missing rs.movenext

if NOT (rs.BOF AND rs.EOF) then
     while NOT (rs.eof)
              response.write rs(0) & "<br>"
              rs.movenext
     wend
end if

 

by: rdivilbissPosted on 2006-03-26 at 12:45:00ID: 16295523

Thanks flavo.

 

by: ericpetePosted on 2006-03-26 at 13:50:09ID: 16295906

See? I knew you guys would come through... *grin*

 

by: rdivilbissPosted on 2006-03-26 at 16:38:22ID: 16296768

You were close:

"No, ***but if the code is creating a loop, it never reaches the EOF***"

 

by: RaydotPosted on 2006-05-05 at 22:51:54ID: 16620166

Wow, has it been that long?  Well I haven't forgotten, I'll be back in a few...

 

by: RaydotPosted on 2006-05-21 at 17:17:18ID: 16730718

The client has picked this job back up, I'll be testing and closing this question in the next few days.  Thanks again, and sorry for the slog.

 

by: ericpetePosted on 2006-05-28 at 12:22:01ID: 16780303

Realizing that it's Memorial Day Weekend... where are we on this?

 

by: RaydotPosted on 2006-05-28 at 13:32:22ID: 16780598

Can't go on vacation without hearing back from me?  ;-)  

 

by: RaydotPosted on 2006-06-06 at 13:54:37ID: 16846616

Well, I'm gonna have to assume y'all are right.  Thanks for your time.  

 

by: RaydotPosted on 2006-06-06 at 13:57:40ID: 16846645

Oops, meant to split the points...not sure what happened!  Anyway, thanks to all.

 

by: ericpetePosted on 2006-06-07 at 08:52:52ID: 16853470

You can always ask the Mods to reopen the question so you can split the points... but as far as I'm concerned, awarding them all to rdivilbiss is fine.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...