Hi! I'm connecting to foxpro database like this:
$dsnado = "DBI:ADO:Provider=vfpoledb;DSN=FoxPro;";<br />
$dbhfox = DBI->connect ($dsnado, '', '');<br />
Then execute this sql query:
$q="SELECT order_bill_n, srok_date FROM orders WHERE ALLTRIM(UPPER(ord
+er_bill_n)) LIKE '%23-B%' order by order_bill_n desc ";<br />
$sthfox=$dbhfox->prepare($q) or die "Can't prepare statement: $DBI::er
+rstr";<br />
$sthfox->execute() or die "Can't execute statement: $DBI::errstr";<br
+/><br />
But having this error:
Can't execute statement: Can't Open Recordset for SELECT order_bill_n, srok_date FROM orders WHERE ALLTRIM(UPPER(order_bill_n)) LIKE '%23-В%' order by order_bill_n desc
Package : DBD::ADO::st
Filename : D:/usr/local/bin/perl/site/lib/DBD/ADO.pm
Line : 1137
Last error : -2147467259
Don't understand, what's can be?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.