swidz / sql2xls Goto Github PK
View Code? Open in Web Editor NEWExport SQL query results to Microsoft Excel
License: MIT License
Export SQL query results to Microsoft Excel
License: MIT License
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
at System.IO.MemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at System.Xml.XmlUtf8RawTextWriter.FlushBuffer()
at System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
at System.Xml.XmlWellFormedWriter.WriteString(String text)
at DocumentFormat.OpenXml.OpenXmlPartWriter.WriteStartElement(OpenXmlElement elementObject, IEnumerable1 attributes, IEnumerable
1 namespaceDeclarations)
at Sql2Xls.Excel.Adapters.ExcelExportSAXAdapter.CreateSharedStringCellSAX(OpenXmlWriter openXmlWriter, Int32 columnIndex, Int32 rowIndex, String value, UInt32 styleIndex, Boolean isValueSharedString) in D:\projects\Sql2Xls\src\Sql2Xls\Excel\Adapters\ExcelExportSAXAdapter.cs:line 422
at Sql2Xls.Excel.Adapters.ExcelExportSAXAdapter.CreateSheetDataSAX(OpenXmlWriter openXmlWriter, DataTable dataTable) in D:\projects\Sql2Xls\src\Sql2Xls\Excel\Adapters\ExcelExportSAXAdapter.cs:line 333
at Sql2Xls.Excel.Adapters.ExcelExportSAXAdapter.CreateWorksheet(SpreadsheetDocument document, WorksheetPart worksheetPart, DataTable dataTable) in D:\projects\Sql2Xls\src\Sql2Xls\Excel\Adapters\ExcelExportSAXAdapter.cs:line 298
at Sql2Xls.Excel.Adapters.ExcelExportAdapter.CreateFromDataTable(SpreadsheetDocument document, DataTable dataTable) in D:\projects\Sql2Xls\src\Sql2Xls\Excel\Adapters\ExcelExportAdapter.cs:line 204
at Sql2Xls.Excel.Adapters.ExcelExportAdapter.LoadFromDataTable(DataTable dataTable) in D:\projects\Sql2Xls\src\Sql2Xls\Excel\Adapters\ExcelExportAdapter.cs:line 96
at Sql2Xls.Sql2XlsService.CreateDocument(String datasetName, String sqlCommand, String outputFile, Sql2XlsServiceParameters parms) in D:\projects\Sql2Xls\src\Sql2Xls\Sql2XlsService.cs:line 181
at Sql2Xls.Sql2XlsService.ProcessTask(Sql2XlsTaskData taskData, Sql2XlsServiceParameters parms) in D:\projects\Sql2Xls\src\Sql2Xls\Sql2XlsService.cs:line 135
private bool CheckWriteAccessToFolder(string folderPath)
{
try
{
// Attempt to get a list of security permissions from the folder.
// This will raise an exception if the path is read only or do not have access to view the permissions.
var di = new DirectoryInfo(folderPath);
DirectorySecurity ds = di.GetAccessControl();
return true;
}
catch (UnauthorizedAccessException)
{
return false;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.