Skip to content

fmmsilva/xlsql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xlsql Build status

Query Excel sheets data using SQL

FileInfo source = new FileInfo(@"c:\temp\source.xlsx");
FileInfo dest = new FileInfo(@"c:\temp\dest.xlsx");

// Get Sheet Names
var sheets = XLSQL.XLSQL.GetSheetNames(source);

string sql = @"select Col, count(Col)
                from [Sheet1$] 
                group by Col
                order by Col desc";

XLSQL.XLSQL.SQLtoExcel(source, dest, sql);
Process.Start(dest.FullName);

About

Query Excel sheets data using SQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages