AbsolutePage
I use driver oraOleDB.oracle for my ASP, when I use command
objRset.AbsolutePage
Shows error = "Object doesn't support this property or method: 'AbsolutPage'"
What should I use for AbsolutePage in OraOLEDB.oracle?
Thank You.
Baskoro
thank you for your response, and your suggetion.
I update ADO 2.5 to 2.8, but i still get this error:
Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursortype.
/viewdept.asp, line 58
Thank You.
Similar Messages
-
I am creating a small search program using jsp. I want to know how can I implement paging using JDBC.
It is very easy using asp. In asp only a specified no. or records can be retrieved from database using combination of PageSize and AbsolutePage properties of Recordset Object.
In jdbc I think there is no such method available. Do I have to use database base specific options to limit the number of records returned like limit keyword in mysql.
Only way I can think of is to create a resultset object and store it in session and then use the absolute() method of the resultset object to go to a specific record and then next(). But still all records have to returned by db and have to be kept in memory and not only specific no. of records (e.g 10 per page).
If I doesn't store the recordset in session then every time this search page is accessed, a new recordset is returned with all records. I then have to determine how many records to skip according to page selected in the query string and then use absolute() method of recordset to go to specific record. And then loop, say ten times to display 10 records. Again when next is clicked same procedure is repeated. Here retrieving all records every time page is accessed is very expensive operation.
In my case even this isn't possible because I am using jdbc odbc bridge, which is not allowing scrollable resultset and jvm is throwing exception in native code. Without scrollable resultset I cannot know how many records are returned. If I try to count using a loop and resultset's next() then I don't have any way to go back to first record again when I actually want to retrieve records to display. Only other way to count the records is executing query twice which isn't very good as records may have been added or deleted between two calls.
Am I wrong anywhere above?
If not then question is, can this be done efficiently with jdbc without using any database specific keywords?
If yes then which method can be used on a busy web site with huge database.
--Sukhwinder SinghThis may help: http://www.powerobj.com
providing "advice" in this manner is unethical and unhelpful. if you feel a product you are selling would be good for someone you should at the very least disclose your interest in the selling of said product.
the blatant ad you posted in the JavaServer Pages forum at least makes it clear that you are selling a product. this post does not make that clear and it really should be. -
Is there an upgrade to Photoshop Elements 5.0 for use with Windows 8?
Is there an upgraded to Photoshop Elements 5.0 for use with Windows 8?
yes, photoshop elements 11 should be compatible with win 8 and there is an upgrade path here: http://www.adobe.com/products/photoshop-elements.html
(compatibility info: http://www.microsoft.com/en-us/windows/compatibility/en-US/CompatCenter/ProductViewerWithD efaultFilters?Architecture=X64&CurrentPage=0&TotalPages=-1&ShowCriteria=10%20Results%20Per %20Page&SortCriteria=Relevance&IsSearchWithinFilterAvailable=False&FilterByCompatibility=A LL&TextSearch=Photoshop&AbsolutePage=-1&LastRequested=13&LastSearchTerm=Photoshop ) -
Hi all,
I am working on pagination of recordsets returned via ODBC calls to a database connection, similar to what the search engines (Google, et al) do with long result sets. I have tried to use the recordSet.AbsolutePage property, but found that it is not supported by my driver (Oracle ODBC 8.0.5.9). It is supported by the MS Oracle driver (from MDAC 2.5), but that driver poses larger problems for me.
Does anyone know if AbsolutePage is supported in later versions of the Oracle Driver? or have any other suggestions on pagination while I am constrained to the 8.0.5.9 driver (based on an 8.0.5 engine)?
Thanks in advance,
BillWhen working with dates in MySQL, make sure the dates are of the date type and the correct format.
PHP has a DateTime class that makes it easy to work with dates. You can read about this online. Note that with the DateTime class there is the date, and then there is the way the date is formatted.
The WHERE clause should be pretty straightforward, something like "WHERE dateithappened = '$dateselected'' or WHERE dateithappened BETWEEN '$dateselected1' AND '$dateselected2'
The logic for your previous next would be something like the following. I just pulled this from a script, so it isn't exactly what you need. (I have no way of knowing exactly what you need). Note that variables with _f are the formatted versions, for display.
$date = new DateTime("$date1");
$dates_f = $date->format('M j, Y');
$date->modify('- 1 day');
$previous = $date->format('Y-m-d');
$date->modify('+ 2 day');
$next = $date->format('Y-m-d');
$prevnext = "<h2 class='noPrint' style='text-align:center'><a href='$scriptname?report_type=$report_type&date1=$previous&datetype=$datetype'><img src = '../identity/prev.gif' class='icon' ></a> $dates_f <a href='$scriptname?report_type=$report_type&date1=$next&datetype=$datetype'><img src = '../identity/next.gif' class='icon' ></a></h2>"; -
Buen dia, he provado una paginacion muy sencilla que he
conseguido con el
maravilloso GOOGLE en una pagina con codigos ASP, me funciona
perfecto con
ACCES pero con MYSQL me manda error en esta linea:
RS_AUTOMOVILES.AbsolutePage = pagina_actual
El Error es:
ADODB.Recordset error '800a0cb3' Current Recordset does not
support
bookmarks. This may be a limitation of the provider or of the
selected
cursortype.
/autos/DIS_LISTA_AUTOS_MY.asp, line 96
¿Alguien podria orientarme al respecto?
Muchas gracias.De todos modos, te recomiendo que te actualizes a asp.net,
puedes encontrar
videos y un montón de información útil en
http://www.asp.net/getstarted/default.aspx?tabid=61
- es orientado a objetos
- es compilado (no interpretado como asp o php)
- separa totalmente la capa presentación de la de
programación (sin includes
ni marranadas por el estilo)
- geniales controles (por ejemplo lleva una GRID como la que
tu usas, que
incluye paginación automática , ordenación,
edición, eliminación y adición
de registros con 0 líneas de código.
- lo desarrolla la empresa tecnológica con más
recursos económicos y humanos
del universo conocido
Hay muchas otras ventajas, pero como digo, una de las mayores
es que puedes
desarrollar (si quieres) un sitio web dinámico con
acceso a datos sin
escribir NADA de código.
Saludos,
Xus
"Marcos Galaviz" <[email protected]>
escribió en el mensaje
news:elk6on$t8h$[email protected]..
> Buen dia, he provado una paginacion muy sencilla que he
conseguido con el
> maravilloso GOOGLE en una pagina con codigos ASP, me
funciona perfecto con
> ACCES pero con MYSQL me manda error en esta linea:
>
> RS_AUTOMOVILES.AbsolutePage = pagina_actual
>
> El Error es:
>
> ADODB.Recordset error '800a0cb3' Current Recordset does
not support
> bookmarks. This may be a limitation of the provider or
of the selected
> cursortype.
>
> /autos/DIS_LISTA_AUTOS_MY.asp, line 96
>
> ¿Alguien podria orientarme al respecto?
>
>
>
> Muchas gracias.
>
> -
Paging through records.
I am using oo4o within an asp page to access data from an Oracle database. I would like to page the results so that I only show 10 records at a time. This is possible using ADO recordsets (Pagesize / AbsolutePage). Does anyone have a good example of this using the OraDynaset?
I have been using the 'Oradynaset.MoveTo' and 'OraDynaset.Rowposition/pagesize' to navigate between records, but my attempts using For/Next loops have not been very successful.
Thanks.Thanks for the reply.
The 'PageSize' remains constant - usually between 25 to 100. The first page (Start=0) is really quick as you can see that not more than 100 records are looked up by the filter query. However, when 'Start' is advanced by PageSize, for every multiple of 10000, the overall query takes a second longer. So when Start=100000 my web application just sits there without response for over 10 seconds. This is an unacceptable performance for a search engine that crawls the DB using my app. Yet there are a few millions or records.
I have also tried another approch where in using multiple queries I select the top (Start + PageSize) Key field values into a temp table / view, delete the top 'Start' many records from it, and then select from the main table where key field in (list of keys from view). Even though the perf is a little better it is still not acceptable, and moreover with this approach I can never detect the EOF (End Of File) condition without taking into effect count(*) from <maintable> which is an added expense.
Anyway, I have kinda concluded that there is no solution to this through Oracle Queries. I am now implementing a quick solution in my .NET application by providing cache for data reader. Thanks for the link, but there is nothing useful in there to solve my issue, in fact, I hardly found postings on the internet indicating that anybody ever tried to solve this issue through queries.
Let me know if there is something you could think of.
Thanks,
Raja.
Maybe you are looking for
-
The operation cannot be completed because it is in use
i have a macbook with yosemite running.I also have a wdtv live with a 1tb hdd on it.I could transfer files from my mac to the hdd over wifi with no problem till i upgraded to yosemite.It tells me when i transfer a large file the operation cannot be c
-
Trying to modify the code in a component
Hi, I made a flash website with photo galleries using a component that I bought online. The component is loading the image in a thumbnail scroll bar via a XML file and the full size image display in a UILoader. So far nothing special. But when I reac
-
HT1660 I had iTunes on my computer when it crashed, can I retrieve these purchases.
I had iTunes on my computer when it crashed, can Iretrieve those purchases.
-
Oracle Process Manager(instance1) Service does not start
Hello Friends, My Oracle Process Manger (instance1) windows service is not starting up.Due to which my presentation service is also down. Kindly suggest any solution. I am using OBIEE 11.1.1.7
-
I just upgraded to Lion last night. Today I purchased ScholarWord OSX, downloaded it now and I can't open it. It was previously working with the demo. I continue to receive the Nil error above. How do I resolve this?