General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 1st, 2004, 09:19 PM
birdylaw birdylaw is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 birdylaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help : Unable to write to file buffer

Hi everyone,

I am using ASP page to request data from MySQL, things were just fine at the beginning but somehow stuck at a point when the browser shown an error message liket this :

ADODB.Recordset.1 error '80004005'


SQLState: S1000
Native Error Code: 0
[INTERSOLV][ODBCCUR lib] General error: Unable to write to file buffer

/index.asp, line 323

The particular ASP script that I used look like this :

<%
Set Conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={MySQL};Database=mydatabase;Server=mysql.ab cxyz.com;UID=mummum;PWD=abcabc"

Set rs=Server.CreateObject("ADODB.Recordset")
sql="Select * from NewsUpdate order by masa desc"

rs.open sql,conn,3,3
%>

<%while not rs.eof
title=rs("title")
tarikh1=rs("tarikh1")
tarikh2=rs("tarikh2")
file1=rs("file1")
file3=rs("file3")
media=rs("media")
masa=rs("masa")
NewsID=rs("NewsID")
%>
<li><a class="5" style="text-decoration:none" href="../ASP/news_page.asp?ID=<%=NewsID%>" target="_blank><%=title%></a>
<%
rs.MoveNext
wend
%>

The problem : Let say there are 10 data in MySQL need to be extrated, and this piece of ASP work just find for the first 6 data, when it comes to the 7th, the error message shown above pop up and the rest just stuck there.

Just wonder anybody has the crystal ball or solution.

Thanks in advance.

Birdy

Reply With Quote
  #2  
Old March 2nd, 2004, 04:35 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Show us the code that occurs on line 323 (i.e. the one that's causing the error.) Also, tell us what data types are for each field that you think might be causing the problem.
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old March 2nd, 2004, 06:31 AM
birdylaw birdylaw is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 birdylaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by stumpy
Show us the code that occurs on line 323 (i.e. the one that's causing the error.) Also, tell us what data types are for each field that you think might be causing the problem.

Hi Stumpy,

Since I tried the script again, that particular line which coused error had been changed to 769, the error message still the same though, below is the script which the line 769 fall in:

<%
Set Conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={MySQL};Database=birdylaw;Server=mysql.xyza bc.com;UID=mummum;PWD=123123"

Set rs=Server.CreateObject("ADODB.Recordset")
sql="Select * from Yesterday order by masa desc"

rs.open sql,conn,3,3
%>

<%while not rs.eof
title=rs("title")
tarikh1=rs("tarikh1")
tarikh2=rs("tarikh2")
file1=rs("file1")
file3=rs("file3")
media=rs("media")
masa=rs("masa")
NewsID=rs("NewsID")
%>


<li>
<a href="../ASP/news_page_yesterdaynews.asp?ID=<%=NewsID%>" target="_blank"><%=title%>
(I belive this is the line 769 or somewhere around here)</a>
<font> <%=media%></font>
<font> <%=masa%></font>
<br>

<%
rs.MoveNext
wend
%>

</menu>

The data type are:
title : mediumtext
tarikh1 : mediumtext

tarikh2 : mediumtext
file1 : mediumtext
file3 : mediumtext

media : mediumtext
masa : time

NewsID : decimal

Thanks.

Birdy

Reply With Quote
  #4  
Old March 2nd, 2004, 12:37 PM
birdylaw birdylaw is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 birdylaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by birdylaw
Hi Stumpy,

Since I tried the script again, that particular line which coused error had been changed to 769, the error message still the same though, below is the script which the line 769 fall in:

<%
Set Conn = Server.CreateObject("ADODB.Connection")
conn.Open "Driver={MySQL};Database=birdylaw;Server=mysql.xyza bc.com;UID=mummum;PWD=123123"

Set rs=Server.CreateObject("ADODB.Recordset")
sql="Select * from Yesterday order by masa desc"

rs.open sql,conn,3,3
%>

<%while not rs.eof
title=rs("title")
tarikh1=rs("tarikh1")
tarikh2=rs("tarikh2")
file1=rs("file1")
file3=rs("file3")
media=rs("media")
masa=rs("masa")
NewsID=rs("NewsID")
%>


<li>
<a href="../ASP/news_page_yesterdaynews.asp?ID=<%=NewsID%>" target="_blank"><%=title%>
(I belive this is the line 769 or somewhere around here)</a>
<font> <%=media%></font>
<font> <%=masa%></font>
<br>

<%
rs.MoveNext
wend
%>

</menu>

The data type are:
title : mediumtext
tarikh1 : mediumtext

tarikh2 : mediumtext
file1 : mediumtext
file3 : mediumtext

media : mediumtext
masa : time

NewsID : decimal

Thanks.

Birdy

Hi Stumpy,

The error was solved.

You were right, something wrong about the type of data, thery were just too large originally, after reset the type of data, everything works just fine.

Thanks for the hints.

Birdy

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > Help : Unable to write to file buffer


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 3 hosted by Hostway