Quering SQL Server databases from Excel is easy. In most cases you can simply type select * from my_table;
If you suspect that the table may be large (larger than a few thousand records) you may wish to restrict the
query. You can use the following syntax to just retrieve 10 rows (an arbitrary 10):
select top 10 * from my_table;
To retrieve the top 10% of a table you can use the following syntax
Alternatively use the following queries to retrieve database information:
select * from information_schema.views
select * from information_schema.tables
select * from information_schema.columns
To quickly dump a list of tables/views or their content in the spreadsheet right click the tables/views or schema
item in the Database Objects section of the
SQL editor.
Copyright (C) 1995-2007 Linker IT
Software BV. All Rights Reserved. Oracle is a registered trademark of
Oracle corporation. Excel and Office are registered trademarks of
Microsoft corporation. Other names appearing on the site may be trademarks
of their respective owners. Software,
files, documents, articles and other material are provided
"as is" and without warranties as to performance or mechantability or
any other warranties whether expressed or implied. No
warranty of fitness for a particular purpose is offered.
sitemap