Comparing textbox to a set number of rows in a database
Hi
I'm wondering if anyone can help me with a litle problem. I got this code:
Dim con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\MyDatabase.accdb")
Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM produced WHERE serie = '" & SerieTextBox.Text & "' AND where = '" & WhereLabel2.Text & "'", con)
con.Open()
Dim sdr As OleDbDataReader = cmd.ExecuteReader()
If (sdr.Read() = True) Then
MessageBox.Show("It exist in " & WhereLabel2.Text)
con.Close()
Exit Sub
Else
MessageBox.Show("It does not exist in " & WhereLabel2.Text)
con.Close()
Exit Sub
End if
This works perfectly :) The thing is, the produced table contains close to 90.000 rows (and growing), and there are no reason to compair the textbox to more than the last 1000 rows. Is there an easy way for me to that? I'm a bit worried about performance
if I leave it like this.
Any tips or help is much appreciated :)
Hello,
I am going to provide an example but highly recommend you step back and learn first how to work with SQL outside of Visual Studio then take time to learn the basics of working with VB.NET basics followed by working with data at a simple level.
In
the project on OneDrive I did the following
Separated the database operations into a code module, could had gone one step farther and placed the code into a class but wanted to keep it simple
In the code module mentioned above there are two functions, the first has hard coded values used which in this case validates the query works properly. Thinking from experience what I did is write the query in (for this example) MS-Access query editor,
does it work? Yes, move to a project, if not continue in MS-Access until it does.
Test in Visual Studio project
Now modify the code to accept replaceable parameters for the where conditions and test via values sent via TextBox controls from the user and while doing so it is prudent to test if they actually entered values in the TextBox controls.
There are little things to look at in the code, study both functions to see things like being cognitive in regards to cleaning up objects (not obvious that the 'Using' statements do clean up but they do) . There is no exception handling, for live work
you might consider this via a Try-Catch-Finally statement but was kept out to keep things simple.
Code from project
Form code
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
If HardCodedTestDemo() Then
MessageBox.Show("Got some")
Else
MessageBox.Show("None")
End If
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
If Not String.IsNullOrWhiteSpace(txtContactTitle.Text) AndAlso Not String.IsNullOrWhiteSpace(txtCountry.Text) Then
If RealDemo(txtContactTitle.Text, txtCountry.Text) Then
MessageBox.Show("Got some")
Else
MessageBox.Show("None")
End If
Else
MessageBox.Show("Please enter both title and country")
End If
End Sub
End Class
Code module
Module DatabaseOperations
Private Builder As New OleDbConnectionStringBuilder With
.Provider = "Microsoft.ACE.OLEDB.12.0",
.DataSource = IO.Path.Combine(Application.StartupPath, "Database1.accdb")
''' <summary>
''' Here we have provided hard coded values known to exists for the where conditions
''' so that we know it works.
''' </summary>
''' <returns></returns>
''' <remarks></remarks>
Public Function HardCodedTestDemo() As Boolean
Using cn As New OleDbConnection With
.ConnectionString = Builder.ConnectionString
Using cmd As New OleDbCommand With {.Connection = cn}
cmd.CommandText =
<SQL>
SELECT * FROM
SELECT TOP 15 Identifier, ContactTitle, Country
FROM Customers
ORDER BY Identifier DESC
WHERE
ContactTitle ='Marketing Manager' AND Country = 'Germany'
</SQL>.Value
cn.Open()
Dim Reader = cmd.ExecuteReader
If Reader.HasRows Then
Return True
Else
Return False
End If
End Using
End Using
End Function
''' <summary>
''' This version we pass in values that the user supplied from TextBox controls
''' on a form.
''' </summary>
''' <returns></returns>
''' <remarks>
''' </remarks>
Public Function RealDemo(ByVal ContactTitle As String, ByVal Country As String) As Boolean
Using cn As New OleDbConnection With
.ConnectionString = Builder.ConnectionString
Using cmd As New OleDbCommand With {.Connection = cn}
cmd.CommandText =
<SQL>
SELECT * FROM
SELECT TOP 15 Identifier, ContactTitle, Country
FROM Customers
ORDER BY Identifier DESC
WHERE
ContactTitle = @ContactTitle AND Country = @Country
</SQL>.Value
Dim CompanyTitleParameter As New OleDbParameter With
.DbType = DbType.String,
.ParameterName = "ContactTitle",
.Value = ContactTitle
cmd.Parameters.Add(CompanyTitleParameter)
Dim CountryParameter As New OleDbParameter With
.DbType = DbType.String,
.ParameterName = "@Country",
.Value = Country
cmd.Parameters.Add(CountryParameter)
cn.Open()
Dim Reader = cmd.ExecuteReader
Dim Success As Boolean = Reader.HasRows
Reader.Close()
Return Success
End Using
End Using
End Function
End Module
Note the SQL is done slightly different than I gave before, I broke it down to first get our results, top 15 then used the result to do the where conditions.
IMPORTANT Some will tell you that MS-Access does not use named parameters as I have used, that is correct but it accepts them. Access uses ordinal position of how parameters were added. So why use named parameters? If you have a lot of parameters
it makes for easier time to figure out issues or errors in the code. Also if moving to SQL-Server this is the correct syntax, not ? marker.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.
Similar Messages
-
How to generate an incrementing batch-number per set number of rows
Hi,
How could you generate an incrementing batch-number per set number of rows for a table in SQL?
The returned result set of the SQL query should show a preceding batch number per row set and incremented by 1 for the next row set.
Eg, you want to start the batch_number by 1 for the first three returned rows of the table and than increment by 1 for the next three rows.
The result set would look like:
BATCH_NO, TAB_COL1, TAB_COL2, TAB_COL3, TAB_COL4, ..
1, ...
1, ...
1, ...
2, ...
2, ...
2, ...
3, ...
3, ...
3, ...
etc.
Cheers.Many thanks guys, I would have never thought about these options.. Yes the reason for adding the preceding batch number has to do with migrating data from a source table where we only can grab small sets of rows at the time to bring across to a target table.
Cheers. -
How to set number of rows in filters?
Hi, we need to set another number of rows which is displayed in filters on bex or web template?
Thanks for adviceHi Pavel,
can you please specify your question more clearly. If you are on NW 7.0 you can determine a number of colums for your filter item with following command:
COLUMNS
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/85/08e241aa8e9d39e10000000a155106/content.htm
If you meant the amount of rows within the analysis item you can use following command within your analysis item:
BLOCK_ROWS_SIZE (numbers of rows displayed at once)
BLOCK_ROWS_STEP_SIZE (numbers of rows to be scrolled for one step)
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/76/489d39d342de00e10000000a11402f/content.htm
Brgds,
Marcel
Edited by: Marcel Landsfried on Feb 10, 2009 7:45 PM
Edited due to wrong url -
How to set number of rows in "Rows Per Page Selector" in Interactive Report
Hi Guys,
Is there any way to set the number of rows in "Rows Per Page Selector" in Interactive Report. By default it is set to 15.
I know one way is to change the number of rows when you are running the report and then set that as 'Default Report Setting'.
If anybody is aware of any other way, please let me know.
Cheers,
Ashish Agarwal
http://www.dbcon.com.sgHi Pavel,
can you please specify your question more clearly. If you are on NW 7.0 you can determine a number of colums for your filter item with following command:
COLUMNS
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/85/08e241aa8e9d39e10000000a155106/content.htm
If you meant the amount of rows within the analysis item you can use following command within your analysis item:
BLOCK_ROWS_SIZE (numbers of rows displayed at once)
BLOCK_ROWS_STEP_SIZE (numbers of rows to be scrolled for one step)
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/76/489d39d342de00e10000000a11402f/content.htm
Brgds,
Marcel
Edited by: Marcel Landsfried on Feb 10, 2009 7:45 PM
Edited due to wrong url -
How do I set number of rows displayed in portlet
How do I specify how many rows will be displayed when I publish a workbook as a Portal Portlet ? I tried to set the number of rows per page using Plus, but this is not reflected in the portlet.
Naviagte Ak Developer>Define Regions
define Display Rows -
Setting number of rows and columns
How do I set the number of rows and columns of a table, say 2348 rows by 3 columns?
Then how do I quickly select the last row?
Also, if I enter a formula in row 1 column 2, how do I quickly copy that formula down to row 1435, or to the end of the column? Dragging seems slow and awkward.I wish to add a few words to Jerrold responce.
gjf12 wrote:
How do I set the number of rows and columns of a table, say 2348 rows by 3 columns?
Then how do I quickly select the last row?
Also, if I enter a formula in row 1 column 2, how do I quickly copy that formula down to row 1435, or to the end of the column? Dragging seems slow and awkward.
The process that you describe is inefficient.
The efficient one is :
create a table
enter the formulas in a single row
delete the rows below.
Now, each newly inserted row will contain the formulas.
From my point of view, it's when this is done that it will be interesting to apply a script adding rows.
Here is a script inserting rows.
--[SCRIPT insertRows]
Enregistrer le script en tant que Script : insertRows.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Sélectionner une cellule au-dessous de laquelle vous voulez insérer des lignes.
menu Scripts > Numbers > insertRows
Le script vous demande le nombre de lignes désiré puit insère celles-ci.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
--=====
Save the script as a Script: insertRows.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Select a cell below which you want to insert rows.
menu Scripts > Numbers > insertRows
The script ask you the number of rows to insert then it does the required insertion.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
Save this script as a … Script in the "Folder Actions Scripts" folder
<startupVolume>:Library:Scripts:Folder Action Scripts:
--=====
Yvan KOENIG (VALLAURIS, France)
2010/01/13
--=====
on run
set defaultValue to 100
if my parleAnglais() then
set myInteger to my askAnumber("Insert how many rows ?", defaultValue, "i")
else
set myInteger to my askAnumber("Combien de lignes voulez-vous insérer ?", defaultValue, "i")
end if
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
repeat myInteger times
add row below row rowNum2
end repeat
end tell
end run
--=====
on getSelParams()
local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
end if
return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
apply to named row or named column !
on decipher(n, d, s, t)
tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errMsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=====
Asks for an entry and checks that it is an floating number
set myInteger to my askAnumber(Prompt, DefaultValue, "i")
set myFloating to my askAnumber(Prompt, DefaultValue, "f")
on askAnumber(lPrompt, lDefault, ForI)
local lPrompt, lDefault, n
tell application (path to frontmost application as string)
if ForI is "f" then
set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
try
set n to n as number (* try to convert the value as an number *)
return n
on error
if my parleAnglais() then
display alert "The value needs to be a floating number." & return & "Please try again."
else
display alert "La valeur saisie doit être un nombre décimal." & return & "Veuillez recommencer."
end if
end try
else
set n to text returned of (display dialog lPrompt default answer lDefault as text)
try
set n to n as integer (* try to convert the value as an integer *)
return n
on error
if my parleAnglais() then
display alert "The value needs to be an integer." & return & "Please try again."
else
display alert "La valeur saisie doit être un nombre entier." & return & "Veuillez recommencer."
end if
end try -- 1st attempt
end if -- ForI…
end tell -- application
Here if the first entry was not of the wanted class
second attempt *)
tell application (path to frontmost application as string)
if ForI is "f" then
set n to text returned of (display dialog lPrompt & " (" & (1.2 as text) & ")" default answer lDefault as text)
try
set n to n as number (* try to convert the value as an number *)
return n
on error
end try
else
set n to text returned of (display dialog lPrompt default answer lDefault as text)
try
set n to n as integer (* try to convert the value as an integer *)
return n
on error
end try -- 1st attempt
end if -- ForI…
end tell -- application
if my parleAnglais() then
error "The value you entered was not numerical !" & return & "Goodbye !"
else
error "La valeur saisie n’est pas numérique !" & return & "Au revoir !"
end if
end askAnumber
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) mercredi 13 janvier 2010 12:43:34 -
How to set number of Rows of a table to be displayed based on user action?
Hi Experts,
I am getting data into the table. But only 5 records are displayed default. I want it to be a user selection.
If user wishes to see 10 records, then first 10 records should get displayed. If user selects 'n' records then 'n' records should get displayed..
How to achieve this?
Regards,
Yugesh A.hi Yugesh ,
1 create a input field UI
2 bind its value property to a attribute
3 suppose ca_check attribute ( type string ) under node cn_check is binded
read this in ur doinit of the view
DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
DATA ls_cn_check TYPE wd_this->element_cn_check.
DATA lv_ca_check LIKE ls_cn_check-ca_check.
* navigate from <CONTEXT> to <CN_CHECK> via lead selection
lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
* get element via lead selection
lo_el_cn_check = lo_nd_cn_check->get_element( ).
* get single attribute
lo_el_cn_check->get_attribute(
EXPORTING
name = `CA_CHECK`
IMPORTING
value = lv_ca_check ).
4 nw for ur table , make a another context attribute of type either string or I , say attr1
bind its visiblerowcount property of table to attr1
5 make a attribute in ATTRIBUTES tab of type string , say attribute
set its value to lv_ca_check in doinit itself
wd_this->attribute = lv_ca_Check
6 nw in the method , where u need to validate how m,any rows user enter or doinit itself , set attr1 to the value of that attribute created under ATTRIBUTES tab ( named attribute)
DATA : lv_count type string .
lv_count = wd_this->attribute
7 nw its very simple , set attr1 to lv_count , as it contains the count of the number which has entered in the input field
DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
DATA ls_cn_check TYPE wd_this->element_cn_check.
DATA attr1 LIKE ls_cn_check-ca_check.
* navigate from <CONTEXT> to <CN_CHECK> via lead selection
lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
* get element via lead selection
lo_el_cn_check = lo_nd_cn_check->get_element( ).
* set single attribute
lo_el_cn_check->set_attribute(
EXPORTING
name = `attr1`
value = lv_count ).
I hope it shud help
proceed like these , u wud be able to achieve the desired functionality
regards,
amit
Edited by: amit saini on Oct 20, 2009 1:12 PM -
Dynamic setting number of rows in report region
How to implement that each user can define how much initial records should be returned in report region?
THX!Solved reading How to:
http://www.oracle.com/technology/products/database/htmldb/howtos/howto_report_rownum.html
Maybe it was not so obvious to someone else also!
;-) -
Compare two tables having different number of rows based on 2 columns
Hi,
I am having two tables table a having field1, field2 and table b having fields field1 and field2.
I want those records from table a in which field1 of table a is not matching to field1 of table b and field2 of table b not matching to field2 of table b, but i also want the bifurcation of records as whether field 1 is not matching, field 2 is not matching or both fields 1 & 2 are not matching.
e.g.
table a table b
field1 field2 field1 field2
1 6 12 5
2 5 1 9
13 51 13 51
45 31 99 121
33 45
In this case my output should be
table a
field1 field2 Mtchng_Field
1 6 Field 2 not mtchng
2 5 Field 1 not mtchng
45 31 Feild1 and Field2 both not matching
How would i get my result in the required format.sql>select * from t1;
N1 N2
1 6
2 5
13 51
45 31
33 45
sql>select * from t2;
N1 N2
12 5
1 9
13 51
99 121
sql>
select n1,n2,decode(nvl(p1,0)+nvl(p2,0),0,'No match',1,'F2 not match',2,'F1 not match','Match') status
from(
select n1,n2,(select 1
from t2 where n1=t1.n1) p1,(select 2
from t2 where n2=t1.n2) p2
from t1);
N1 N2 STATUS
1 6 F2 not match
2 5 F1 not match
13 51 Match
45 31 No match
33 45 No match
Message was edited by:
jeneesh
Message was edited by:
jeneesh
Some problems... -
Problem with number of rows per page ....
Hi,
I have a updatable report .This is a dynamic report which can have more than 100 columns depending on the table name .I have set number of rows =15 in layout and pagination .Its displaying 15 rows per page .My requirement is 50 rows per page .So i changed to 50 in layout and pagination .Its displaying 50 rows per page .But when i select some button in that page or move to other tab i get "page not found "error .If i replace back to 15 rows per page ,everything works fine ...Dont know why this is happening ..Please help..
Thanks in advance ....Hello,
You can use Maximum Records per page property of Repeating
Frame.
Adi -
Is there anyway of getting the total number of rows in the database via JDBC on a MySQL database?
thanks guys for your help but since my returned result set is huge anything that has to load the whole result set in memory is absolutely out of the question.
For my situation what DrClap suggested works wonders. I use
SELECT COUNT(*) FROM SomeTable
and then
count = rs.getInt(1);
This way I get the total number of rows plus its really quick.
Thanks DrClap -
Read Database Column According to Number of Rows
Hi guys,
I am currently stuck at the problem of retrieving data from my database (MS Access) according to the number of rows it has at any one time (without having to know how many rows there are going to be while programming this part).
Firstly, I have to introduce how my program works. I am working on an automated food ordering system and after the customer has selected his/her food, information such as the food name, food price and quantity will be written to the database MS Access table. (for e.g. table name "Orderingtable" in MS Access) For my case, 1 order of food item will occupy 1 row of the database table. In other words, under the same customer, if he orders 3 different food items, 3 rows will be occupied in my database table.
I would then like to retrieve the number of the "Quantity" part for each order from the database and sum up the quantity eventually to count the number of total orders in the database table at any point of time. This addition of result will then be shown on the Front Panel to inform the customer how many pending orders there are just before his order. In this case, he can back out if he wants to if the number of orders is too huge for his waiting time.
However, I do not know how many rows my "Orderingtable" will have at any one time because the "Orderingtable" will accumulate rows and rows of data until being commanded to be deleted. Therefore, I cannot predict the number of rows as I program the part to sum up the number of quantity for each and every row.
Is there a way that I can retrieve the "Quantity" part without having to know the number of rows in the database so that I can count the total number of current orders just by summing up the value of quantity for each row?
I do not wish to "hardcode" my program by limiting the database tables to let's say, only 50 rows at any one time.
Below attached is how my "Orderingtable" database table looks like, which is going to be used to retrieve the column "Quantity" so that it can count the total number of orders and be shown/indicated on the Front Panel of my Labview program.
I hope you guys are able to help me!
Thank you so much in advance.
Cheers,
Miu
Solved!
Go to Solution.
Attachments:
database table.JPG 320 KB
Front Panel.JPG 78 KB>>I just want to copy everything from 1 table to another
Absolutely. But as far as I know, there is no "move" command. So you will need to do this in two separate operations: first copy, and then delete.
To copy data: SELECT * INTO target_table FROM source_table
NOTE: By specifying * you are copy all the columns. And the columns must match up. If your source and target tables do not match, then you'll need to replace * with a list of columns. See here for more info.
To delete the data in the original table: DELETE * FROM source_table
NOTE: This will delete the entire contents of the source table. Which may not be ideal. Depending on your application, it could potentially leave you with the possibility of data loss. For example, what if "someone" manages to insert some data into the source_table inbetween your copy and delete operations? That data would be lost (you'd delete it). But that would only be a concern if there were multiple people accessing your database simultaneously. If that could be a problem, let me know, and we can consider a different solution, or consider using locks/transactions to prevent that situtation. -
Large number of rows in ResultSet
Hai,
I have huge number of rows retrive from database using ResultSet but it seems to be slow to get records. When it retrive data from database can we read data from ResultSet?.
Advance wishes,
DaieshNo, he can't, but who's to say that's what's slowing
him down? Could be bad JDBC code, old JDBC drivers,
or bad queries. Could be.
Honestly why does it matter to you? It matters a great deal.
If he's talking about a web page, and LOTS of people who ask this question are bringing that data down to the browser, my answer would be that no user wants to deal with 500K records all at once. A well-placed WHERE clause or filter, or paging through 25 at a time a la Google, would be my recommendation in that case.
Did you have an
answer all prepared to go so long as he gave you a
reason that was up to your rigorous standards? Yes, see above.
You
could have said "make sure you really need all that
data, and if you do, then try X, Y, and Z to speed it
up". But to just throw that out with no evidence
you're prepared to help regardless? Why bother?See above. There was a reason for the question.
Oh wait... I get it ... did I mistake your submission
to "The Most Useless, Unhelpful, and Arrogant Post
Contest" for a real post? My bad...Nope, that would be yours, dumb @ss.
% -
How to count number of colums ina sql database
is there a command to find out the length of a column,using rs.next possible???
is there a way of finding out the number of rows in a
database??See my first post for the number of rows in a table.
If you want to get the total rows in an entire database (cant think why) it should be possible with DatabaseMetaData.getTables() and do a SELECT COUNT(*) for each table then add the results.
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Connection.html#getMetaData() -
How to set the number of rows displayed in a classical report at runtime?
Hi,
Our customer has several standard client hardware configuration and would like to enable end users to choose their 'display profile' at login time. This 'display profile' would contain predefined values for these hardware configurations and supposed to set various paramters that should define the number of rows displayed in a classical report region.
I tried to provide parameters on the report region but it refused to accept anything but numerical values. Is it possible to do this?
Regards, TamasThe link is to the closest linkable point in the documentation to the description of the Number of Rows (Item) attribute.
It sounds like you have been trying to enter—unsuccessfully—an item name or substitution string into the Number of Rows attribute. The Number of Rows (Item) attribute is the one that actually allows you to do this. Click on the flashlight icon beside it to get a list of items from the application.
Maybe you are looking for
-
itunes on my boys computer got corrupt. I believe it was when I tried updating. Anyhow, I have downloaded teh current itunes file from apple and when I install it a window comes up that says it can not find C;\users\owner\appdata\local\apple\apples
-
In-app purchase of Hellfire coins taken out of bank through Paypal, even though there was a balance left over from a gift Card in app store.
-
Compression request deletion in cube bi7
please guide me how to delete Thanks
-
Touch screen not working properly
I've encountered a weird problem with my newly purchased iPhone 3G S. The touch screen doesn't work as it ought to. I.e. when I "slide to unlock" nothing happens at first if the iPhone lies on the table, but if I pick up the phone and hold it in my l
-
SAP ASUG Methodology rel 7.1 roadmap = Is it available for SolMan?
I was looking at SAP ASUG Methodology rel 7.1 roadmap; and was interested to know a) Is it available for SolMan yet? b) If yes, how do I download to our SolMan instance? I presume this is via the ST-ICO download; but just wish to check for confirmati