Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dbvisualizer: set max rows in a select query

I am using DBVisualizer 8.0.6 and when I run a simply query like....

select * from table 

It only shows the first 1000 rows and then stops the query and displays in the bottom left corner... "Number of rows limited by maxrows"

How do I change this #? I'm writing a query which needs to export a little over 1000 rows but dbvisualizer has this set limit...

I tried something like @set maxrows 2000 then commit then run my query. Still returns only 1000 rows. This is for an Oracle table.

like image 707
HelloWorld Avatar asked Dec 07 '11 16:12

HelloWorld


People also ask

How do I change the maximum rows in DbVisualizer?

If you really need to look at more than 1000 rows, you can change the value in the Max Rows field in the SQL Commander toolbar. Use a value of 0 or -1 to get all rows, or a specific number (e.g. 5000) to set a new limit. Character data columns may contain very large values that use up lots of memory.

How do I select more than 1000 rows in SQL?

How to select more than 1000 rows by default in SQL Server Management Studio. In SQL Server Management Studio when we right-click a table we have an option to 'Select Top 1000 Rows' and 'Edit Top 200 Rows' as shown below…

How do you write a query in DbVisualizer?

The query builder is a drag-and-drop tool where you drag the tables you want to query into the tool and check the boxes of the data you want to select. DbVisualizer will automatically generate the SQL needed to run the query.

What kind of SQL does DbVisualizer use?

Azure SQL Database is a SQL Server database engine, based on the latest stable Enterprise Edition of SQL Server and fully managed by Azure.


2 Answers

There is a box in SQL Commander labeled Max Rows. Set it to -1 for the complete result set.

Max Rows

like image 55
James Allman Avatar answered Sep 16 '22 14:09

James Allman


Or you could just export directly to a file. This will allow to export many more rows than the DBVisualizer GUI can show you. When having to export a few million records (should you ever need that), this is quite useful.

Simply do something like this in your SQL Commander:

@export on; @export set Filename="d:\temp\export" format="CSV" DecimalNumberFormat="00000000000" CsvRowDelimiter="\r\n" CsvIncludeColumnHeader="false";  SELECT YOURFIELD FROM YOURTABLE WHERE SOMEFIELD = AFILTERVALUE; 

You can find more about this (and the various parameters) here: http://www.dbvis.com/products/dbvis/doc/7.1/doc/ug/sqlCommander/sqlCommander.html#mozTocId448386

like image 25
MatthiasDS Avatar answered Sep 20 '22 14:09

MatthiasDS