MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

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 September 9th, 2000, 04:15 PM
gene_d gene_d is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: Rochester, NY 14559
Posts: 1 gene_d User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I get the following error

FATAL: emalloc(): Unable to allocate 1073741824 bytes

when I try to read a record from an MS SQL
database with more than 21 fields in the record. I've tried to release memory, and read the rest of the fields with a second query. I'm using the following code to read the data.
odbc_free_result($result);
odbc_close_all;
$query2="SELECT DOMAINNAME, AnnualSales, Employees, Notes, Webad, Specials, CustomerID, WebLinkStorage
FROM Customers WHERE CustomerID = $company_id";

$conn=odbc_connect($hostname,$userid,$passwd);
if (!$conn) {
echo "Database Connection Error!<BR>If this problem persists please contact the Webmaster.";
exit;
}

$result=odbc_exec($conn, $query2);

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Query Error


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 1 hosted by Hostway
Stay green...Green IT