Re: FATAL: emalloc(): Unable to allocate 2147483599 bytes
| From: | Denis Eltsov | Date: | Thu, 22 Mar 2001 16:31:44 +0000 |
| Subject: | Re: FATAL: emalloc(): Unable to allocate 2147483599 bytes | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-7701@lists.php.net to get a copy of this message | ||
No this not solves the problem
Unfortunatly it's not the sintax problem.
because Everything was fine until I setup
SQL Server 2000
Best Regards Denis Eltsov
""Michael Rudel"" <mru@suchtreffer.de> wrote in message
news:000301c0b2b0$08ae9020$2c00a8c0@suchtreffer.de...
> Hi Denis,
>
> try this one:
>
> $r=odbc_exec($x,"select 'a' as a_leter from some_table");
>
> or
>
> $r=odbc_exec($x,"select \"a\" as a_leter from some_table");
>
> which you prefer, but you have to escape the "" within a ""-String !!
>
> Hope this solves your problem.
>
> Greetinx,
> Mike
>
> Michael Rudel
> - Web-Development, Systemadministration -
> _______________________________________________________________
>
> Suchtreffer AG
> Bleicherstraße 20
> D-78467 Konstanz
> Germany
> fon: +49-(0)7531-89207-17
> fax: +49-(0)7531-89207-13
> e-mail: mailto:mru@suchtreffer.de
> internet: http://www.suchtreffer.de
> _______________________________________________________________
>
>
>
> > -----Original Message-----
> > From: Denis Eltsov [mailto:eltsov@lumena.ru]
> > Sent: Thursday, March 22, 2001 8:00 AM
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] FATAL: emalloc(): Unable to allocate
> > 2147483599 bytes
> >
> >
> > I use IIS5 - php4 (as CGI) - odbc connection to Access 2000
> >
> > Everything was fine until I install MS SQL 2000 to the same machine.
> >
> > After this I receive such a message
> >
> >
> >
> > FATAL: emalloc(): Unable to allocate 2147483599 bytes
> >
> >
> >
> > every time I try to execute such a program
> >
> > <?
> >
> > $x=odbc_connect("oh","","");
> >
> > $r=odbc_exec($x,"select "a" as a_leter from some_table");
> >
> > ?>
> >
> > or
> >
> > <?
> >
> > $x=odbc_connect("oh","","");
> >
> > $r=odbc_exec($x,"select format("dd.mm.yyyy",date_field) from
> > some_table");
> >
> > ?>
> >
> >
> >
> > Best regards Denis Eltsov
> >
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>